You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

333 lines
12 KiB

  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <title>Code coverage report for All files</title>
  5. <meta charset="utf-8">
  6. <link rel="stylesheet" href="prettify.css">
  7. <style>
  8. body, html {
  9. margin:0; padding: 0;
  10. }
  11. body {
  12. font-family: Helvetica Neue, Helvetica,Arial;
  13. font-size: 10pt;
  14. }
  15. div.header, div.footer {
  16. background: #eee;
  17. padding: 1em;
  18. }
  19. div.header {
  20. z-index: 100;
  21. position: fixed;
  22. top: 0;
  23. border-bottom: 1px solid #666;
  24. width: 100%;
  25. }
  26. div.footer {
  27. border-top: 1px solid #666;
  28. }
  29. div.body {
  30. margin-top: 10em;
  31. }
  32. div.meta {
  33. font-size: 90%;
  34. text-align: center;
  35. }
  36. h1, h2, h3 {
  37. font-weight: normal;
  38. }
  39. h1 {
  40. font-size: 12pt;
  41. }
  42. h2 {
  43. font-size: 10pt;
  44. }
  45. pre {
  46. font-family: Consolas, Menlo, Monaco, monospace;
  47. margin: 0;
  48. padding: 0;
  49. line-height: 14px;
  50. font-size: 14px;
  51. -moz-tab-size: 2;
  52. -o-tab-size: 2;
  53. tab-size: 2;
  54. }
  55. div.path { font-size: 110%; }
  56. div.path a:link, div.path a:visited { color: #000; }
  57. table.coverage { border-collapse: collapse; margin:0; padding: 0 }
  58. table.coverage td {
  59. margin: 0;
  60. padding: 0;
  61. color: #111;
  62. vertical-align: top;
  63. }
  64. table.coverage td.line-count {
  65. width: 50px;
  66. text-align: right;
  67. padding-right: 5px;
  68. }
  69. table.coverage td.line-coverage {
  70. color: #777 !important;
  71. text-align: right;
  72. border-left: 1px solid #666;
  73. border-right: 1px solid #666;
  74. }
  75. table.coverage td.text {
  76. }
  77. table.coverage td span.cline-any {
  78. display: inline-block;
  79. padding: 0 5px;
  80. width: 40px;
  81. }
  82. table.coverage td span.cline-neutral {
  83. background: #eee;
  84. }
  85. table.coverage td span.cline-yes {
  86. background: #b5d592;
  87. color: #999;
  88. }
  89. table.coverage td span.cline-no {
  90. background: #fc8c84;
  91. }
  92. .cstat-yes { color: #111; }
  93. .cstat-no { background: #fc8c84; color: #111; }
  94. .fstat-no { background: #ffc520; color: #111 !important; }
  95. .cbranch-no { background: yellow !important; color: #111; }
  96. .missing-if-branch {
  97. display: inline-block;
  98. margin-right: 10px;
  99. position: relative;
  100. padding: 0 4px;
  101. background: black;
  102. color: yellow;
  103. xtext-decoration: line-through;
  104. }
  105. .missing-if-branch .typ {
  106. color: inherit !important;
  107. }
  108. .entity, .metric { font-weight: bold; }
  109. .metric { display: inline-block; border: 1px solid #333; padding: 0.3em; background: white; }
  110. .metric small { font-size: 80%; font-weight: normal; color: #666; }
  111. div.coverage-summary table { border-collapse: collapse; margin: 3em; font-size: 110%; }
  112. div.coverage-summary td, div.coverage-summary table th { margin: 0; padding: 0.25em 1em; border-top: 1px solid #666; border-bottom: 1px solid #666; }
  113. div.coverage-summary th { text-align: left; border: 1px solid #666; background: #eee; font-weight: normal; }
  114. div.coverage-summary th.file { border-right: none !important; }
  115. div.coverage-summary th.pic { border-left: none !important; text-align: right; }
  116. div.coverage-summary th.pct { border-right: none !important; }
  117. div.coverage-summary th.abs { border-left: none !important; text-align: right; }
  118. div.coverage-summary td.pct { text-align: right; border-left: 1px solid #666; }
  119. div.coverage-summary td.abs { text-align: right; font-size: 90%; color: #444; border-right: 1px solid #666; }
  120. div.coverage-summary td.file { text-align: right; border-left: 1px solid #666; white-space: nowrap; }
  121. div.coverage-summary td.pic { min-width: 120px !important; }
  122. div.coverage-summary a:link { text-decoration: none; color: #000; }
  123. div.coverage-summary a:visited { text-decoration: none; color: #333; }
  124. div.coverage-summary a:hover { text-decoration: underline; }
  125. div.coverage-summary tfoot td { border-top: 1px solid #666; }
  126. div.coverage-summary .yui3-datatable-sort-indicator, div.coverage-summary .dummy-sort-indicator {
  127. height: 10px;
  128. width: 7px;
  129. display: inline-block;
  130. margin-left: 0.5em;
  131. }
  132. div.coverage-summary .yui3-datatable-sort-indicator {
  133. background: url("http://yui.yahooapis.com/3.6.0/build/datatable-sort/assets/skins/sam/sort-arrow-sprite.png") no-repeat scroll 0 0 transparent;
  134. }
  135. div.coverage-summary .yui3-datatable-sorted .yui3-datatable-sort-indicator {
  136. background-position: 0 -20px;
  137. }
  138. div.coverage-summary .yui3-datatable-sorted-desc .yui3-datatable-sort-indicator {
  139. background-position: 0 -10px;
  140. }
  141. .high { background: #b5d592 !important; }
  142. .medium { background: #ffe87c !important; }
  143. .low { background: #fc8c84 !important; }
  144. span.cover-fill, span.cover-empty {
  145. display:inline-block;
  146. border:1px solid #444;
  147. background: white;
  148. height: 12px;
  149. }
  150. span.cover-fill {
  151. background: #ccc;
  152. border-right: 1px solid #444;
  153. }
  154. span.cover-empty {
  155. background: white;
  156. border-left: none;
  157. }
  158. span.cover-full {
  159. border-right: none !important;
  160. }
  161. pre.prettyprint {
  162. border: none !important;
  163. padding: 0 !important;
  164. margin: 0 !important;
  165. }
  166. .com { color: #999 !important; }
  167. </style>
  168. </head>
  169. <body>
  170. <div class="header high">
  171. <h1>Code coverage report for <span class="entity">All files</span></h1>
  172. <h2>
  173. Statements: <span class="metric">92.31% <small>(120 / 130)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
  174. Branches: <span class="metric">78.79% <small>(52 / 66)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
  175. Functions: <span class="metric">90% <small>(9 / 10)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
  176. Lines: <span class="metric">92.31% <small>(120 / 130)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
  177. </h2>
  178. <div class="path"></div>
  179. </div>
  180. <div class="body">
  181. <div class="coverage-summary">
  182. <table>
  183. <thead>
  184. <tr>
  185. <th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
  186. <th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
  187. <th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
  188. <th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
  189. <th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
  190. <th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
  191. <th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
  192. <th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
  193. <th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
  194. <th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
  195. </tr>
  196. </thead>
  197. <tbody><tr>
  198. <td class="file high" data-value="utf8.js/"><a href="utf8.js/index.html">utf8.js/</a></td>
  199. <td data-value="92.31" class="pic high"><span class="cover-fill" style="width: 92px;"></span><span class="cover-empty" style="width:8px;"></span></td>
  200. <td data-value="92.31" class="pct high">92.31%</td>
  201. <td data-value="130" class="abs high">(120&nbsp;/&nbsp;130)</td>
  202. <td data-value="78.79" class="pct medium">78.79%</td>
  203. <td data-value="66" class="abs medium">(52&nbsp;/&nbsp;66)</td>
  204. <td data-value="90" class="pct high">90%</td>
  205. <td data-value="10" class="abs high">(9&nbsp;/&nbsp;10)</td>
  206. <td data-value="92.31" class="pct high">92.31%</td>
  207. <td data-value="130" class="abs high">(120&nbsp;/&nbsp;130)</td>
  208. </tr>
  209. </tbody>
  210. </table>
  211. </div>
  212. </div>
  213. <div class="footer">
  214. <div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Thu Jun 20 2013 14:00:05 GMT+0200 (CEST)</div>
  215. </div>
  216. <script src="prettify.js"></script>
  217. <script src="http://yui.yahooapis.com/3.6.0/build/yui/yui-min.js"></script>
  218. <script>
  219. YUI().use('datatable', function (Y) {
  220. var formatters = {
  221. pct: function (o) {
  222. o.className += o.record.get('classes')[o.column.key];
  223. try {
  224. return o.value.toFixed(2) + '%';
  225. } catch (ex) { return o.value + '%'; }
  226. },
  227. html: function (o) {
  228. o.className += o.record.get('classes')[o.column.key];
  229. return o.record.get(o.column.key + '_html');
  230. }
  231. },
  232. defaultFormatter = function (o) {
  233. o.className += o.record.get('classes')[o.column.key];
  234. return o.value;
  235. };
  236. function getColumns(theadNode) {
  237. var colNodes = theadNode.all('tr th'),
  238. cols = [],
  239. col;
  240. colNodes.each(function (colNode) {
  241. col = {
  242. key: colNode.getAttribute('data-col'),
  243. label: colNode.get('innerHTML') || ' ',
  244. sortable: !colNode.getAttribute('data-nosort'),
  245. className: colNode.getAttribute('class'),
  246. type: colNode.getAttribute('data-type'),
  247. allowHTML: colNode.getAttribute('data-html') === 'true' || colNode.getAttribute('data-fmt') === 'html'
  248. };
  249. col.formatter = formatters[colNode.getAttribute('data-fmt')] || defaultFormatter;
  250. cols.push(col);
  251. });
  252. return cols;
  253. }
  254. function getRowData(trNode, cols) {
  255. var tdNodes = trNode.all('td'),
  256. i,
  257. row = { classes: {} },
  258. node,
  259. name;
  260. for (i = 0; i < cols.length; i += 1) {
  261. name = cols[i].key;
  262. node = tdNodes.item(i);
  263. row[name] = node.getAttribute('data-value') || node.get('innerHTML');
  264. row[name + '_html'] = node.get('innerHTML');
  265. row.classes[name] = node.getAttribute('class');
  266. //Y.log('Name: ' + name + '; Value: ' + row[name]);
  267. if (cols[i].type === 'number') { row[name] = row[name] * 1; }
  268. }
  269. //Y.log(row);
  270. return row;
  271. }
  272. function getData(tbodyNode, cols) {
  273. var data = [];
  274. tbodyNode.all('tr').each(function (trNode) {
  275. data.push(getRowData(trNode, cols));
  276. });
  277. return data;
  278. }
  279. function replaceTable(node) {
  280. if (!node) { return; }
  281. var cols = getColumns(node.one('thead')),
  282. data = getData(node.one('tbody'), cols),
  283. table,
  284. parent = node.get('parentNode');
  285. table = new Y.DataTable({
  286. columns: cols,
  287. data: data,
  288. sortBy: 'file'
  289. });
  290. parent.set('innerHTML', '');
  291. table.render(parent);
  292. }
  293. Y.on('domready', function () {
  294. replaceTable(Y.one('div.coverage-summary table'));
  295. if (typeof prettyPrint === 'function') {
  296. prettyPrint();
  297. }
  298. });
  299. });
  300. </script>
  301. </body>
  302. </html>