| Index: LayoutTests/compositing/iframes/resources/fixed-position-transformed-subframe.html
|
| diff --git a/LayoutTests/compositing/iframes/resources/fixed-position-transformed-subframe.html b/LayoutTests/compositing/iframes/resources/fixed-position-transformed-subframe.html
|
| index 28bf41973c6d2626a6094e1110016c13f97c185d..8ee97a3a56a8bb2a36d2c1a4a92f967909bd8227 100644
|
| --- a/LayoutTests/compositing/iframes/resources/fixed-position-transformed-subframe.html
|
| +++ b/LayoutTests/compositing/iframes/resources/fixed-position-transformed-subframe.html
|
| @@ -29,6 +29,7 @@
|
| -webkit-perspective: 1px;
|
| }
|
| </style>
|
| + <script src="../../../resources/run-after-display.js"></script>
|
| <script>
|
| if (window.testRunner) {
|
| testRunner.dumpAsTextWithPixelResults();
|
| @@ -37,11 +38,15 @@
|
| function doTest()
|
| {
|
| if (window.testRunner)
|
| - testRunner.display();
|
| -
|
| - // Any scroll should keep the fixed-position element where it is.
|
| - // If it stutters or disappears incorrectly, then the red background will be revealed.
|
| - window.scrollTo(0, 150);
|
| + testRunner.waitUntilDone();
|
| +
|
| + runAfterDisplay(function() {
|
| + // Any scroll should keep the fixed-position element where it is.
|
| + // If it stutters or disappears incorrectly, then the red background will be revealed.
|
| + window.scrollTo(0, 150);
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| + });
|
| }
|
|
|
| window.addEventListener('load', doTest, false);
|
|
|