summaryrefslogtreecommitdiff
path: root/test/farm/html/run_tabbed.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-11-25 09:51:51 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-11-25 09:51:51 -0500
commit0ecc4917ff57918eefb7a90e163fd4bfa9b923d4 (patch)
treebcf7c78fdc4ff6fdacb5de7260cbdb95f3896406 /test/farm/html/run_tabbed.py
parent19cf94d2af6f79cb5995f124bce3fe213823dac0 (diff)
downloadpython-coveragepy-git-0ecc4917ff57918eefb7a90e163fd4bfa9b923d4.tar.gz
Move the javascript code for click-to-sort columns into its own file. It helps keep the HTML tests from changing when the code changes. Also, don't compare non-HTML files in the tests.
Diffstat (limited to 'test/farm/html/run_tabbed.py')
-rw-r--r--test/farm/html/run_tabbed.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/farm/html/run_tabbed.py b/test/farm/html/run_tabbed.py
index e7e60cec..f28e0c37 100644
--- a/test/farm/html/run_tabbed.py
+++ b/test/farm/html/run_tabbed.py
@@ -5,14 +5,14 @@ def html_it():
cov.start()
import tabbed
cov.stop()
- cov.html_report(tabbed, directory="../html")
+ cov.html_report(tabbed, directory="../html_tabbed")
runfunc(html_it, rundir="src")
# Editors like to change things, make sure our source file still has tabs.
contains("src/tabbed.py", "\tif x:\t\t\t\t\t# look nice")
-contains("html/tabbed.html",
+contains("html_tabbed/tabbed.html",
">&nbsp; &nbsp; &nbsp; &nbsp; <span class='key'>if</span> "
"<span class='nam'>x</span><span class='op'>:</span>"
"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "
@@ -20,5 +20,5 @@ contains("html/tabbed.html",
"<span class='com'># look nice</span>"
)
-doesnt_contain("html/tabbed.html", "\t")
-clean("html")
+doesnt_contain("html_tabbed/tabbed.html", "\t")
+clean("html_tabbed")