| Index: LayoutTests/fast/layers/add-layer-with-nested-stacking.html
|
| diff --git a/LayoutTests/fast/layers/add-layer-with-nested-stacking.html b/LayoutTests/fast/layers/add-layer-with-nested-stacking.html
|
| index db5e6e96e797771d48ac7abcd0e6bc1955425079..375b69d4ee6b4c820619cd3d3c9b7d4bb74fc1f4 100644
|
| --- a/LayoutTests/fast/layers/add-layer-with-nested-stacking.html
|
| +++ b/LayoutTests/fast/layers/add-layer-with-nested-stacking.html
|
| @@ -13,17 +13,13 @@
|
| }
|
| </style>
|
| <div id="test" style="display: none"></div>
|
| +<script src="../../resources/run-after-display.js"></script>
|
| <script type="text/javascript">
|
| - function test()
|
| - {
|
| + if (window.testRunner)
|
| + testRunner.waitUntilDone();
|
| + runAfterDisplay(function() {
|
| document.getElementById("test").style.display = "block";
|
| - }
|
| -
|
| - if (!window.testRunner)
|
| - setTimeout(test, 0);
|
| - else {
|
| - document.body.offsetTop;
|
| - testRunner.display();
|
| - test();
|
| - }
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| + });
|
| </script>
|
|
|