PageRenderTime 50ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/app/public/js/vendor/backbone.marionette/reports/coverage/src/build/index.html

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