summaryrefslogtreecommitdiff
path: root/tests/js/tests.js
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-07-04 17:15:38 -0400
committerNed Batchelder <ned@nedbatchelder.com>2019-07-06 10:04:31 -0400
commitcfdcacea473dede9fb779256c812ff6a098a0714 (patch)
tree89a05ea92b2048a6b0653b8f4aae8fb374e4a4ec /tests/js/tests.js
parent25aff80d444a6b1fa87173ffd8026f69be7ae0d0 (diff)
downloadpython-coveragepy-git-cfdcacea473dede9fb779256c812ff6a098a0714.tar.gz
HTML: Mark things to show instead of to hide.
Also made some other changes along the way: * Scroll bar markers change as the selected categories change. * We don't use css class 'stm' for anything, get rid of it. * Better sass use all around.
Diffstat (limited to 'tests/js/tests.js')
-rw-r--r--tests/js/tests.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/js/tests.js b/tests/js/tests.js
index 7bd3b9ca..a7eb11fc 100644
--- a/tests/js/tests.js
+++ b/tests/js/tests.js
@@ -15,10 +15,12 @@ function raw_selection_is(assert, sel, check_highlight) {
assert.equal(coverage.sel_begin, beg);
assert.equal(coverage.sel_end, end);
if (check_highlight) {
- assert.equal(coverage.code_container().find(".highlight").length, end-beg);
+ assert.equal($(".linenos .highlight").length, end-beg);
}
}
+// The spec is a list of "rbw" letters, indicating colors of successive lines.
+// We set the show_r and show_b classes for r and b.
function build_fixture(spec) {
var i, data;
$("#fixture-template").tmpl().appendTo("#qunit-fixture");