| 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 dcacd295ca2577aebbbefdfc987319d10089a8ce..93cecb3635dfc1f587e90fff474bf80e9975db9f 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,18 +30,24 @@
|
| if (window.testRunner) {
|
| testRunner.waitUntilDone();
|
| testRunner.dumpAsText();
|
| - if (window.internals)
|
| - window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
|
| + }
|
| + if (window.internals) {
|
| + window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(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);
|
| }
|
|
|
|
|