| Index: LayoutTests/fast/layers/layer-content-visibility-change.html
|
| diff --git a/LayoutTests/fast/layers/layer-content-visibility-change.html b/LayoutTests/fast/layers/layer-content-visibility-change.html
|
| index 89d8be9201f0f3554bafabec5020c62d93a4e751..65acf97ef15e9d7dab0747357978e2d59a7d7c6f 100644
|
| --- a/LayoutTests/fast/layers/layer-content-visibility-change.html
|
| +++ b/LayoutTests/fast/layers/layer-content-visibility-change.html
|
| @@ -4,15 +4,13 @@
|
| <div id="inner" style="width: 100px; height: 100px; background-color: green;"></div>
|
| </div>
|
| </div>
|
| +<script src="../../resources/run-after-display.js"></script>
|
| <script>
|
| - function test()
|
| - {
|
| + if (window.testRunner)
|
| + testRunner.waitUntilDone();
|
| + runAfterDisplay(function() {
|
| document.getElementById("inner").style.visibility = "visible";
|
| - }
|
| - if (window.testRunner) {
|
| - document.body.offsetTop;
|
| - testRunner.display();
|
| - test();
|
| - } else
|
| - setTimeout(test, 0);
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| + });
|
| </script>
|
|
|