1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
1 <!doctype html PUBLIC "-//W3C//DTD html 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
2 <html> |
2 <html> |
3 <head> |
3 <head> |
4 <meta http-equiv='Content-Type' content='text/html; charset=utf-8'> |
4 <meta http-equiv='Content-Type' content='text/html; charset=utf-8'> |
5 <title>Coverage for {{cu.name|escape}}</title> |
5 {# IE8 rounds line-height incorrectly, and adding this emulateIE7 line makes it right! #} |
6 <link rel='stylesheet' href='style.css' type='text/css'> |
6 {# http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/7684445e-f080-4d8f-8529-132763348e21 #} |
7 <script type='text/javascript' src='jquery-1.3.2.min.js'></script> |
7 <meta http-equiv='X-UA-Compatible' content='IE=emulateIE7' /> |
8 <script type='text/javascript'> |
8 <title>Coverage for {{cu.name|escape}}: {{nums.pc_covered_str}}%</title> |
9 function toggle_lines(btn, cls) { |
9 <link rel='stylesheet' href='style.css' type='text/css'> |
10 var btn = $(btn); |
10 {% if extra_css %} |
11 var hide = "hide_"+cls; |
11 <link rel='stylesheet' href='{{ extra_css }}' type='text/css'> |
12 if (btn.hasClass(hide)) { |
12 {% endif %} |
13 $("#source ."+cls).removeClass(hide); |
13 <script type='text/javascript' src='jquery.min.js'></script> |
14 btn.removeClass(hide); |
14 <script type='text/javascript' src='jquery.hotkeys.js'></script> |
15 } |
15 <script type='text/javascript' src='jquery.isonscreen.js'></script> |
16 else { |
16 <script type='text/javascript' src='coverage_html.js'></script> |
17 $("#source ."+cls).addClass(hide); |
17 <script type='text/javascript' charset='utf-8'> |
18 btn.addClass(hide); |
18 jQuery(document).ready(coverage.pyfile_ready); |
19 } |
19 </script> |
20 } |
|
21 </script> |
|
22 </head> |
20 </head> |
23 <body> |
21 <body id='pyfile'> |
|
22 |
24 <div id='header'> |
23 <div id='header'> |
25 <div class='content'> |
24 <div class='content'> |
26 <h1>Coverage for <b>{{cu.name|escape}}</b> : |
25 <h1>Coverage for <b>{{cu.name|escape}}</b> : |
27 <span class='pc_cov'>{{nums.pc_covered|format_pct}}%</span> |
26 <span class='pc_cov'>{{nums.pc_covered_str}}%</span> |
28 </h1> |
27 </h1> |
|
28 <img id='keyboard_icon' src='keybd_closed.png'> |
29 <h2 class='stats'> |
29 <h2 class='stats'> |
30 {{nums.n_statements}} statements |
30 {{nums.n_statements}} statements |
31 <span class='{{c_run.strip}}' onclick='toggle_lines(this, "run")'>{{nums.n_executed}} run</span> |
31 <span class='{{c_run}} shortkey_r button_toggle_run'>{{nums.n_executed}} run</span> |
32 <span class='{{c_exc.strip}}' onclick='toggle_lines(this, "exc")'>{{nums.n_excluded}} excluded</span> |
32 <span class='{{c_mis}} shortkey_m button_toggle_mis'>{{nums.n_missing}} missing</span> |
33 <span class='{{c_mis.strip}}' onclick='toggle_lines(this, "mis")'>{{nums.n_missing}} missing</span> |
33 <span class='{{c_exc}} shortkey_x button_toggle_exc'>{{nums.n_excluded}} excluded</span> |
34 {% if arcs %} |
34 {% if arcs %} |
35 <span class='{{c_par.strip}}' onclick='toggle_lines(this, "par")'>{{n_par}} partial</span> |
35 <span class='{{c_par}} shortkey_p button_toggle_par'>{{nums.n_partial_branches}} partial</span> |
36 {% endif %} |
36 {% endif %} |
37 </h2> |
37 </h2> |
38 </div> |
38 </div> |
39 </div> |
39 </div> |
40 |
40 |
|
41 <div class='help_panel'> |
|
42 <img id='panel_icon' src='keybd_open.png'> |
|
43 <p class='legend'>Hot-keys on this page</p> |
|
44 <div> |
|
45 <p class='keyhelp'> |
|
46 <span class='key'>r</span> |
|
47 <span class='key'>m</span> |
|
48 <span class='key'>x</span> |
|
49 <span class='key'>p</span> toggle line displays |
|
50 </p> |
|
51 <p class='keyhelp'> |
|
52 <span class='key'>j</span> |
|
53 <span class='key'>k</span> next/prev highlighted chunk |
|
54 </p> |
|
55 <p class='keyhelp'> |
|
56 <span class='key'>0</span> (zero) top of page |
|
57 </p> |
|
58 <p class='keyhelp'> |
|
59 <span class='key'>1</span> (one) first highlighted chunk |
|
60 </p> |
|
61 </div> |
|
62 </div> |
|
63 |
41 <div id='source'> |
64 <div id='source'> |
42 <table cellspacing='0' cellpadding='0'> |
65 <table cellspacing='0' cellpadding='0'> |
43 <tr> |
66 <tr> |
44 <td class='linenos' valign='top'> |
67 <td class='linenos' valign='top'> |
45 {% for line in lines %} |
68 {% for line in lines %} |
46 <p class='{{line.class}}'>{{line.number}}</p> |
69 <p id='n{{line.number}}' class='{{line.class}}'><a href='#n{{line.number}}'>{{line.number}}</a></p> |
47 {% endfor %} |
70 {% endfor %} |
48 </td> |
71 </td> |
49 <td class='text' valign='top'> |
72 <td class='text' valign='top'> |
50 {% for line in lines %} |
73 {% for line in lines %} |
51 <p class='{{line.class}}'>{% if line.annotate %}<span class='annotate' title='{{line.annotate_title}}'>{{line.annotate}}</span>{% endif %}{{line.html}}<span class='strut'> </span></p> |
74 <p id='t{{line.number}}' class='{{line.class}}'>{% if line.annotate %}<span class='annotate' title='{{line.annotate_title}}'>{{line.annotate}}</span>{% endif %}{{line.html}}<span class='strut'> </span></p> |
52 {% endfor %} |
75 {% endfor %} |
53 </td> |
76 </td> |
54 </tr> |
77 </tr> |
55 </table> |
78 </table> |
|
79 </div> |
|
80 |
|
81 <div id='footer'> |
|
82 <div class='content'> |
|
83 <p> |
|
84 <a class='nav' href='index.html'>« index</a> <a class='nav' href='{{__url__}}'>coverage.py v{{__version__}}</a> |
|
85 </p> |
|
86 </div> |
56 </div> |
87 </div> |
57 |
88 |
58 </body> |
89 </body> |
59 </html> |
90 </html> |