| OLD | NEW |
| 1 function repaintTest() { | 1 function repaintTest() { |
| 2 if (!window.eventSender) | 2 if (!window.eventSender) |
| 3 return; | 3 return; |
| 4 | 4 |
| 5 for (i = 0; i < zoomCount; ++i) { | 5 for (i = 0; i < zoomCount; ++i) { |
| 6 if (window.shouldZoomOut) | 6 if (window.shouldZoomOut) |
| 7 eventSender.zoomPageOut(); | 7 eventSender.zoomPageOut(); |
| 8 else | 8 else |
| 9 eventSender.zoomPageIn(); | 9 eventSender.zoomPageIn(); |
| 10 } | 10 } |
| 11 | 11 |
| 12 if (!window.postZoomCallback) | 12 if (!window.postZoomCallback) |
| 13 return; | 13 return; |
| 14 | 14 |
| 15 window.jsTestIsAsync = true; |
| 15 if (window.testRunner) | 16 if (window.testRunner) |
| 16 testRunner.waitUntilDone(); | 17 testRunner.waitUntilDone(); |
| 17 | 18 |
| 18 window.postZoomCallback(); | 19 window.postZoomCallback(); |
| 19 completeDynamicTest(); | 20 finishJSTest(); |
| 20 } | 21 } |
| 21 | |
| 22 function completeDynamicTest() { | |
| 23 var script = document.createElement("script"); | |
| 24 | |
| 25 script.onload = function() { | |
| 26 if (window.testRunner) | |
| 27 testRunner.notifyDone(); | |
| 28 }; | |
| 29 | |
| 30 script.src = "../../../fast/js/resources/js-test-post.js"; | |
| 31 successfullyParsed = true; | |
| 32 document.body.appendChild(script); | |
| 33 } | |
| OLD | NEW |