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

Unified Diff: LayoutTests/svg/dynamic-updates/resources/SVGTestCase.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, 2 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: LayoutTests/svg/dynamic-updates/resources/SVGTestCase.js
diff --git a/LayoutTests/svg/dynamic-updates/resources/SVGTestCase.js b/LayoutTests/svg/dynamic-updates/resources/SVGTestCase.js
index b7f6d723fa6fd9304ce85b9c5e06cd56163f2cb8..5601d420d4c4ce978fdda1db92642e23c2c93cc7 100644
--- a/LayoutTests/svg/dynamic-updates/resources/SVGTestCase.js
+++ b/LayoutTests/svg/dynamic-updates/resources/SVGTestCase.js
@@ -19,6 +19,7 @@ function shouldHaveBBox(element, width, height)
}
function createSVGTestCase() {
+ window.jsTestIsAsync = true;
if (window.testRunner)
testRunner.waitUntilDone();
@@ -31,6 +32,7 @@ function createSVGTestCase() {
}
function embedSVGTestCase(uri) {
+ window.jsTestIsAsync = true;
if (window.testRunner)
testRunner.waitUntilDone();
@@ -60,13 +62,5 @@ function clickAt(x, y) {
}
function completeTest() {
- var script = document.createElement("script");
-
- script.onload = function() {
- if (window.testRunner)
- testRunner.notifyDone();
- };
-
- script.src = "../../fast/js/resources/js-test-post.js";
- document.body.appendChild(script);
+ finishJSTest();
}

Powered by Google App Engine
This is Rietveld 408576698