| Index: third_party/WebKit/LayoutTests/paint/invalidation/resize-iframe-text.html
|
| diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/resize-iframe-text.html b/third_party/WebKit/LayoutTests/paint/invalidation/resize-iframe-text.html
|
| index 2f5e1a22498d4d71cd2fe877e86de5e43e4d6ae1..11fbdea8b92bd0c98bf34aca7d5fb153d2507d2f 100644
|
| --- a/third_party/WebKit/LayoutTests/paint/invalidation/resize-iframe-text.html
|
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/resize-iframe-text.html
|
| @@ -1,12 +1,21 @@
|
| <!DOCTYPE html>
|
| +<script src="../../resources/run-after-layout-and-paint.js"></script>
|
| <script src="resources/text-based-repaint.js"></script>
|
| <script>
|
| +if (window.testRunner)
|
| + testRunner.useUnfortunateSynchronousResizeMode();
|
| +onload = function() {
|
| + runAfterLayoutAndPaint(function() {
|
| + // Use smaller size because window.resizeTo/By() will fail if the sizae is
|
| + // bigger than the screen size.
|
| + window.resizeTo(500, 200);
|
| + runRepaintAndPixelTest();
|
| + });
|
| +};
|
| function repaintTest() {
|
| - if (window.testRunner)
|
| - testRunner.useUnfortunateSynchronousResizeMode();
|
| window.resizeBy(0, 200);
|
| }
|
| -onload = runRepaintAndPixelTest;
|
| </script>
|
| Test passes if you see "Success" after window resizes.
|
| -<iframe style="position: absolute; left: 0; top: 0; border: none; height: 100%; width: 100%;" src="resources/resize-iframe-text-src.html"></iframe>
|
| +<iframe style="position: absolute; left: 0; top: 0; border: none; height: 100%; width: 100%;"
|
| + srcdoc="<!DOCTYPE html><div style='margin-top: 300px; max-width: 400px'><h3>Success</h3></div>"></iframe>
|
|
|