| Index: LayoutTests/compositing/clip-change.html
|
| diff --git a/LayoutTests/compositing/clip-change.html b/LayoutTests/compositing/clip-change.html
|
| index da4a61b288baac53d0ca91001d88dd64d2c23ca4..1cda32b1cc8b38f1b14f0b5bb7fbe90bb1ee4176 100644
|
| --- a/LayoutTests/compositing/clip-change.html
|
| +++ b/LayoutTests/compositing/clip-change.html
|
| @@ -1,6 +1,7 @@
|
| <!DOCTYPE html>
|
| <html>
|
| <head>
|
| + <script src="../resources/run-after-display.js"></script>
|
| <style>
|
| #indicator {
|
| position: absolute;
|
| @@ -22,16 +23,20 @@
|
| }
|
| </style>
|
| <script>
|
| - if (window.testRunner)
|
| + if (window.testRunner) {
|
| testRunner.dumpAsTextWithPixelResults();
|
| + testRunner.waitUntilDone();
|
| + }
|
| function doTest() {
|
| - if (window.testRunner)
|
| - testRunner.display();
|
| - // The change in clip style should be reflected immediately in the size
|
| - // of the composited clipper layer. After changing the clip, it should
|
| - // entirely cover the indicator.
|
| - var clipper = document.getElementById("clipper");
|
| - clipper.style.clip = "rect(0px, 100px, 100px, 0px)";
|
| + runAfterDisplay(function() {
|
| + // The change in clip style should be reflected immediately in the size
|
| + // of the composited clipper layer. After changing the clip, it should
|
| + // entirely cover the indicator.
|
| + var clipper = document.getElementById("clipper");
|
| + clipper.style.clip = "rect(0px, 100px, 100px, 0px)";
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| + });
|
| }
|
| window.addEventListener("load", doTest, false);
|
| </script>
|
|
|