| Index: LayoutTests/compositing/overflow/content-gains-scrollbars.html
|
| diff --git a/LayoutTests/compositing/overflow/content-gains-scrollbars.html b/LayoutTests/compositing/overflow/content-gains-scrollbars.html
|
| index 673ad0b49d76b9cebcf91572cf0167a480ba1801..ee8526c5a84f5b71acbf3234a9100b239a8e3f4f 100644
|
| --- a/LayoutTests/compositing/overflow/content-gains-scrollbars.html
|
| +++ b/LayoutTests/compositing/overflow/content-gains-scrollbars.html
|
| @@ -1,4 +1,5 @@
|
| <!DOCTYPE html>
|
| +<script src="../../resources/run-after-display.js"></script>
|
| <style>
|
| .container {
|
| width: 100px;
|
| @@ -49,15 +50,15 @@ function finishTest() {
|
| document.getElementById("both").classList.add("tall"); // vertical and horizontal scrollbars
|
| document.getElementById("corner").classList.add("resizeWidget"); // bottom div gets a resize corner but no scrollbars
|
| if (window.testRunner) {
|
| - testRunner.display(); // Ensure compositor tree is up to date.
|
| document.getElementById("layerTree").innerText = window.internals.layerTreeAsText(document);
|
| + testRunner.notifyDone();
|
| }
|
| }
|
|
|
| if (window.testRunner) {
|
| testRunner.dumpAsText();
|
| - testRunner.display(); // Force compositor state to be updated before the container needs any overflow controls
|
| - finishTest();
|
| -} else
|
| - window.setTimeout(finishTest, 0);
|
| + testRunner.waitUntilDone();
|
| +}
|
| +
|
| +runAfterDisplay(finishTest);
|
| </script>
|
|
|