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

Unified Diff: PerformanceTests/resources/runner.js

Issue 198873004: perf test: Add PerfTestRunner.logFatalError(text) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « PerformanceTests/Canvas/upload-webgl-to-texture.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PerformanceTests/resources/runner.js
diff --git a/PerformanceTests/resources/runner.js b/PerformanceTests/resources/runner.js
index 3a6c7c0c7ab50253fe504d68117f6d063417f32d..016881a4bf534f54618eb353f27af475d46015f9 100644
--- a/PerformanceTests/resources/runner.js
+++ b/PerformanceTests/resources/runner.js
@@ -142,14 +142,14 @@ if (window.testRunner) {
logInDocument(text);
}
- function logFatalError(text) {
+ PerfTestRunner.logFatalError = function (text) {
PerfTestRunner.log(text);
finish();
}
function start(test, runner) {
if (!test) {
- logFatalError("Got a bad test object.");
+ PerfTestRunner.logFatalError("Got a bad test object.");
return;
}
currentTest = test;
@@ -173,7 +173,7 @@ if (window.testRunner) {
var measuredValue = runner();
} catch (exception) {
- logFatalError("Got an exception while running test.run with name=" + exception.name + ", message=" + exception.message);
+ PerfTestRunner.logFatalError("Got an exception while running test.run with name=" + exception.name + ", message=" + exception.message);
return;
}
@@ -182,7 +182,7 @@ if (window.testRunner) {
try {
ignoreWarmUpAndLog(measuredValue);
} catch (exception) {
- logFatalError("Got an exception while logging the result with name=" + exception.name + ", message=" + exception.message);
+ PerfTestRunner.logFatalError("Got an exception while logging the result with name=" + exception.name + ", message=" + exception.message);
return;
}
@@ -239,7 +239,7 @@ if (window.testRunner) {
try {
ignoreWarmUpAndLog(measuredValue);
} catch (exception) {
- logFatalError("Got an exception while logging the result with name=" + exception.name + ", message=" + exception.message);
+ PerfTestRunner.logFatalError("Got an exception while logging the result with name=" + exception.name + ", message=" + exception.message);
return;
}
« no previous file with comments | « PerformanceTests/Canvas/upload-webgl-to-texture.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698