| Index: LayoutTests/compositing/absolute-inside-out-of-view-fixed.html
|
| diff --git a/LayoutTests/compositing/absolute-inside-out-of-view-fixed.html b/LayoutTests/compositing/absolute-inside-out-of-view-fixed.html
|
| index ac2bc36fef465b712d4b8dae9eb64b3a6e9b4756..cab03de8d08b7180b24e95ec62b5e7af96ba29dd 100644
|
| --- a/LayoutTests/compositing/absolute-inside-out-of-view-fixed.html
|
| +++ b/LayoutTests/compositing/absolute-inside-out-of-view-fixed.html
|
| @@ -2,6 +2,7 @@
|
| <html>
|
|
|
| <head>
|
| + <script src="../resources/run-after-display.js"></script>
|
| <style>
|
| body {
|
| margin: 0;
|
| @@ -29,20 +30,25 @@
|
| if (window.testRunner) {
|
| testRunner.waitUntilDone();
|
| testRunner.dumpAsText();
|
| - if (window.internals) {
|
| - window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
|
| - window.internals.settings.setFixedPositionCreatesStackingContext(true);
|
| - }
|
| + }
|
| + if (window.internals) {
|
| + window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
|
| + window.internals.settings.setFixedPositionCreatesStackingContext(true);
|
| }
|
|
|
| function doScroll()
|
| {
|
| window.setTimeout(function() {
|
| window.scrollTo(0, 200);
|
| - if (window.internals) {
|
| - document.getElementById('results').innerText = internals.layerTreeAsText(document);
|
| - testRunner.notifyDone();
|
| - }
|
| +
|
| + runAfterDisplay(function() {
|
| + if (window.internals) {
|
| + document.getElementById('results').innerText = internals.layerTreeAsText(document);
|
| + if (window.testRunner) {
|
| + testRunner.notifyDone();
|
| + }
|
| + }
|
| + });
|
| }, 10);
|
| }
|
|
|
|
|