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

Side by Side Diff: third_party/WebKit/PerformanceTests/resources/runner.js

Issue 1644353002: Enable blink_perf.canvas on Android Perf bots (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add --reduce-security-for-testing Created 4 years, 9 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
OLDNEW
1 // There are tests for computeStatistics() located in LayoutTests/fast/harness/p erftests 1 // There are tests for computeStatistics() located in LayoutTests/fast/harness/p erftests
2 2
3 if (window.testRunner) { 3 if (window.testRunner) {
4 testRunner.waitUntilDone(); 4 testRunner.waitUntilDone();
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 } 6 }
7 7
8 (function () { 8 (function () {
9 var logLines = null; 9 var logLines = null;
10 var completedIterations = -1; 10 var completedIterations = -1;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 126 }
127 127
128 PerfTestRunner.log = function (text) { 128 PerfTestRunner.log = function (text) {
129 if (logLines) 129 if (logLines)
130 logLines.push(text); 130 logLines.push(text);
131 else 131 else
132 logInDocument(text); 132 logInDocument(text);
133 } 133 }
134 134
135 PerfTestRunner.logFatalError = function (text) { 135 PerfTestRunner.logFatalError = function (text) {
136 PerfTestRunner.log(text); 136 PerfTestRunner.log("FATAL: " + text);
137 finish(); 137 finish();
138 } 138 }
139 139
140 PerfTestRunner.forceLayout = function(doc) { 140 PerfTestRunner.forceLayout = function(doc) {
141 doc = doc || document; 141 doc = doc || document;
142 if (doc.body) 142 if (doc.body)
143 doc.body.offsetHeight; 143 doc.body.offsetHeight;
144 else if (doc.documentElement) 144 else if (doc.documentElement)
145 doc.documentElement.offsetHeight; 145 doc.documentElement.offsetHeight;
146 }; 146 };
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 326
327 iframe.contentDocument.close(); 327 iframe.contentDocument.close();
328 document.body.removeChild(iframe); 328 document.body.removeChild(iframe);
329 }; 329 };
330 330
331 PerfTestRunner.measureTime(test); 331 PerfTestRunner.measureTime(test);
332 } 332 }
333 333
334 window.PerfTestRunner = PerfTestRunner; 334 window.PerfTestRunner = PerfTestRunner;
335 })(); 335 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698