From cfdcacea473dede9fb779256c812ff6a098a0714 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 4 Jul 2019 17:15:38 -0400 Subject: 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. --- tests/js/index.html | 12 +++--------- tests/js/tests.js | 4 +++- 2 files changed, 6 insertions(+), 10 deletions(-) (limited to 'tests/js') diff --git a/tests/js/index.html b/tests/js/index.html index 744014bc..d9eb5c03 100644 --- a/tests/js/index.html +++ b/tests/js/index.html @@ -4,18 +4,12 @@ Coverage.py Javascript Test Suite - + - -
- + 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"); -- cgit v1.2.1