| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 2 <script src="resources/text-based-repaint.js"></script> | 3 <script src="resources/text-based-repaint.js"></script> |
| 3 <script> | 4 <script> |
| 5 if (window.testRunner) |
| 6 testRunner.useUnfortunateSynchronousResizeMode(); |
| 7 onload = function() { |
| 8 runAfterLayoutAndPaint(function() { |
| 9 // Use smaller size because window.resizeTo/By() will fail if the sizae is |
| 10 // bigger than the screen size. |
| 11 window.resizeTo(500, 200); |
| 12 runRepaintAndPixelTest(); |
| 13 }); |
| 14 }; |
| 4 function repaintTest() { | 15 function repaintTest() { |
| 5 if (window.testRunner) | |
| 6 testRunner.useUnfortunateSynchronousResizeMode(); | |
| 7 window.resizeBy(0, 200); | 16 window.resizeBy(0, 200); |
| 8 } | 17 } |
| 9 onload = runRepaintAndPixelTest; | |
| 10 </script> | 18 </script> |
| 11 Test passes if you see "Success" after window resizes. | 19 Test passes if you see "Success" after window resizes. |
| 12 <iframe style="position: absolute; left: 0; top: 0; border: none; height: 100%;
width: 100%;" src="resources/resize-iframe-text-src.html"></iframe> | 20 <iframe style="position: absolute; left: 0; top: 0; border: none; height: 100%;
width: 100%;" |
| 21 srcdoc="<!DOCTYPE html><div style='margin-top: 300px; max-width: 400px'><h3>
Success</h3></div>"></iframe> |
| OLD | NEW |