Upstream version 7.35.139.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / repaint / absolute-position-changed.html
index 7ef29a7..8d68560 100644 (file)
@@ -1,38 +1,22 @@
 <html>
 <head>
     <link rel="stylesheet" href="resources/default.css">
-    <style>
-        html {
-            overflow: scroll;
-        }
-    </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) {
-            testRunner.waitUntilDone();
+        if (window.testRunner)
             testRunner.dumpAsTextWithPixelResults();
-        }
-
-        window.onload = function()
-        {
-            window.scrollTo(0, 500);
-            runAfterDisplay(function() {
-                runRepaintTest();
-                if (window.testRunner)
-                    testRunner.notifyDone();
-            });
-        }
-
         function repaintTest()
         {
             document.getElementById('absoluteDiv').style.top = '700px';
         }
     </script>
 </head>
-<body style="height:2000px;">
+<body style="height:2000px;" onload="runRepaintTest()">
     <!-- You should see 1 green rectangle in the output and no red. -->
     <div style="top: 200px; left: 100px;" class="fixed red"></div>
-    <div id="absoluteDiv" style="top: 500px; left:100px;" class="absolute green"></div>
+    <div id="absoluteDiv" style="top: 500px; left:100px;" class="absolute green"></div></div>
+    <script>
+        window.scrollTo(0, 500);
+    </script>
 </body>
 </html>