OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <html> |
| 3 <script src="../../resources/testharness.js"></script> |
| 4 <script src="../../resources/testharnessreport.js"></script> |
| 5 <link rel="stylesheet" href="../../resources/testharness.css"> |
| 6 <head> |
| 7 <style> |
| 8 * { |
| 9 margin: 0; |
| 10 padding: 0; |
| 11 } |
| 12 |
| 13 #makespace { |
| 14 height: 5000px; |
| 15 } |
| 16 </style> |
| 17 </head> |
| 18 <body> |
| 19 <div id="makespace"></div> |
| 20 <div id="measure"></div> |
| 21 <script> |
| 22 if (window.testRunner) |
| 23 testRunner.dumpAsText(); |
| 24 |
| 25 if (window.internals) |
| 26 window.internals.setUsesOverlayScrollbars(true); |
| 27 |
| 28 var test = async_test("Test that partial layout works with overlay scrollbar
s."); |
| 29 setTimeout(function() { |
| 30 test.step(function() { |
| 31 var measure = document.getElementById('measure'); |
| 32 var measureWidth = measure.offsetWidth; // Partial layout occurs her
e! |
| 33 |
| 34 assert_equals(measureWidth, document.body.offsetWidth); |
| 35 assert_equals(measureWidth, window.innerWidth); |
| 36 }); |
| 37 |
| 38 test.done(); |
| 39 }, 0); |
| 40 </script> |
| 41 </body> |
| 42 </html> |
OLD | NEW |