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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: media/tools/layout_tests/graph/graph.html
diff --git a/media/tools/layout_tests/graph/graph.html b/media/tools/layout_tests/graph/graph.html
new file mode 100644
index 0000000000000000000000000000000000000000..e4ca9ba6219cb0e111993f2745034ef53d88d0cf
--- /dev/null
+++ b/media/tools/layout_tests/graph/graph.html
@@ -0,0 +1,57 @@
+<html>
+ <head>
+ <script type='text/javascript' src='https://www.google.com/jsapi'></script>
+ <script type='text/javascript'>
+ google.load('visualization', '1', {'packages': ['annotatedtimeline']});
+ google.setOnLoadCallback(drawChart);
+ function drawChart() {
+ var data = new google.visualization.DataTable();
+ data.addColumn('date', 'Date');
+ data.addColumn('number', '#Tests');
+ data.addColumn('string', 'title1');
+ data.addColumn('string', 'text1');
+ data.addColumn('number', '#Skipped tests');
+ data.addColumn('string', 'title2');
+ data.addColumn('string', 'text2');
+ data.addColumn('number', '#Non-skipped tests');
+ data.addColumn('string', 'title2');
+ data.addColumn('string', 'text2');
+ data.addRows([
+ [new Date(2011,08,26,14,48,00),220,undefined,undefined,51,undefined,undefined,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
+ [new Date(2011,08,26,15,01,59),220,undefined,undefined,51,undefined,undefined,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
+ // insert 1
+ ]);
+ var data2 = new google.visualization.DataTable();
+ data2.addColumn('date', 'Date');
+ data2.addColumn('number', 'Passing Rate ' +
+ '(100-(#Non-skipped tests)/' +
+ '((#Tests)-(#Skipped tests))*100)');
+ data2.addColumn('string', 'title1');
+ data2.addColumn('string', 'text1');
+ data2.addRows([
+ [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
+ [new Date(2011,08,26,15,01,59),94,undefined,undefined],
+ // insert 2
+ ]);
+ var div1 = document.getElementById('chart_div');
+ var chart = new google.visualization.AnnotatedTimeLine(div1);
+ chart.draw(data, {displayAnnotations: true, allowHtml: true});
+
+ var div2 = document.getElementById('chart_div2');
+ var chart2 = new google.visualization.AnnotatedTimeLine(div2);
+ chart2.draw(data2, {displayAnnotations: true,
+ allowHtml: true,
+ scaleType: 'maximized'});
+ }
+ </script>
+ <title>Media Layout Test Analyzer Result</title>
+ </head>
+
+ <body>
+ <h2>Current Statistics</h2>
+ <h3 id='numbers'>Numbers</h3>
+ <div id='chart_div' style='width: 1400px; height: 480px;'></div>
+ <h3>Test passing rate</h3>
+ <div id='chart_div2' style='width: 1400px; height: 480px;'></div>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698