| 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 21 matching lines...) Expand all Loading... |
| 32 newwindow.resizeTo(200, 200); | 32 newwindow.resizeTo(200, 200); |
| 33 }, 0); | 33 }, 0); |
| 34 return; | 34 return; |
| 35 } | 35 } |
| 36 | 36 |
| 37 if (window.eventSender) { | 37 if (window.eventSender) { |
| 38 eventSender.zoomPageOut(); | 38 eventSender.zoomPageOut(); |
| 39 var w = Math.round(image.clientWidth); | 39 var w = Math.round(image.clientWidth); |
| 40 var h = Math.round(image.clientHeight); | 40 var h = Math.round(image.clientHeight); |
| 41 log("Size at zoom level" + (count) + " : " + w + " x " + h); | 41 log("Size at zoom level" + (count) + " : " + w + " x " + h); |
| 42 if (++count == 6) | 42 if (++count == 6) { |
| 43 newwindow.onresize = undefined; |
| 43 testRunner.notifyDone(); | 44 testRunner.notifyDone(); |
| 45 } |
| 44 } | 46 } |
| 45 }; | 47 }; |
| 46 | 48 |
| 47 newwindow.resizeTo(200, 200); | 49 newwindow.resizeTo(200, 200); |
| 48 }; | 50 }; |
| 49 } | 51 } |
| 50 </script> | 52 </script> |
| 51 <body onload="zoomPage()"> | 53 <body onload="zoomPage()"> |
| 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 200px tall and z
oom out 6 times. The image should get smaller at each step.</p> | 54 <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 200px tall and z
oom out 6 times. The image should get smaller at each step.</p> |
| 53 <pre id="console"></pre> | 55 <pre id="console"></pre> |
| 54 </body> | 56 </body> |
| 55 </html> | 57 </html> |
| OLD | NEW |