Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / compositing / repaint / scroll-fixed-layer-out-of-view.html
index 9d2a448..6eee9f4 100644 (file)
@@ -1,31 +1,21 @@
 <!DOCTYPE html>
 <html>
 <head>
+    <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
     <script type="text/javascript">
-        if (window.testRunner)
-            testRunner.dumpAsText();
-
         if (window.internals)
             internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
 
-        function test()
+        function repaintTest()
         {
-            document.body.offsetHeight;
-            if (window.internals)
-                window.internals.startTrackingRepaints(document);
-
             window.scrollTo(0, 1000);
             window.scrollTo(0, 100);
-
-            if (window.internals)
-                document.getElementById('repaintRects').textContent = window.internals.repaintRectsAsText(document);
         }
     </script>
 </head>
-<body style="height:2000px" onload="test()">
+<body style="height:2000px" onload="runRepaintTest()">
     <div style="position: fixed; top: -300px; left: 100px; width: 88px; height: 88px; background-color: silver"></div>
     <div style="position: fixed; top: 1000px; left: 100px; width: 99px; height: 99px; background-color: silver"></div>
     There should be no repaints here:
-    <pre id="repaintRects"></pre>
 </body>
 </html>