summaryrefslogtreecommitdiff
path: root/tests/gold/html/styled
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-10-23 17:27:06 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-10-23 20:01:48 -0400
commit668eec7da3358c92b1e6ce266775bb2f89ff8260 (patch)
treef30a82b0340c5839e3c44f6b5a460f924e2f9fbb /tests/gold/html/styled
parentbd929f953734f3f5d6cf3e0534aa573b44fc45e2 (diff)
downloadpython-coveragepy-git-668eec7da3358c92b1e6ce266775bb2f89ff8260.tar.gz
test: update gold files
Diffstat (limited to 'tests/gold/html/styled')
-rw-r--r--tests/gold/html/styled/a_py.html89
-rw-r--r--tests/gold/html/styled/index.html71
-rw-r--r--tests/gold/html/styled/style.css8
3 files changed, 80 insertions, 88 deletions
diff --git a/tests/gold/html/styled/a_py.html b/tests/gold/html/styled/a_py.html
index 07a3298e..b2588e18 100644
--- a/tests/gold/html/styled/a_py.html
+++ b/tests/gold/html/styled/a_py.html
@@ -7,61 +7,56 @@
<link rel="icon" sizes="32x32" href="favicon_32.png">
<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.hotkeys.js"></script>
- <script type="text/javascript" src="jquery.isonscreen.js"></script>
- <script type="text/javascript" src="coverage_html.js"></script>
- <script type="text/javascript">
- jQuery(document).ready(coverage.pyfile_ready);
- </script>
+ <script type="text/javascript" src="coverage_html.js" defer></script>
</head>
<body class="pyfile">
-<aside id="sticky_header">
- <div class="content stats">
- <p><b>a.py</b> : 67%&nbsp;&nbsp;
- <button type="button" class="run button_toggle_run" title="Toggle lines run">2</button>
- <button type="button" class="mis show_mis button_toggle_mis" title="Toggle lines missing">1</button>
- <button type="button" class="exc show_exc button_toggle_exc" title="Toggle lines excluded">0</button>
- <img id="keyboard_icon" src="keybd_closed.png" alt="Show keyboard shortcuts" />
- </p>
- </div>
-</aside>
<header>
<div class="content">
- <h1>Coverage for <b>a.py</b> :
+ <h1>
+ <span class="text">Coverage for </span><b>a.py</b>:
<span class="pc_cov">67%</span>
</h1>
- <img id="keyboard_icon" src="keybd_closed.png" alt="Show keyboard shortcuts" />
- <h2 class="stats">
- 3 statements &nbsp;
- <button type="button" class="run shortkey_r button_toggle_run" title="Toggle lines run">2 run</button>
- <button type="button" class="mis show_mis shortkey_m button_toggle_mis" title="Toggle lines missing">1 missing</button>
- <button type="button" class="exc show_exc shortkey_x button_toggle_exc" title="Toggle lines excluded">0 excluded</button>
+ <div id="help_panel_wrapper">
+ <input id="help_panel_state" type="checkbox">
+ <label for="help_panel_state">
+ <img id="keyboard_icon" src="keybd_closed.png" alt="Show/hide keyboard shortcuts" />
+ </label>
+ <div id="help_panel">
+ <p class="legend">Shortcuts on this page</p>
+ <div>
+ <p class="keyhelp">
+ <kbd>r</kbd>
+ <kbd>m</kbd>
+ <kbd>x</kbd>
+ <kbd>p</kbd> &nbsp; toggle line displays
+ </p>
+ <p class="keyhelp">
+ <kbd>j</kbd>
+ <kbd>k</kbd> &nbsp; next/prev highlighted chunk
+ </p>
+ <p class="keyhelp">
+ <kbd>0</kbd> &nbsp; (zero) top of page
+ </p>
+ <p class="keyhelp">
+ <kbd>1</kbd> &nbsp; (one) first highlighted chunk
+ </p>
+ </div>
+ </div>
+ </div>
+ <h2>
+ <span class="text">3 statements &nbsp;</span>
+ <button type="button" class="run button_toggle_run" value="run" data-shortcut="r" title="Toggle lines run">2<span class="text"> run</span></button>
+ <button type="button" class="mis show_mis button_toggle_mis" value="mis" data-shortcut="m" title="Toggle lines missing">1<span class="text"> missing</span></button>
+ <button type="button" class="exc show_exc button_toggle_exc" value="exc" data-shortcut="x" title="Toggle lines excluded">0<span class="text"> excluded</span></button>
</h2>
+ <div style="display: none;">
+ <button type="button" class="button_next_chunk" data-shortcut="j">Next highlighted chunk</button>
+ <button type="button" class="button_prev_chunk" data-shortcut="k">Previous highlighted chunk</button>
+ <button type="button" class="button_top_of_page" data-shortcut="0">Goto top of page</button>
+ <button type="button" class="button_first_chunk" data-shortcut="1">Goto first highlighted chunk</button>
+ </div>
</div>
</header>
-<aside class="help_panel">
- <img id="panel_icon" src="keybd_open.png" alt="Hide keyboard shortcuts" />
- <p class="legend">Hot-keys on this page</p>
- <div>
- <p class="keyhelp">
- <span class="key">r</span>
- <span class="key">m</span>
- <span class="key">x</span>
- <span class="key">p</span> &nbsp; toggle line displays
- </p>
- <p class="keyhelp">
- <span class="key">j</span>
- <span class="key">k</span> &nbsp; next/prev highlighted chunk
- </p>
- <p class="keyhelp">
- <span class="key">0</span> &nbsp; (zero) top of page
- </p>
- <p class="keyhelp">
- <span class="key">1</span> &nbsp; (one) first highlighted chunk
- </p>
- </div>
-</aside>
<main id="source">
<p id="t1" class="run"><span class="n"><a href="#t1">1</a></span><span class="t"><span class="key">if</span> <span class="num">1</span> <span class="op">&lt;</span> <span class="num">2</span><span class="op">:</span>&nbsp;</span><span class="r"></span></p>
<p id="t2" class="pln"><span class="n"><a href="#t2">2</a></span><span class="t"> <span class="com"># Needed a &lt; to look at HTML entities.</span>&nbsp;</span><span class="r"></span></p>
@@ -73,7 +68,7 @@
<div class="content">
<p>
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io/en/6.1a0">coverage.py v6.1a0</a>,
- created at 2021-10-17 10:52 -0400
+ created at 2021-10-23 08:16 -0400
</p>
</div>
</footer>
diff --git a/tests/gold/html/styled/index.html b/tests/gold/html/styled/index.html
index 77b2faca..45b28367 100644
--- a/tests/gold/html/styled/index.html
+++ b/tests/gold/html/styled/index.html
@@ -6,14 +6,7 @@
<link rel="icon" sizes="32x32" href="favicon_32.png">
<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.ba-throttle-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>
- <script type="text/javascript">
- jQuery(document).ready(coverage.index_ready);
- </script>
+ <script type="text/javascript" src="coverage_html.js" defer></script>
</head>
<body class="indexfile">
<header>
@@ -21,54 +14,58 @@
<h1>Coverage report:
<span class="pc_cov">67%</span>
</h1>
- <img id="keyboard_icon" src="keybd_closed.png" alt="Show keyboard shortcuts" />
+ <div id="help_panel_wrapper">
+ <input id="help_panel_state" type="checkbox">
+ <label for="help_panel_state">
+ <img id="keyboard_icon" src="keybd_closed.png" alt="Show/hide keyboard shortcuts" />
+ </label>
+ <div id="help_panel">
+ <p class="legend">Shortcuts on this page</p>
+ <div>
+ <p class="keyhelp">
+ <kbd>n</kbd>
+ <kbd>s</kbd>
+ <kbd>m</kbd>
+ <kbd>x</kbd>
+ <kbd>c</kbd> &nbsp; change column sorting
+ </p>
+ </div>
+ </div>
+ </div>
<form id="filter_container">
<input id="filter" type="text" value="" placeholder="filter..." />
</form>
</div>
</header>
-<aside class="help_panel">
- <img id="panel_icon" src="keybd_open.png" alt="Hide keyboard shortcuts" />
- <p class="legend">Hot-keys on this page</p>
- <div>
- <p class="keyhelp">
- <span class="key">n</span>
- <span class="key">s</span>
- <span class="key">m</span>
- <span class="key">x</span>
- <span class="key">c</span> &nbsp; change column sorting
- </p>
- </div>
-</aside>
<main id="index">
- <table class="index">
+ <table class="index" data-sortable>
<thead>
<tr class="tablehead" title="Click to sort">
- <th class="name left headerSortDown shortkey_n">Module</th>
- <th class="shortkey_s">statements</th>
- <th class="shortkey_m">missing</th>
- <th class="shortkey_x">excluded</th>
- <th class="right shortkey_c">coverage</th>
+ <th class="name left" aria-sort="none" data-shortcut="n">Module</th>
+ <th aria-sort="none" data-default-sort-order="descending" data-shortcut="s">statements</th>
+ <th aria-sort="none" data-default-sort-order="descending" data-shortcut="m">missing</th>
+ <th aria-sort="none" data-default-sort-order="descending" data-shortcut="x">excluded</th>
+ <th class="right" aria-sort="none" data-shortcut="c">coverage</th>
</tr>
</thead>
- <tfoot>
- <tr class="total">
- <td class="name left">Total</td>
+ <tbody>
+ <tr class="file">
+ <td class="name left"><a href="a_py.html">a.py</a></td>
<td>3</td>
<td>1</td>
<td>0</td>
<td class="right" data-ratio="2 3">67%</td>
</tr>
- </tfoot>
- <tbody>
- <tr class="file">
- <td class="name left"><a href="a_py.html">a.py</a></td>
+ </tbody>
+ <tfoot>
+ <tr class="total">
+ <td class="name left">Total</td>
<td>3</td>
<td>1</td>
<td>0</td>
<td class="right" data-ratio="2 3">67%</td>
</tr>
- </tbody>
+ </tfoot>
</table>
<p id="no_rows">
No items found using the specified filter.
@@ -78,7 +75,7 @@
<div class="content">
<p>
<a class="nav" href="https://coverage.readthedocs.io/en/6.1a0">coverage.py v6.1a0</a>,
- created at 2021-10-17 10:52 -0400
+ created at 2021-10-23 08:16 -0400
</p>
</div>
</footer>
diff --git a/tests/gold/html/styled/style.css b/tests/gold/html/styled/style.css
index 910a779e..3b4643a1 100644
--- a/tests/gold/html/styled/style.css
+++ b/tests/gold/html/styled/style.css
@@ -278,13 +278,13 @@ kbd { border: 1px solid black; border-color: #888 #333 #333 #888; padding: .1em
@media (prefers-color-scheme: dark) { #index th:hover { background: #333; } }
-#index th.headerSortDown, #index th.headerSortUp { white-space: nowrap; background: #eee; }
+#index th[aria-sort="ascending"], #index th[aria-sort="descending"] { white-space: nowrap; background: #eee; padding-left: .5em; }
-@media (prefers-color-scheme: dark) { #index th.headerSortDown, #index th.headerSortUp { background: #333; } }
+@media (prefers-color-scheme: dark) { #index th[aria-sort="ascending"], #index th[aria-sort="descending"] { background: #333; } }
-#index th.headerSortDown:after { content: " ↑"; }
+#index th[aria-sort="ascending"]::after { content: "↑"; }
-#index th.headerSortUp:after { content: " ↓"; }
+#index th[aria-sort="descending"]::after { content: "↓"; }
#index td.name a { text-decoration: none; color: inherit; }