| Index: LayoutTests/fast/repaint/scroll-fixed-reflected-layer.html
|
| diff --git a/LayoutTests/fast/repaint/scroll-fixed-reflected-layer.html b/LayoutTests/fast/repaint/scroll-fixed-reflected-layer.html
|
| index 42cebe25a14dae28144f1c0de6f123e242d1b43f..1cdf2fa6ac2d870b3bb2f6179de521e86c91e26b 100644
|
| --- a/LayoutTests/fast/repaint/scroll-fixed-reflected-layer.html
|
| +++ b/LayoutTests/fast/repaint/scroll-fixed-reflected-layer.html
|
| @@ -1,10 +1,23 @@
|
| <html>
|
| <head>
|
| <link rel="stylesheet" href="resources/default.css"></style>
|
| + <script src="../../resources/run-after-display.js"></script>
|
| <script src="resources/text-based-repaint.js" type="text/javascript"></script>
|
| <script type="text/javascript">
|
| - if (window.testRunner)
|
| + if (window.testRunner) {
|
| + testRunner.waitUntilDone();
|
| testRunner.dumpAsTextWithPixelResults();
|
| + }
|
| +
|
| + function scrollAndRepaint()
|
| + {
|
| + window.scrollTo(100, 180);
|
| + runAfterDisplay(function() {
|
| + runRepaintTest();
|
| + if (window.testRunner)
|
| + testRunner.notifyDone();
|
| + });
|
| + }
|
|
|
| function repaintTest()
|
| {
|
| @@ -12,7 +25,7 @@
|
| }
|
| </script>
|
| </head>
|
| -<body style="height:2000px;" onload="runRepaintTest()">
|
| +<body style="height:2000px;" onload="scrollAndRepaint()">
|
| <!-- You should see 1 green rectangle rotated in the output and no red. -->
|
| <div style="height: 50px; top: 100px; left: 250px;" class="reflected fixed">
|
| <div class="absolute green reflected" style="height: 50px;"></div>
|
| @@ -20,8 +33,5 @@
|
| </div>
|
| <!-- Make sure we are scrolled -->
|
| <div style="top: 0px; left: 0px;" class="absolute red"></div>
|
| - <script>
|
| - window.scrollTo(100, 180);
|
| - </script>
|
| </body>
|
| </html>
|
|
|