| Index: third_party/WebKit/LayoutTests/fast/repaint/resources/window-resize-repaint.js
|
| diff --git a/third_party/WebKit/LayoutTests/fast/repaint/resources/window-resize-repaint.js b/third_party/WebKit/LayoutTests/fast/repaint/resources/window-resize-repaint.js
|
| index ce0ff467b205f8b850bc924f0c9d01b8324fa8f0..ea7f48ae08ff6493097abff81e4f3b90c3a883f5 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/repaint/resources/window-resize-repaint.js
|
| +++ b/third_party/WebKit/LayoutTests/fast/repaint/resources/window-resize-repaint.js
|
| @@ -33,6 +33,8 @@ function doTest() {
|
| if (window.testRunner) {
|
| testRunner.useUnfortunateSynchronousResizeMode();
|
| testRunner.waitUntilDone();
|
| - window.resizeTo(testSizes[0].width, testSizes[0].height);
|
| - testRunner.layoutAndPaintAsyncThen(doTest);
|
| + onload = function() {
|
| + window.resizeTo(testSizes[0].width, testSizes[0].height);
|
| + testRunner.layoutAndPaintAsyncThen(doTest);
|
| + };
|
| }
|
|
|