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.

320 lines
11 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">100% <small>(0 / 0)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
  174. Branches: <span class="metric">100% <small>(0 / 0)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
  175. Functions: <span class="metric">100% <small>(0 / 0)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
  176. Lines: <span class="metric">100% <small>(0 / 0)</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></tbody>
  198. </table>
  199. </div>
  200. </div>
  201. <div class="footer">
  202. <div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Mon Oct 14 2013 01:28:11 GMT-0400 (EDT)</div>
  203. </div>
  204. <script src="prettify.js"></script>
  205. <script src="http://yui.yahooapis.com/3.6.0/build/yui/yui-min.js"></script>
  206. <script>
  207. YUI().use('datatable', function (Y) {
  208. var formatters = {
  209. pct: function (o) {
  210. o.className += o.record.get('classes')[o.column.key];
  211. try {
  212. return o.value.toFixed(2) + '%';
  213. } catch (ex) { return o.value + '%'; }
  214. },
  215. html: function (o) {
  216. o.className += o.record.get('classes')[o.column.key];
  217. return o.record.get(o.column.key + '_html');
  218. }
  219. },
  220. defaultFormatter = function (o) {
  221. o.className += o.record.get('classes')[o.column.key];
  222. return o.value;
  223. };
  224. function getColumns(theadNode) {
  225. var colNodes = theadNode.all('tr th'),
  226. cols = [],
  227. col;
  228. colNodes.each(function (colNode) {
  229. col = {
  230. key: colNode.getAttribute('data-col'),
  231. label: colNode.get('innerHTML') || ' ',
  232. sortable: !colNode.getAttribute('data-nosort'),
  233. className: colNode.getAttribute('class'),
  234. type: colNode.getAttribute('data-type'),
  235. allowHTML: colNode.getAttribute('data-html') === 'true' || colNode.getAttribute('data-fmt') === 'html'
  236. };
  237. col.formatter = formatters[colNode.getAttribute('data-fmt')] || defaultFormatter;
  238. cols.push(col);
  239. });
  240. return cols;
  241. }
  242. function getRowData(trNode, cols) {
  243. var tdNodes = trNode.all('td'),
  244. i,
  245. row = { classes: {} },
  246. node,
  247. name;
  248. for (i = 0; i < cols.length; i += 1) {
  249. name = cols[i].key;
  250. node = tdNodes.item(i);
  251. row[name] = node.getAttribute('data-value') || node.get('innerHTML');
  252. row[name + '_html'] = node.get('innerHTML');
  253. row.classes[name] = node.getAttribute('class');
  254. //Y.log('Name: ' + name + '; Value: ' + row[name]);
  255. if (cols[i].type === 'number') { row[name] = row[name] * 1; }
  256. }
  257. //Y.log(row);
  258. return row;
  259. }
  260. function getData(tbodyNode, cols) {
  261. var data = [];
  262. tbodyNode.all('tr').each(function (trNode) {
  263. data.push(getRowData(trNode, cols));
  264. });
  265. return data;
  266. }
  267. function replaceTable(node) {
  268. if (!node) { return; }
  269. var cols = getColumns(node.one('thead')),
  270. data = getData(node.one('tbody'), cols),
  271. table,
  272. parent = node.get('parentNode');
  273. table = new Y.DataTable({
  274. columns: cols,
  275. data: data,
  276. sortBy: 'file'
  277. });
  278. parent.set('innerHTML', '');
  279. table.render(parent);
  280. }
  281. Y.on('domready', function () {
  282. replaceTable(Y.one('div.coverage-summary table'));
  283. if (typeof prettyPrint === 'function') {
  284. prettyPrint();
  285. }
  286. });
  287. });
  288. </script>
  289. </body>
  290. </html>