Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / repaint / fixed-move-after-scroll.html
index 8d2cd16..df14695 100644 (file)
@@ -1,12 +1,21 @@
 <html>
 <head>
   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+  <script src="../../resources/run-after-display.js"></script>
   <script src="resources/text-based-repaint.js"></script>
   <script type="text/javascript">
       function scrollAndRepaint()
       {
+          if (window.testRunner)
+              testRunner.waitUntilDone();
+
           scrollBy(0, 200);
-          runRepaintTest();
+
+          runAfterDisplay(function() {
+              runRepaintTest();
+              if (window.testRunner)
+                  testRunner.notifyDone();
+          });
       }
       function repaintTest()
       {