| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <title>Chrome Code Coverage</title> | |
| 4 <script src="ui/js/common.js"></script> | |
| 5 <script language="javascript"> | |
| 6 var params = ParseParams(); | |
| 7 | |
| 8 // Lookout dashboard displays on black background, with no navigation | |
| 9 var is_lookout = "lookout" in params; | |
| 10 | |
| 11 function DisplayGraph(name, graph, gheader) { | |
| 12 document.write('<td><iframe scrolling="no" height="250" width="400"' + | |
| 13 'src="http://build.chromium.org/f/chromium/perf/'); | |
| 14 document.write(name); | |
| 15 document.write('/report.html?history=50'); | |
| 16 if (gheader != null) { | |
| 17 document.write('&header='); | |
| 18 document.write(gheader); | |
| 19 } | |
| 20 if (graph != null) { | |
| 21 document.write('&graph='); | |
| 22 document.write(graph); | |
| 23 } | |
| 24 document.write('&lookout=1"></iframe></td>'); | |
| 25 } | |
| 26 | |
| 27 function ComingSoon(caption) { | |
| 28 document.write('<td height="250" width="400" '); | |
| 29 if (is_lookout) { | |
| 30 document.write('bgcolor="#222222"'); | |
| 31 } else { | |
| 32 document.write('bgcolor="#CCCCCC"'); | |
| 33 } | |
| 34 document.write('align="center">' + caption + '</td>'); | |
| 35 } | |
| 36 | |
| 37 </script> | |
| 38 </head> | |
| 39 | |
| 40 <script> | |
| 41 if (is_lookout) { | |
| 42 document.write('<body bgcolor="black" text="white">'); | |
| 43 } else { | |
| 44 document.write('<body>'); | |
| 45 } | |
| 46 </script> | |
| 47 | |
| 48 <center> | |
| 49 <h1>Chrome Code Coverage</h1> | |
| 50 | |
| 51 <script> | |
| 52 if (!is_lookout) { | |
| 53 document.write('[ <a href="#Code">Source Code Coverage</a> '); | |
| 54 document.write('| <a href="#Tests">Test Code Coverage</a> ]'); | |
| 55 } | |
| 56 </script> | |
| 57 | |
| 58 | |
| 59 <h2 id="Code">Source Code Coverage</h2> | |
| 60 (Percent of lines of source code executed by tests) | |
| 61 <table> | |
| 62 <tr> | |
| 63 <script>DisplayGraph('xp-debug/coverage', 'PercentCoveredSource', | |
| 64 'Windows');</script> | |
| 65 <script>DisplayGraph('mac-debug/coverage', 'PercentCoveredSource', | |
| 66 'Mac');</script> | |
| 67 <script>DisplayGraph('linux-debug/coverage', 'PercentCoveredSource', | |
| 68 'Linux');</script> | |
| 69 </tr> | |
| 70 </table> | |
| 71 | |
| 72 <h2 id="Tests">Test Code Coverage</h2> | |
| 73 (Percent of lines of test code executed by tests) | |
| 74 <table> | |
| 75 <tr> | |
| 76 <script>DisplayGraph('xp-debug/coverage', 'PercentCoveredTest', | |
| 77 'Windows');</script> | |
| 78 <script>DisplayGraph('mac-debug/coverage', 'PercentCoveredTest', | |
| 79 'Mac');</script> | |
| 80 <script>DisplayGraph('linux-debug/coverage', 'PercentCoveredTest', | |
| 81 'Linux');</script> | |
| 82 </tr> | |
| 83 </table> | |
| 84 </center> | |
| 85 </body> | |
| 86 </html> | |
| OLD | NEW |