OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <html> |
| 3 <script src="../js/resources/js-test-pre.js"></script> |
| 4 <head> |
| 5 <style> |
| 6 * { |
| 7 margin: 0; |
| 8 padding: 0; |
| 9 } |
| 10 |
| 11 #makespace { |
| 12 height: 5000px; |
| 13 } |
| 14 </style> |
| 15 <script> |
| 16 description('Test that partial layout works with overlay scrollbars.'); |
| 17 if (window.testRunner) |
| 18 testRunner.dumpAsText(); |
| 19 if (window.internals) |
| 20 window.internals.setUsesOverlayScrollbars(true); |
| 21 |
| 22 function checkSize() { |
| 23 var measure = document.getElementById('measure'); |
| 24 var measureWidth = measure.offsetWidth; // Partial layout occurs here! |
| 25 shouldBe(measureWidth, "document.body.offsetWidth"); |
| 26 shouldBe(measureWidth, "window.innerWidth"); |
| 27 finishJSTest(); |
| 28 } |
| 29 </script> |
| 30 </head> |
| 31 <body onload="checkSize()"> |
| 32 <div id="makespace"></div> |
| 33 <div id="measure"></div> |
| 34 <script src="../js/resources/js-test-post.js"></script> |
| 35 </body> |
| 36 </html> |
OLD | NEW |