| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <body> | 2 <body> |
| 3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../js/resources/js-test-pre.js"></script> |
| 4 <script> | 4 <script> |
| 5 description("This test ensures that document content width (height) as r
eported by scrollWidth (scrollHeight) is invariant to changes in page scale fact
or."); | 5 description("This test ensures that document content width (height) as r
eported by scrollWidth (scrollHeight) is invariant to changes in page scale fact
or."); |
| 6 | 6 |
| 7 if (window.internals) | 7 if (window.internals) |
| 8 window.internals.settings.setMockScrollbarsEnabled(true); | 8 window.internals.settings.setMockScrollbarsEnabled(true); |
| 9 | 9 |
| 10 var body = document.body; | 10 var body = document.body; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 window.eventSender.setPageScaleFactor(scale, 0, 0); | 27 window.eventSender.setPageScaleFactor(scale, 0, 0); |
| 28 | 28 |
| 29 // As we have increased the scale factor, the innerWidth will be less | 29 // As we have increased the scale factor, the innerWidth will be less |
| 30 // as fewer CSS pixels will be rendered in the same viewport, so | 30 // as fewer CSS pixels will be rendered in the same viewport, so |
| 31 // body.scrollWidth (scrollHeight) will still be measuring the document | 31 // body.scrollWidth (scrollHeight) will still be measuring the document |
| 32 // content width (height). | 32 // content width (height). |
| 33 | 33 |
| 34 shouldBe("body.scrollWidth", "originalScrollWidth"); | 34 shouldBe("body.scrollWidth", "originalScrollWidth"); |
| 35 shouldBe("body.scrollHeight", "originalScrollHeight"); | 35 shouldBe("body.scrollHeight", "originalScrollHeight"); |
| 36 </script> | 36 </script> |
| 37 <script src="../js/resources/js-test-post.js"></script> | |
| 38 </body> | 37 </body> |
| 39 </html> | 38 </html> |
| OLD | NEW |