Index: LayoutTests/fast/backgrounds/obscured-background-child-style-change.html |
diff --git a/LayoutTests/fast/backgrounds/obscured-background-child-style-change.html b/LayoutTests/fast/backgrounds/obscured-background-child-style-change.html |
index 25a199968c46317fcc4b0d1ba6ccf6e7a7d16fac..c0140c398b80a9cbd65ad0f8415b6e7c65324540 100644 |
--- a/LayoutTests/fast/backgrounds/obscured-background-child-style-change.html |
+++ b/LayoutTests/fast/backgrounds/obscured-background-child-style-change.html |
@@ -1,3 +1,4 @@ |
+<script src="../../resources/run-after-display.js"></script> |
<style> |
.parent { |
position: relative; |
@@ -22,10 +23,13 @@ |
</div> |
</div> |
<script> |
-document.body.offsetTop; |
if (window.testRunner) |
- testRunner.display(); |
-var children = document.getElementsByClassName("child"); |
-children[0].style.backgroundColor = "rgba(0,255,0,0.5)"; |
-children[1].style.backgroundColor = "rgba(0,255,0,0.5)"; |
+ testRunner.waitUntilDone(); |
+runAfterDisplay(function() { |
+ var children = document.getElementsByClassName("child"); |
+ children[0].style.backgroundColor = "rgba(0,255,0,0.5)"; |
+ children[1].style.backgroundColor = "rgba(0,255,0,0.5)"; |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+}); |
</script> |