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

Unified Diff: LayoutTests/fast/canvas/webgl/resources/webgl-test.js

Issue 54473004: Make js-test-post a noop. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add mac NeedsRebaselines Created 7 years, 1 month 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: LayoutTests/fast/canvas/webgl/resources/webgl-test.js
diff --git a/LayoutTests/fast/canvas/webgl/resources/webgl-test.js b/LayoutTests/fast/canvas/webgl/resources/webgl-test.js
index fd8d7be6477354c63e0f9762459290fa1a1492c6..28ced89014080cae3ad30d71c4c701ecf54c2320 100644
--- a/LayoutTests/fast/canvas/webgl/resources/webgl-test.js
+++ b/LayoutTests/fast/canvas/webgl/resources/webgl-test.js
@@ -16,6 +16,7 @@ function initNonKhronosFramework(waitUntilDone) {
testRunner.overridePreference("WebKitWebGLEnabled", "1");
testRunner.dumpAsText();
if (waitUntilDone) {
+ window.jsTestIsAsync = true;
testRunner.waitUntilDone();
}
}
@@ -28,14 +29,7 @@ function nonKhronosFrameworkNotifyDone() {
}
function finishTest() {
- var epilogue = document.createElement("script")
- epilogue.onload = function() {
- if (window.nonKhronosFrameworkNotifyDone) {
- window.nonKhronosFrameworkNotifyDone();
- }
- };
- epilogue.src = "../../js/resources/js-test-post.js";
- document.body.appendChild(epilogue);
+ finishJSTest();
}
//

Powered by Google App Engine
This is Rietveld 408576698