diff options
-rw-r--r-- | tests/farm/html/gold_styled/style.css | 12 | ||||
-rw-r--r-- | tests/test_html.py | 4 |
2 files changed, 13 insertions, 3 deletions
diff --git a/tests/farm/html/gold_styled/style.css b/tests/farm/html/gold_styled/style.css index 0cd0cce1..14592865 100644 --- a/tests/farm/html/gold_styled/style.css +++ b/tests/farm/html/gold_styled/style.css @@ -2,6 +2,7 @@ /* For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt */ /* CSS styles for coverage.py. */ + /* Page-wide styles */ html, body, h1, h2, h3, p, table, td, th { margin: 0; @@ -321,7 +322,15 @@ td.text { } #index th.headerSortDown, #index th.headerSortUp { border-bottom: 1px solid #000; + white-space: nowrap; + background: #eee; } +#index th.headerSortDown:after { + content: " ↓"; +} +#index th.headerSortUp:after { + content: " ↑"; +} #index td.name, #index th.name { text-align: left; width: auto; @@ -356,10 +365,11 @@ td.text { height: 100%; background: white; border-left: 1px solid #eee; + will-change: transform; /* for faster scrolling of fixed element in Chrome */ } #scroll_marker .marker { - background: #ffdddd; + background: #eedddd; position: absolute; min-height: 3px; width: 100%; diff --git a/tests/test_html.py b/tests/test_html.py index 98e7b0b3..7f2954c8 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -958,7 +958,7 @@ assert len(math) == 18 a = 4 """) - self.make_file("extra.css", "/* Doesn't matter what goes in here, it gets copied. */") + self.make_file("extra.css", "/* Doesn't matter what goes in here, it gets copied. */\n") cov = coverage.Coverage() cov.start() @@ -967,7 +967,7 @@ assert len(math) == 18 cov.html_report(a, directory="out", extra_css="extra.css") compare_html(gold_path("html/gold_styled"), "out") - compare(gold_path("html/gold_styled"), "out", size_within=10, file_pattern="*.css") + compare(gold_path("html/gold_styled"), "out", file_pattern="*.css") contains( "out/a_py.html", '<link rel="stylesheet" href="extra.css" type="text/css">', |