| Index: LayoutTests/compositing/repaint/newly-composited-on-scroll.html
|
| diff --git a/LayoutTests/compositing/repaint/newly-composited-on-scroll.html b/LayoutTests/compositing/repaint/newly-composited-on-scroll.html
|
| index 11178f3f5efe997b6d625aa88126000d63bda0d8..56cb5657263b04bd46ebfffd4f14b0b1daf247ed 100644
|
| --- a/LayoutTests/compositing/repaint/newly-composited-on-scroll.html
|
| +++ b/LayoutTests/compositing/repaint/newly-composited-on-scroll.html
|
| @@ -54,6 +54,7 @@
|
| </head>
|
|
|
| <script src="../../fast/repaint/resources/repaint.js"></script>
|
| +<script src="../../resources/run-after-display.js"></script>
|
|
|
| <script>
|
| if (window.testRunner) {
|
| @@ -62,17 +63,13 @@
|
| }
|
|
|
| function repaintTest() {
|
| - if (window.testRunner)
|
| - testRunner.display();
|
| -
|
| - document.getElementById('overflow').scrollTop = 30;
|
| - if (window.testRunner)
|
| - testRunner.display();
|
| -
|
| - window.setTimeout(function() {
|
| - document.getElementById('overflow').scrollTop = 50;
|
| - testRunner.notifyDone();
|
| - }, 0);
|
| + runAfterDisplay(function() {
|
| + document.getElementById('overflow').scrollTop = 30;
|
| + runAfterDisplay(function() {
|
| + document.getElementById('overflow').scrollTop = 50;
|
| + testRunner.notifyDone();
|
| + });
|
| + });
|
| }
|
|
|
| </script>
|
|
|