summaryrefslogtreecommitdiff
path: root/coverage/html.py
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 /coverage/html.py
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 'coverage/html.py')
-rw-r--r--coverage/html.py10
1 files changed, 4 insertions, 6 deletions
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"