| Index: LayoutTests/compositing/layer-creation/fixed-position-scroll.html
|
| diff --git a/LayoutTests/compositing/layer-creation/fixed-position-scroll.html b/LayoutTests/compositing/layer-creation/fixed-position-scroll.html
|
| index 8ee69971d967ce1d553541552ad03ac05b42c13a..96b67f1a836a166c55e23851345048570a0d5700 100644
|
| --- a/LayoutTests/compositing/layer-creation/fixed-position-scroll.html
|
| +++ b/LayoutTests/compositing/layer-creation/fixed-position-scroll.html
|
| @@ -31,25 +31,22 @@
|
| -webkit-transform: translateZ(0);
|
| }
|
| </style>
|
| - <script src="../../fast/repaint/resources/repaint.js"></script>
|
| + <script src="../../resources/run-after-display.js"></script>
|
| <script type="text/javascript" charset="utf-8">
|
| if (window.testRunner) {
|
| testRunner.dumpAsTextWithPixelResults();
|
| testRunner.waitUntilDone();
|
| }
|
|
|
| - function repaintTest()
|
| - {
|
| - window.scrollBy(0,-96);
|
| - if (window.testRunner)
|
| - testRunner.notifyDone();
|
| - }
|
| -
|
| function doTest()
|
| {
|
| window.scrollBy(0,-2048);
|
| window.scrollBy(0,160);
|
| - runRepaintTest();
|
| + runAfterDisplay(function() {
|
| + window.scrollBy(0,-96);
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| + });
|
| }
|
| window.addEventListener('load', doTest, false);
|
| </script>
|
|
|