Index: LayoutTests/svg/zoom/resources/testPageZoom.js |
diff --git a/LayoutTests/svg/zoom/resources/testPageZoom.js b/LayoutTests/svg/zoom/resources/testPageZoom.js |
index 1b49d14fa28512f012ddde73c186869543e1e1dc..c37c1a328ea09a57f0f764eb6e98753c254d08af 100644 |
--- a/LayoutTests/svg/zoom/resources/testPageZoom.js |
+++ b/LayoutTests/svg/zoom/resources/testPageZoom.js |
@@ -12,22 +12,10 @@ function repaintTest() { |
if (!window.postZoomCallback) |
return; |
+ window.jsTestIsAsync = true; |
if (window.testRunner) |
testRunner.waitUntilDone(); |
window.postZoomCallback(); |
- completeDynamicTest(); |
-} |
- |
-function completeDynamicTest() { |
- var script = document.createElement("script"); |
- |
- script.onload = function() { |
- if (window.testRunner) |
- testRunner.notifyDone(); |
- }; |
- |
- script.src = "../../../fast/js/resources/js-test-post.js"; |
- successfullyParsed = true; |
- document.body.appendChild(script); |
+ finishJSTest(); |
} |