diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2014-10-20 19:53:40 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-10-20 19:53:40 -0400 |
| commit | 10ebfe655d6e31d49ac2149fbefba527d23c75ec (patch) | |
| tree | 5b2279082da3f9e74df355cc870ed9009e05bc7b /tests/farm/html/gold_styled | |
| parent | 415f6ef8fe02dab63327697d43c345d64dd6968d (diff) | |
| download | python-coveragepy-git-10ebfe655d6e31d49ac2149fbefba527d23c75ec.tar.gz | |
Update tests changed by new HTML for filtering
Diffstat (limited to 'tests/farm/html/gold_styled')
| -rw-r--r-- | tests/farm/html/gold_styled/index.html | 20 | ||||
| -rw-r--r-- | tests/farm/html/gold_styled/style.css | 54 |
2 files changed, 67 insertions, 7 deletions
diff --git a/tests/farm/html/gold_styled/index.html b/tests/farm/html/gold_styled/index.html index c0c8b949..5e2af777 100644 --- a/tests/farm/html/gold_styled/index.html +++ b/tests/farm/html/gold_styled/index.html @@ -4,7 +4,11 @@ <meta http-equiv='Content-Type' content='text/html; charset=utf-8'> <title>Coverage report</title> <link rel='stylesheet' href='style.css' type='text/css'> + + <link rel='stylesheet' href='extra.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> @@ -19,12 +23,18 @@ <h1>Coverage report: <span class='pc_cov'>67%</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'> @@ -75,12 +85,16 @@ </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/gold_styled/style.css b/tests/farm/html/gold_styled/style.css index c40357b8..0c29711a 100644 --- a/tests/farm/html/gold_styled/style.css +++ b/tests/farm/html/gold_styled/style.css @@ -24,13 +24,21 @@ html>body { /* Set base font size to 12/16 */ p { - font-size: .75em; /* 12/16 */ - line-height: 1.3333em; /* 16/12 */ + font-size: .75em; /* 12/16 */ + line-height: 1.33333333em; /* 16/12 */ } table { border-collapse: collapse; } +table tr.hidden { + display: none !important; + } + +p#no_rows { + display: none; + font-size: 1.2em; + } a.nav { text-decoration: none; @@ -80,6 +88,16 @@ a.nav:hover { h1 { font-size: 1.25em; + display: inline-block; +} + +form#filter_container { + display: inline-block; + float: right; + margin: 0 3em 0 0; +} +form#filter_container input { + width: 24em; } h2.stats { @@ -102,9 +120,35 @@ h2.stats { border-color: #999 #ccc #ccc #999; } +.stats span.run { + background: #ddffdd; +} +.stats span.exc { + background: #eeeeee; +} +.stats span.mis { + background: #ffdddd; +} +.stats span.hide_run { + background: #eeffee; +} +.stats span.hide_exc { + background: #f5f5f5; +} +.stats span.hide_mis { + background: #ffeeee; +} +.stats span.par { + background: #ffffaa; +} +.stats span.hide_par { + background: #ffffcc; +} + /* Help panel */ #keyboard_icon { float: right; + margin: 5px; cursor: pointer; } @@ -263,9 +307,11 @@ td.text { text-decoration: underline; color: #000; } -#index tr.total { +#index tr.total, +#index tr.total_dynamic { } -#index tr.total td { +#index tr.total td, +#index tr.total_dynamic td { font-weight: bold; border-top: 1px solid #ccc; border-bottom: none; |
