OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <script> | 3 <script> |
4 var count = 0; | 4 var count = 0; |
5 | 5 |
6 if (window.testRunner) { | 6 if (window.testRunner) { |
7 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
8 testRunner.setCanOpenWindows(); | 8 testRunner.setCanOpenWindows(); |
9 testRunner.waitUntilDone(); | 9 testRunner.waitUntilDone(); |
10 } | 10 } |
(...skipping 19 matching lines...) Expand all Loading... |
30 setTimeout(function() { | 30 setTimeout(function() { |
31 newwindow.resizeTo(400, 400); | 31 newwindow.resizeTo(400, 400); |
32 }, 0); | 32 }, 0); |
33 return; | 33 return; |
34 } | 34 } |
35 | 35 |
36 if (window.eventSender) { | 36 if (window.eventSender) { |
37 eventSender.zoomPageIn(); | 37 eventSender.zoomPageIn(); |
38 log("Size at zoom level" + (count) + " : " + image.clientWidth
+ "x" + image.clientHeight); | 38 log("Size at zoom level" + (count) + " : " + image.clientWidth
+ "x" + image.clientHeight); |
39 ++count; | 39 ++count; |
40 if (count == 10) | 40 if (count == 10) { |
| 41 newwindow.onresize = undefined; |
41 testRunner.notifyDone(); | 42 testRunner.notifyDone(); |
| 43 } |
42 } | 44 } |
43 }; | 45 }; |
44 | 46 |
45 newwindow.resizeTo(400, 400); | 47 newwindow.resizeTo(400, 400); |
46 }; | 48 }; |
47 } | 49 } |
48 </script> | 50 </script> |
49 <body onload="zoomPage()"> | 51 <body onload="zoomPage()"> |
50 <p>This tests that page zoom and image auto-sizing interact well together. This
test requires testRunner to run. To test manually, open <a href="resources/dic
e.png">this image</a> in a browser window, resize the window to 600px tall and z
oom in 10 times. The image should get bigger at each step proportionately.</p> | 52 <p>This tests that page zoom and image auto-sizing interact well together. This
test requires testRunner to run. To test manually, open <a href="resources/dic
e.png">this image</a> in a browser window, resize the window to 600px tall and z
oom in 10 times. The image should get bigger at each step proportionately.</p> |
51 <pre id="console"></pre> | 53 <pre id="console"></pre> |
52 </body> | 54 </body> |
53 </html> | 55 </html> |
OLD | NEW |