Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
fd9b8c2f
Commit
fd9b8c2f
authored
Mar 30, 2021
by
Mathieu Giraud
Browse files
js/graph.js, tests: add 'reads'
parent
4cc2bffc
Pipeline
#231344
passed with stages
in 25 minutes and 42 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
browser/js/graph.js
View file @
fd9b8c2f
...
...
@@ -1649,7 +1649,7 @@ Graph.prototype = {
// duplicate from info; refactor
var
read_number
=
this
.
m
.
reads
.
segmented
var
percent
=
(
read_number
[
this
.
m
.
t
]
/
this
.
m
.
reads
.
total
[
this
.
m
.
t
])
*
100
;
var
reads
=
this
.
m
.
toStringThousands
(
read_number
[
this
.
m
.
t
])
+
"
(
"
+
percent
.
toFixed
(
2
)
+
"
%)
"
;
var
reads
=
this
.
m
.
toStringThousands
(
read_number
[
this
.
m
.
t
])
+
"
reads
(
"
+
percent
.
toFixed
(
2
)
+
"
%)
"
;
tooltip
+=
breakChar
+
reads
return
tooltip
},
...
...
browser/test/functional/issues/test_4370.rb
View file @
fd9b8c2f
...
...
@@ -39,7 +39,7 @@ class TestGraph < BrowserTest
sleep
1.5
# no update icon in this case; so whould use a fixed time
assert
(
$tooltip
.
style
(
'opacity'
)
==
"1"
),
"correct opacity of tooltip when label is hover"
content
=
"T8045-BC082-fu1
\n
2019-12-27
\n
+10
\n
250 000 (57.19%)"
content
=
"T8045-BC082-fu1
\n
2019-12-27
\n
+10
\n
250 000
reads
(57.19%)"
assert
(
$tooltip
.
text
==
content
),
"Correct text in the sample tooltip"
end
...
...
@@ -51,7 +51,7 @@ class TestGraph < BrowserTest
sleep
2
assert
(
$tooltip
.
style
(
'opacity'
)
==
"1"
),
"correct opacity of tooltip when label is hover"
content
=
"helloworld
\n
741 684 (94.26%)"
content
=
"helloworld
\n
741 684
reads
(94.26%)"
assert
(
$tooltip
.
text
==
content
),
"Correct text in the sample tooltip"
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment