Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: media/tools/layout_tests/graph/graph.html

Issue 7693018: Intial checkin of layout test analyzer. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Modification based on CR comments. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script type='text/javascript' src='https://www.google.com/jsapi'></script>
4 <script type='text/javascript'>
5 google.load('visualization', '1', {'packages': ['annotatedtimeline']});
6 google.setOnLoadCallback(drawChart);
7 function drawChart() {
8 var data = new google.visualization.DataTable();
9 data.addColumn('date', 'Date');
10 data.addColumn('number', '#Tests');
11 data.addColumn('string', 'title1');
12 data.addColumn('string', 'text1');
13 data.addColumn('number', '#Skipped tests');
14 data.addColumn('string', 'title2');
15 data.addColumn('string', 'text2');
16 data.addColumn('number', '#Non-skipped tests');
17 data.addColumn('string', 'title2');
18 data.addColumn('string', 'text2');
19 data.addRows([
20 [new Date(2011,08,26,14,48,00),220,undefined,undefined,51,undefined,und efined,11,undefined,undefined,],
dennis_jeffrey 2011/08/27 00:04:50 nit: split this onto 2 lines so no line exceeds 80
dennis_jeffrey 2011/08/27 00:04:50 Did you intend to add this hard-coded data here?
imasaki1 2011/08/29 21:32:49 This one was added by mistake. I will remmove thos
imasaki1 2011/08/29 21:32:49 This one was added by mistake. I will remmove thos
21 [new Date(2011,08,26,15,01,59),220,undefined,undefined,51,undefined,und efined,11,undefined,undefined,],
dennis_jeffrey 2011/08/27 00:04:50 nit: split this onto 2 lines so no line exceeds 80
imasaki1 2011/08/29 21:32:49 This one was added by mistake. I will remmove thos
22 // insert 1
23 ]);
24 var data2 = new google.visualization.DataTable();
25 data2.addColumn('date', 'Date');
26 data2.addColumn('number', 'Passing Rate ' +
27 '(100-(#Non-skipped tests)/' +
28 '((#Tests)-(#Skipped tests))*100)');
29 data2.addColumn('string', 'title1');
30 data2.addColumn('string', 'text1');
31 data2.addRows([
32 [new Date(2011,08,26,14,48,00),94,undefined,undefined],
dennis_jeffrey 2011/08/27 00:04:50 Did you intend to add this hard-coded data here?
imasaki1 2011/08/29 21:32:49 This one was added by mistake. I will remmove thos
33 [new Date(2011,08,26,15,01,59),94,undefined,undefined],
34 // insert 2
35 ]);
36 var div1 = document.getElementById('chart_div');
37 var chart = new google.visualization.AnnotatedTimeLine(div1);
38 chart.draw(data, {displayAnnotations: true, allowHtml: true});
39
40 var div2 = document.getElementById('chart_div2');
41 var chart2 = new google.visualization.AnnotatedTimeLine(div2);
42 chart2.draw(data2, {displayAnnotations: true,
43 allowHtml: true,
44 scaleType: 'maximized'});
45 }
46 </script>
47 <title>Media Layout Test Analyzer Result</title>
48 </head>
49
50 <body>
51 <h2>Current Statistics</h2>
52 <h3 id='numbers'>Numbers</h3>
53 <div id='chart_div' style='width: 1400px; height: 480px;'></div>
54 <h3>Test passing rate</h3>
55 <div id='chart_div2' style='width: 1400px; height: 480px;'></div>
56 </body>
57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698