summaryrefslogtreecommitdiff
path: root/tests/farm
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-10-22 22:04:46 -0400
committerNed Batchelder <ned@nedbatchelder.com>2014-10-22 22:04:46 -0400
commitf1fa57a4b57f42694ca4d82c876e5f347dcaa381 (patch)
tree26cf4c2b8e22f2fb7ddccc78525613982e01aa48 /tests/farm
parente938c7058a1f109697de21baa34e9348594e6c59 (diff)
downloadpython-coveragepy-git-f1fa57a4b57f42694ca4d82c876e5f347dcaa381.tar.gz
Filtering now computes coverage percentages properly.
Diffstat (limited to 'tests/farm')
-rw-r--r--tests/farm/html/gold_omit_1/index.html30
-rw-r--r--tests/farm/html/run_a.py3
-rw-r--r--tests/farm/html/run_b_branch.py3
3 files changed, 25 insertions, 11 deletions
diff --git a/tests/farm/html/gold_omit_1/index.html b/tests/farm/html/gold_omit_1/index.html
index b7ee3594..34fd8fcb 100644
--- a/tests/farm/html/gold_omit_1/index.html
+++ b/tests/farm/html/gold_omit_1/index.html
@@ -4,7 +4,9 @@
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<title>Coverage report</title>
<link rel='stylesheet' href='style.css' type='text/css'>
+
<script type='text/javascript' src='jquery.min.js'></script>
+ <script type='text/javascript' src='jquery.debounce.min.js'></script>
<script type='text/javascript' src='jquery.tablesorter.min.js'></script>
<script type='text/javascript' src='jquery.hotkeys.js'></script>
<script type='text/javascript' src='coverage_html.js'></script>
@@ -12,19 +14,25 @@
jQuery(document).ready(coverage.index_ready);
</script>
</head>
-<body id='indexfile'>
+<body class='indexfile'>
<div id='header'>
<div class='content'>
<h1>Coverage report:
<span class='pc_cov'>100%</span>
</h1>
- <img id='keyboard_icon' src='keybd_closed.png'>
+
+ <img id='keyboard_icon' src='keybd_closed.png' />
+
+ <form id="filter_container">
+ <label for="filter">Filter</label>
+ <input id="filter" type="text" value="" />
+ </form>
</div>
</div>
<div class='help_panel'>
- <img id='panel_icon' src='keybd_open.png'>
+ <img id='panel_icon' src='keybd_open.png' />
<p class='legend'>Hot-keys on this page</p>
<div>
<p class='keyhelp'>
@@ -59,7 +67,7 @@
<td>0</td>
<td>0</td>
- <td class='right'>100%</td>
+ <td class='right' data-ratio='14 14'>100%</td>
</tr>
</tfoot>
<tbody>
@@ -70,7 +78,7 @@
<td>0</td>
<td>0</td>
- <td class='right'>100%</td>
+ <td class='right' data-ratio='2 2'>100%</td>
</tr>
<tr class='file'>
@@ -79,7 +87,7 @@
<td>0</td>
<td>0</td>
- <td class='right'>100%</td>
+ <td class='right' data-ratio='2 2'>100%</td>
</tr>
<tr class='file'>
@@ -88,7 +96,7 @@
<td>0</td>
<td>0</td>
- <td class='right'>100%</td>
+ <td class='right' data-ratio='2 2'>100%</td>
</tr>
<tr class='file'>
@@ -97,17 +105,21 @@
<td>0</td>
<td>0</td>
- <td class='right'>100%</td>
+ <td class='right' data-ratio='8 8'>100%</td>
</tr>
</tbody>
</table>
+
+ <p id="no_rows">
+ No items found using the specified filter.
+ </p>
</div>
<div id='footer'>
<div class='content'>
<p>
- <a class='nav' href='http://nedbatchelder.com/code/coverage/3.5a1'>coverage.py v3.5a1</a>
+ <a class='nav' href='http://nedbatchelder.com/code/coverage/4.0a1'>coverage.py v4.0a1</a>
</p>
</div>
</div>
diff --git a/tests/farm/html/run_a.py b/tests/farm/html/run_a.py
index 59cc1703..3fabd6f5 100644
--- a/tests/farm/html/run_a.py
+++ b/tests/farm/html/run_a.py
@@ -19,7 +19,8 @@ contains("html_a/a.html",
)
contains("html_a/index.html",
"<a href='a.html'>a</a>",
- "<span class='pc_cov'>67%</span>"
+ "<span class='pc_cov'>67%</span>",
+ "<td class='right' data-ratio='2 3'>67%</td>",
)
clean("html_a")
diff --git a/tests/farm/html/run_b_branch.py b/tests/farm/html/run_b_branch.py
index d0955a2a..0e584a6d 100644
--- a/tests/farm/html/run_b_branch.py
+++ b/tests/farm/html/run_b_branch.py
@@ -22,7 +22,8 @@ contains("html_b_branch/b.html",
)
contains("html_b_branch/index.html",
"<a href='b.html'>b</a>",
- "<span class='pc_cov'>70%</span>"
+ "<span class='pc_cov'>70%</span>",
+ "<td class='right' data-ratio='16 23'>70%</td>",
)
clean("html_b_branch")