| Index: LayoutTests/compositing/iframes/scrolling-iframe.html
|
| diff --git a/LayoutTests/compositing/iframes/scrolling-iframe.html b/LayoutTests/compositing/iframes/scrolling-iframe.html
|
| index 8a33c143931147e57fbdf63a904443e63d85415f..e92103ccef26e1f45176c0af49fbf62235ba7de9 100644
|
| --- a/LayoutTests/compositing/iframes/scrolling-iframe.html
|
| +++ b/LayoutTests/compositing/iframes/scrolling-iframe.html
|
| @@ -2,6 +2,7 @@
|
|
|
| <html>
|
| <head>
|
| + <script src="../../resources/run-after-display.js"></script>
|
| <style type="text/css" media="screen">
|
| iframe {
|
| border: 10px solid black;
|
| @@ -30,17 +31,13 @@
|
|
|
| function doTest()
|
| {
|
| - // For some reason this delay is required for AppKit to not short-circuit the display.
|
| - window.setTimeout(function() {
|
| - if (window.testRunner)
|
| - testRunner.display();
|
| -
|
| + runAfterDisplay(function() {
|
| document.getElementById('parent-iframe').contentWindow.scrollTo(80, 80);
|
| if (window.testRunner) {
|
| document.getElementById('layers').innerHTML = window.internals.layerTreeAsText(document);
|
| testRunner.notifyDone();
|
| }
|
| - }, 0);
|
| + });
|
| }
|
|
|
| window.addEventListener('load', doTest, false);
|
|
|