Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: LayoutTests/fast/backgrounds/obscured-background-child-style-change.html

Issue 183703003: Remove more testRunner.display() calls from LayoutTests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ditch fast/text/font-initial changes too Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/backgrounds/obscured-background-child-style-change-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/backgrounds/obscured-background-child-style-change-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698