Index: LayoutTests/compositing/iframes/resources/fixed-position-transformed-subframe.html |
diff --git a/LayoutTests/compositing/iframes/resources/fixed-position-transformed-subframe.html b/LayoutTests/compositing/iframes/resources/fixed-position-transformed-subframe.html |
index 8ee97a3a56a8bb2a36d2c1a4a92f967909bd8227..71a5ce730f0b6b9c371ca640d20b6b7a1e17b6e8 100644 |
--- a/LayoutTests/compositing/iframes/resources/fixed-position-transformed-subframe.html |
+++ b/LayoutTests/compositing/iframes/resources/fixed-position-transformed-subframe.html |
@@ -40,13 +40,15 @@ |
if (window.testRunner) |
testRunner.waitUntilDone(); |
- runAfterDisplay(function() { |
- // Any scroll should keep the fixed-position element where it is. |
- // If it stutters or disappears incorrectly, then the red background will be revealed. |
- window.scrollTo(0, 150); |
- if (window.testRunner) |
+ // Any scroll should keep the fixed-position element where it is. |
+ // If it stutters or disappears incorrectly, then the red background will be revealed. |
+ window.scrollTo(0, 150); |
+ |
+ if (window.testRunner) { |
+ runAfterDisplay(function() { |
testRunner.notifyDone(); |
- }); |
+ }); |
+ } |
} |
window.addEventListener('load', doTest, false); |