1 |
|
<!DOCTYPE html> |
2 |
<!-- |
<!-- |
3 |
scriptaculous.html - script.aculo.us unit tests for JSCoverage |
jscoverage.html - code coverage for JavaScript |
4 |
Copyright (C) 2007 siliconforks.com |
Copyright (C) 2007, 2008 siliconforks.com |
5 |
|
|
6 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
21 |
<html> |
<html> |
22 |
<head> |
<head> |
23 |
<title>JSCoverage</title> |
<title>JSCoverage</title> |
24 |
<script src="scriptaculous-js-1.7.0/lib/prototype.js" type="text/javascript"></script> |
<link rel="stylesheet" type="text/css" href="scriptaculous-js-1.8.1/test/test.css"> |
25 |
<script src="scriptaculous-js-1.7.0/src/unittest.js" type="text/javascript"></script> |
<script type="text/javascript" src="scriptaculous-js-1.8.1/lib/prototype.js"></script> |
26 |
<script type="text/javascript" src="sh_main.js"></script> |
<script type="text/javascript" src="scriptaculous-js-1.8.1/src/unittest.js"></script> |
27 |
<script type="text/javascript" src="sh_javascript.min.js"></script> |
|
28 |
<script src="jscoverage.js" type="text/javascript"></script> |
<link rel="stylesheet" type="text/css" href="jscoverage-highlight.css"> |
29 |
<link rel="stylesheet" href="scriptaculous-js-1.7.0/test/test.css" type="text/css"> |
<link rel="stylesheet" type="text/css" href="jscoverage.css"> |
30 |
<link rel="stylesheet" href="jscoverage.css" type="text/css"> |
<!--[if IE]> |
31 |
|
<link rel="stylesheet" type="text/css" href="jscoverage-ie.css"> |
32 |
|
<![endif]--> |
33 |
|
<script type="text/javascript" src="jscoverage.js"></script> |
34 |
</head> |
</head> |
35 |
<body id="body"> |
|
36 |
<div style="position: absolute; top: 100px; left: 5%; width: 90%; z-index: 10; background: white;"> |
<body onload="jscoverage_body_load();" onresize="jscoverage_body_resize();"> |
37 |
|
<div style="position: absolute; top: 150px; left: 5%; width: 90%; z-index: 10; background-color: white;"> |
38 |
<div id="testlog"></div> |
<div id="testlog"></div> |
39 |
<div id="result"></div> |
<div id="result"></div> |
40 |
</div> |
</div> |
45 |
<h1>JSCoverage</h1> |
<h1>JSCoverage</h1> |
46 |
</div> |
</div> |
47 |
|
|
48 |
<div id="tabControl" class="TabControl"> |
<div id="tabs" class="Tabs"> |
49 |
<div id="tabs" class="Tabs"> |
<div id="browserTab"><img src="jscoverage-throbber.gif" alt="loading..."> Browser <img src="jscoverage-throbber.gif" alt="loading..."></div> |
50 |
<div><img src="jscoverage-throbber.gif" alt="loading..."> Browser <img src="jscoverage-throbber.gif" alt="loading..."></div> |
<div id="summaryTab"><img id="summaryThrobber" src="jscoverage-throbber.gif" alt="loading..."> Summary <img src="jscoverage-throbber.gif" alt="loading..."></div> |
51 |
<div id="summaryTab"><img src="jscoverage-throbber.gif" alt="loading..."> Summary <img src="jscoverage-throbber.gif" alt="loading..."></div> |
<div id="sourceTab" class="disabled"><img id="throbberImg" src="jscoverage-throbber.gif" alt="loading..."> Source <img src="jscoverage-throbber.gif" alt="loading..."></div> |
52 |
<div id="sourceTab" class="disabled"><img id="throbberImg" src="jscoverage-throbber.gif" alt="loading..."> Source <img src="jscoverage-throbber.gif" alt="loading..."></div> |
<div id="storeTab"><img id="throbberImg" src="jscoverage-throbber.gif" alt="loading..."> Store <img src="jscoverage-throbber.gif" alt="loading..."></div> |
53 |
<div><img src="jscoverage-throbber.gif" alt="loading..."> About <img src="jscoverage-throbber.gif" alt="loading..."></div> |
<div id="aboutTab"><img src="jscoverage-throbber.gif" alt="loading..."> About <img src="jscoverage-throbber.gif" alt="loading..."></div> |
54 |
</div> |
</div> |
55 |
<div id="tabPages" class="TabPages"> |
<div id="tabPages" class="TabPages"> |
56 |
<div class="TabPage"> |
<div class="TabPage" id="browserTabPage"> |
57 |
<div id="locationDiv"> |
<div id="locationDiv"> |
58 |
URL: <input id="location" type="text" size="70" onkeypress="input_keypress(event)"> |
URL: <input id="location" type="text" size="70" onkeypress="jscoverage_input_keypress(event)"> |
59 |
<button onclick="button_click();">Go</button> |
<button onclick="jscoverage_button_click();">Go</button> |
|
</div> |
|
|
<iframe id="browserIframe" onload="browser_load();"></iframe> |
|
|
</div> |
|
|
<div class="TabPage"> |
|
|
<div id="summaryDiv"> |
|
|
<table id="summaryTable"> |
|
|
<thead> |
|
|
<tr> |
|
|
<th>File</th> |
|
|
<th><abbr title="The total number of executable statements">Statements</abbr></th> |
|
|
<th><abbr title="The number of statements actually executed">Executed</abbr></th> |
|
|
<th><abbr title="Number of executed statements as a percentage of total number of statements">Coverage</abbr></th> |
|
|
<th><abbr title="List of statements missed during execution">Missing</abbr></th> |
|
|
</tr> |
|
|
<tr id="summaryTotals"> |
|
|
<td class="totals"> |
|
|
<span class="title">Total:</span> |
|
|
<span>0</span> |
|
|
</td> |
|
|
<td class="numeric">0</td> |
|
|
<td class="numeric">0</td> |
|
|
<td class="coverage"> |
|
|
<div class="pctGraph"> |
|
|
<div class="covered"></div> |
|
|
</div> |
|
|
<span class="pct">0%</span> |
|
|
</td> |
|
|
<td></td> |
|
|
</tr> |
|
|
</thead> |
|
|
<tbody id="summaryTbody"> |
|
|
|
|
|
<!-- |
|
|
<tr> |
|
|
<td>0</td> |
|
|
<td>0</td> |
|
|
<td>0</td> |
|
|
<td>0%</td> |
|
|
<td>0</td> |
|
|
</tr> |
|
|
--> |
|
|
|
|
|
</tbody> |
|
|
</table> |
|
|
</div> |
|
60 |
</div> |
</div> |
61 |
<div class="TabPage"> |
<div id="iframeDiv"> |
62 |
<div id="fileDiv"></div> |
<iframe id="browserIframe" onload="jscoverage_browser_load();"></iframe> |
|
<div id="sourceDiv"></div> |
|
63 |
</div> |
</div> |
64 |
<div class="TabPage"> |
</div> |
65 |
This is version 0.2 of JSCoverage, a program that calculates code |
<div class="TabPage"> |
66 |
coverage statistics for JavaScript. |
<input type="checkbox" id="checkbox" onclick="return jscoverage_checkbox_click();"> <label for="checkbox">Show missing statements column</label> |
67 |
<p> |
<div id="summaryDiv"> |
68 |
See <a href="http://siliconforks.com/jscoverage/">http://siliconforks.com/jscoverage/</a> for more information. |
<div id="summaryErrorDiv"></div> |
69 |
</p> |
<table id="summaryTable"> |
70 |
<p> |
<thead> |
71 |
Copyright © 2007 siliconforks.com |
<tr id="headerRow"> |
72 |
</p> |
<th class="leftColumn">File</th> |
73 |
|
<th><abbr title="The total number of executable statements">Statements</abbr></th> |
74 |
|
<th><abbr title="The number of statements actually executed">Executed</abbr></th> |
75 |
|
<th><abbr title="Number of executed statements as a percentage of total number of statements">Coverage</abbr></th> |
76 |
|
</tr> |
77 |
|
<tr id="summaryTotals"> |
78 |
|
<td class="leftColumn"> |
79 |
|
<span class="title">Total:</span> |
80 |
|
<span>0</span> |
81 |
|
</td> |
82 |
|
<td class="numeric">0</td> |
83 |
|
<td class="numeric">0</td> |
84 |
|
<td class="coverage"> |
85 |
|
<div class="pctGraph"> |
86 |
|
<div class="covered"></div> |
87 |
|
</div> |
88 |
|
<span class="pct">0%</span> |
89 |
|
</td> |
90 |
|
</tr> |
91 |
|
|
92 |
|
</thead> |
93 |
|
<tbody id="summaryTbody"> |
94 |
|
|
95 |
|
<!-- |
96 |
|
<tr> |
97 |
|
<td>0</td> |
98 |
|
<td>0</td> |
99 |
|
<td>0</td> |
100 |
|
<td>0%</td> |
101 |
|
<td>0</td> |
102 |
|
</tr> |
103 |
|
--> |
104 |
|
|
105 |
|
</tbody> |
106 |
|
</table> |
107 |
</div> |
</div> |
108 |
</div> |
</div> |
109 |
|
<div class="TabPage"> |
110 |
|
<div id="fileDiv"></div> |
111 |
|
<div id="sourceDiv"></div> |
112 |
|
</div> |
113 |
|
<div class="TabPage" id="storeTabPage"> |
114 |
|
<button id="storeButton" onclick="jscoverage_storeButton_click();">Store Report</button> |
115 |
|
<img id="storeImg" src="jscoverage-throbber.gif" alt="loading..."> |
116 |
|
<div id="storeDiv"></div> |
117 |
|
</div> |
118 |
|
<div class="TabPage"> |
119 |
|
<p> |
120 |
|
This is version 0.4 of JSCoverage, a program that calculates code |
121 |
|
coverage statistics for JavaScript. |
122 |
|
</p> |
123 |
|
<p> |
124 |
|
See <a href="http://siliconforks.com/jscoverage/">http://siliconforks.com/jscoverage/</a> for more information. |
125 |
|
</p> |
126 |
|
<p> |
127 |
|
Copyright © 2007, 2008 siliconforks.com |
128 |
|
</p> |
129 |
|
</div> |
130 |
</div> |
</div> |
131 |
|
|
132 |
<script src="scriptaculous.js" type="text/javascript"></script> |
<script type="text/javascript" src="scriptaculous.js"></script> |
133 |
</body> |
</body> |
134 |
</html> |
</html> |