Commit fd9b8c2f authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

js/graph.js, tests: add 'reads'

parent 4cc2bffc
Pipeline #231344 passed with stages
in 25 minutes and 42 seconds
......@@ -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
},
......
......@@ -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\n2019-12-27\n+10\n250 000 (57.19%)"
content = "T8045-BC082-fu1\n2019-12-27\n+10\n250 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\n741 684 (94.26%)"
content = "helloworld\n741 684 reads (94.26%)"
assert ( $tooltip.text == content), "Correct text in the sample tooltip"
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment