OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 ::-webkit-scrollbar { | 5 ::-webkit-scrollbar { |
6 width: 0px; | 6 width: 0px; |
7 height: 0px; | 7 height: 0px; |
8 } | 8 } |
9 </style> | 9 </style> |
10 </head> | 10 </head> |
11 <body style="width: 4000px; height:10000px;background-image:url('resources/grid.
png')" onload="runTest();"> | 11 <body style="width: 4000px; height:10000px;background-image:url('resources/grid.
png')" onload="runTest();"> |
12 <script src="../../resources/run-after-layout-and-paint.js"></script> | 12 <script src="../../resources/run-after-layout-and-paint.js"></script> |
13 <script> | 13 <script> |
14 // Under-invalidation checking is too slow for this test. | 14 // Under-invalidation checking is too slow for this test. |
15 if (window.internals) | 15 if (window.internals) |
16 internals.runtimeFlags.slimmingPaintUnderInvalidationCheckingEnabled = false
; | 16 internals.runtimeFlags.paintUnderInvalidationCheckingEnabled = false; |
17 | 17 |
18 function runTest() { | 18 function runTest() { |
19 if (window.testRunner) | 19 if (window.testRunner) |
20 testRunner.waitUntilDone(); | 20 testRunner.waitUntilDone(); |
21 runAfterLayoutAndPaint(function() { | 21 runAfterLayoutAndPaint(function() { |
22 if (window.internals) { | 22 if (window.internals) { |
23 window.internals.setPageScaleFactorLimits(0.5, 0.5); | 23 window.internals.setPageScaleFactorLimits(0.5, 0.5); |
24 window.internals.setPageScaleFactor(0.5); | 24 window.internals.setPageScaleFactor(0.5); |
25 } | 25 } |
26 if (window.testRunner) | 26 if (window.testRunner) |
27 testRunner.notifyDone(); | 27 testRunner.notifyDone(); |
28 }); | 28 }); |
29 } | 29 } |
30 </script> | 30 </script> |
31 <div style="transform:translateZ(0);"></div> | 31 <div style="transform:translateZ(0);"></div> |
32 </body> | 32 </body> |
33 </html> | 33 </html> |
OLD | NEW |