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. --- coverage/html.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'coverage/html.py') diff --git a/coverage/html.py b/coverage/html.py index fc3bb364..253bda1c 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -199,10 +199,10 @@ class HtmlReporter(object): # Constants for all reports. # These css classes determine which lines are highlighted by default. 'category': { - 'exc': 'exc', - 'mis': 'mis', - 'par': 'par run hide_run', - 'run': 'run hide_run', + 'exc': 'exc show_exc', + 'mis': 'mis show_mis', + 'par': 'par run show_par', + 'run': 'run', } } self.pyfile_html_source = read_data("pyfile.html") @@ -316,8 +316,6 @@ class HtmlReporter(object): ldata.annotate_long = None css_classes = [] - if ldata.statement: - css_classes.append("stm") if ldata.category: css_classes.append(self.template_globals['category'][ldata.category]) ldata.css_class = ' '.join(css_classes) or "pln" -- cgit v1.2.1