summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-02-03 07:38:17 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-02-03 07:38:17 -0500
commitbdd349dcff224d66967333d842ef0f43190fef3c (patch)
tree24b25b4dcd81ab9c3e178b03d72940b0c8e6c3e3
parent41bff023af65451c4479e7a661fb571c028fd516 (diff)
downloadpython-coveragepy-git-bdd349dcff224d66967333d842ef0f43190fef3c.tar.gz
Fix the tests for HTML annotation changes
-rw-r--r--coverage/htmlfiles/style.css8
-rw-r--r--tests/farm/html/gold_styled/style.css55
2 files changed, 52 insertions, 11 deletions
diff --git a/coverage/htmlfiles/style.css b/coverage/htmlfiles/style.css
index ea261e93..c3767eef 100644
--- a/coverage/htmlfiles/style.css
+++ b/coverage/htmlfiles/style.css
@@ -269,15 +269,17 @@ td.text {
white-space: normal;
float: right;
position: absolute;
- top: 1.5em;
- right: 0;
+ top: 1.75em;
+ right: 1em;
width: 30em;
height: auto;
+ color: #333;
background: #ffffcc;
border: 1px solid #888;
padding: .25em .5em;
z-index: 999;
-
+ border-radius: .2em;
+ box-shadow: #cccccc .2em .2em .2em;
}
/* Syntax coloring */
diff --git a/tests/farm/html/gold_styled/style.css b/tests/farm/html/gold_styled/style.css
index 2dfb8f65..c3767eef 100644
--- a/tests/farm/html/gold_styled/style.css
+++ b/tests/farm/html/gold_styled/style.css
@@ -64,7 +64,7 @@ a.nav:hover {
#source {
padding: 1em;
- font-family: "courier new", monospace;
+ font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.indexfile #footer {
@@ -160,7 +160,7 @@ h2.stats {
.help_panel {
position: absolute;
- background: #ffc;
+ background: #ffffcc;
padding: .5em;
border: 1px solid #883;
display: none;
@@ -226,7 +226,8 @@ td.text {
margin: 0;
padding: 0 0 0 .5em;
border-left: 2px solid #ffffff;
- white-space: nowrap;
+ white-space: pre;
+ position: relative;
}
.text p.mis {
@@ -252,7 +253,6 @@ td.text {
.text span.annotate {
font-family: georgia;
- font-style: italic;
color: #666;
float: right;
padding-right: .5em;
@@ -260,6 +260,27 @@ td.text {
.text p.hide_par span.annotate {
display: none;
}
+.text span.annotate.long {
+ display: none;
+ }
+.text p:hover span.annotate.long {
+ display: block;
+ max-width: 50%;
+ white-space: normal;
+ float: right;
+ position: absolute;
+ top: 1.75em;
+ right: 1em;
+ width: 30em;
+ height: auto;
+ color: #333;
+ background: #ffffcc;
+ border: 1px solid #888;
+ padding: .25em .5em;
+ z-index: 999;
+ border-radius: .2em;
+ box-shadow: #cccccc .2em .2em .2em;
+ }
/* Syntax coloring */
.text .com {
@@ -309,10 +330,6 @@ td.text {
text-decoration: none;
color: #000;
}
-#index td.name a:hover {
- text-decoration: underline;
- color: #000;
- }
#index tr.total,
#index tr.total_dynamic {
}
@@ -325,3 +342,25 @@ td.text {
#index tr.file:hover {
background: #eeeeee;
}
+#index tr.file:hover td.name {
+ text-decoration: underline;
+ color: #000;
+ }
+
+/* scroll marker styles */
+#scroll_marker {
+ position: fixed;
+ right: 0;
+ top: 0;
+ width: 16px;
+ height: 100%;
+ background: white;
+ border-left: 1px solid #eee;
+ }
+
+#scroll_marker .marker {
+ background: #ffdddd;
+ position: absolute;
+ min-height: 3px;
+ width: 100%;
+ }