| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 body { position: relative; height: 2000px; } | 5 body { position: relative; height: 2000px; } |
| 6 </style> | 6 </style> |
| 7 <script src="../js/resources/js-test-pre.js"></script> | 7 <script src="../../resources/js-test.js"></script> |
| 8 <script> | 8 <script> |
| 9 description('This tests that window.scrollBy respects the page\'s zoom a
nd scale factor when scrolling.'); | 9 description('This tests that window.scrollBy respects the page\'s zoom a
nd scale factor when scrolling.'); |
| 10 | 10 |
| 11 function zoomBy(zoomFactor) | 11 function zoomBy(zoomFactor) |
| 12 { | 12 { |
| 13 while (zoomFactor > 0) { | 13 while (zoomFactor > 0) { |
| 14 window.eventSender.zoomPageIn(); | 14 window.eventSender.zoomPageIn(); |
| 15 zoomFactor--; | 15 zoomFactor--; |
| 16 } | 16 } |
| 17 while (zoomFactor < 0) { | 17 while (zoomFactor < 0) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 46 finishJSTest(); | 46 finishJSTest(); |
| 47 } | 47 } |
| 48 </script> | 48 </script> |
| 49 </head> | 49 </head> |
| 50 | 50 |
| 51 <body onload="runTests()"> | 51 <body onload="runTests()"> |
| 52 <div id="target"></div> | 52 <div id="target"></div> |
| 53 </body> | 53 </body> |
| 54 </html> | 54 </html> |
| 55 | 55 |
| OLD | NEW |