jscoverage.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <!DOCTYPE html>
  2. <!--
  3. jscoverage.html - code coverage for JavaScript
  4. Copyright (C) 2007, 2008, 2009, 2010 siliconforks.com
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License along
  14. with this program; if not, write to the Free Software Foundation, Inc.,
  15. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  16. -->
  17. <html>
  18. <head>
  19. <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
  20. <title>JSCoverage</title>
  21. <link rel="stylesheet" type="text/css" href="jscoverage-highlight.css">
  22. <link rel="stylesheet" type="text/css" href="jscoverage.css">
  23. <!--[if IE]>
  24. <link rel="stylesheet" type="text/css" href="jscoverage-ie.css">
  25. <![endif]-->
  26. <script type="text/javascript" src="jscoverage.js"></script>
  27. <script type="text/javascript" src="source.js"></script>
  28. <script type="text/javascript" src="readCoverage.js"></script>
  29. </head>
  30. <body onload="jscoverage_body_load();" onresize="jscoverage_body_resize();">
  31. <div id="mainDiv">
  32. <div id="headingDiv">
  33. <h1>JSCoverage</h1>
  34. <div class="ProgressBar" id="progressBar"><span class="ProgressPercentage"></span><div class="ProgressGraph"><div class="ProgressCovered"></div></div></div>
  35. <span id="progressLabel"></span>
  36. <div id="warningDiv"><strong>Warning:</strong> <a href="#" onclick="jscoverage_openWarningDialog(); return false;">loading <code>jscoverage.html</code> using a <code>file:</code> URL is deprecated</a></div>
  37. </div>
  38. <div id="warningDialog" class="WarningDialog">
  39. <p>
  40. Recent web browsers tend to place significant security restrictions on the use
  41. of <code>file:</code> URLs. These restrictions can prevent JSCoverage from
  42. working properly. To avoid problems, it is recommended that you do either of the
  43. following:
  44. </p>
  45. <ul>
  46. <li>If you are using the <code>jscoverage</code> program to instrument your
  47. JavaScript code, install the instrumented files on a web server.</li>
  48. <li>Use the <code>jscoverage-server</code> program (which itself acts as a web
  49. server).</li>
  50. </ul>
  51. <p>
  52. See the
  53. <a target="_blank" href="http://siliconforks.com/jscoverage/manual.html">manual</a>
  54. for further details.
  55. </p>
  56. <button type="button" onclick="jscoverage_closeWarningDialog();">OK</button>
  57. </div>
  58. <div id="reportWarningDialog" class="WarningDialog">
  59. <p>
  60. Recent web browsers tend to place significant security restrictions on the use
  61. of <code>file:</code> URLs. These restrictions can prevent JSCoverage from
  62. working properly. To avoid problems, it is recommended that you view coverage
  63. reports stored to the filesystem by serving them from a web server.
  64. </p>
  65. <p>
  66. See the
  67. <a target="_blank" href="http://siliconforks.com/jscoverage/manual.html">manual</a>
  68. for further details.
  69. </p>
  70. <button type="button" onclick="jscoverage_closeWarningDialog();">OK</button>
  71. </div>
  72. <div id="tabs" class="Tabs">
  73. <!--
  74. <div id="browserTab"><img src="jscoverage-throbber.gif" alt=""> Browser <img src="jscoverage-throbber.gif" alt=""></div>
  75. -->
  76. <div id="summaryTab"><img id="summaryThrobber" src="jscoverage-throbber.gif" alt=""> Summary <img src="jscoverage-throbber.gif" alt=""></div>
  77. <div id="sourceTab" class="disabled"><img src="jscoverage-throbber.gif" alt=""> Source <img src="jscoverage-throbber.gif" alt=""></div>
  78. <div id="storeTab"><img id="storeThrobber" src="jscoverage-throbber.gif" alt=""> Store <img src="jscoverage-throbber.gif" alt=""></div>
  79. <div id="aboutTab"><img src="jscoverage-throbber.gif" alt=""> About <img src="jscoverage-throbber.gif" alt=""></div>
  80. </div>
  81. <div id="tabPages" class="TabPages">
  82. <!-- <div class="TabPage" id="browserTabPage">
  83. <div id="locationDiv">
  84. URL: <input id="location" type="text" size="70" onkeypress="jscoverage_input_keypress(event)">
  85. <button onclick="jscoverage_openInFrameButton_click();" title="open URL in the iframe below [Enter]">Open in frame</button>
  86. <button onclick="jscoverage_openInWindowButton_click();" title="open URL in a new window (or tab) [Shift+Enter]">Open in window</button>
  87. </div>
  88. <div id="iframeDiv">
  89. <iframe id="browserIframe" onload="jscoverage_browser_load();"></iframe>
  90. </div>
  91. </div>-->
  92. <div class="TabPage">
  93. <input type="checkbox" id="checkbox" onclick="return jscoverage_checkbox_click();"> <label for="checkbox">Show missing statements column</label>
  94. <div id="summaryDiv">
  95. <div id="summaryErrorDiv"></div>
  96. <table id="summaryTable">
  97. <thead>
  98. <tr id="headerRow">
  99. <th class="leftColumn">File</th>
  100. <th><abbr title="The total number of executable statements">Statements</abbr></th>
  101. <th><abbr title="The number of statements actually executed">Executed</abbr></th>
  102. <th><abbr title="Number of executed statements as a percentage of total number of statements">Coverage</abbr></th>
  103. </tr>
  104. <tr id="summaryTotals">
  105. <td class="leftColumn">
  106. <span class="title">Total:</span>
  107. <span>0</span>
  108. </td>
  109. <td class="numeric">0</td>
  110. <td class="numeric">0</td>
  111. <td class="coverage">
  112. <div class="pctGraph">
  113. <div class="covered"></div>
  114. </div>
  115. <span class="pct">0%</span>
  116. </td>
  117. </tr>
  118. </thead>
  119. <tbody id="summaryTbody">
  120. <!--
  121. <tr>
  122. <td>0</td>
  123. <td>0</td>
  124. <td>0</td>
  125. <td>0%</td>
  126. <td>0</td>
  127. </tr>
  128. -->
  129. </tbody>
  130. </table>
  131. </div>
  132. </div>
  133. <div class="TabPage">
  134. <div id="fileDiv"></div>
  135. <div id="sourceDiv"></div>
  136. </div>
  137. <div class="TabPage" id="storeTabPage">
  138. <button id="storeButton" onclick="jscoverage_storeButton_click();">Store Report</button>
  139. <img id="storeImg" src="jscoverage-throbber.gif" alt="loading...">
  140. <div id="storeDiv"></div>
  141. </div>
  142. <div class="TabPage">
  143. <p>
  144. This is version 0.5.1 of JSCoverage, a program that calculates code
  145. coverage statistics for JavaScript.
  146. </p>
  147. <p>
  148. See <a target="_blank" href="http://siliconforks.com/jscoverage/">http://siliconforks.com/jscoverage/</a> for more information.
  149. </p>
  150. <p>
  151. Copyright &copy; 2007, 2008, 2009, 2010 siliconforks.com
  152. </p>
  153. </div>
  154. </div>
  155. </div>
  156. </body>
  157. </html>