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

Side by Side Diff: LayoutTests/svg/zoom/resources/testPageZoom.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698