Index: LayoutTests/compositing/iframes/resources/scrollgrandchild-inner.html |
diff --git a/LayoutTests/compositing/iframes/resources/scrollgrandchild-inner.html b/LayoutTests/compositing/iframes/resources/scrollgrandchild-inner.html |
index ae6e14ca147d50186e62749f3f056fa93bc7e03c..45a8f0053f3e959e1380461157eb35bee496da65 100644 |
--- a/LayoutTests/compositing/iframes/resources/scrollgrandchild-inner.html |
+++ b/LayoutTests/compositing/iframes/resources/scrollgrandchild-inner.html |
@@ -1,5 +1,6 @@ |
<html> |
<head> |
+ <script src="../../../resources/run-after-display.js"></script> |
<style> |
body { |
height: 1000px; |
@@ -31,12 +32,12 @@ |
function doTest() |
{ |
- if (window.testRunner) |
- testRunner.display(); |
- // Scroll red box off screen and scroll green box into same place. |
- window.scrollTo(0, 400); |
- if (window.testRunner) |
- testRunner.notifyDone(); |
+ runAfterDisplay(function() { |
+ // Scroll red box off screen and scroll green box into same place. |
+ window.scrollTo(0, 400); |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+ }); |
} |
window.addEventListener('load', doTest, false); |