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

Unified Diff: LayoutTests/fast/images/animated-background-image-crash.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 | « LayoutTests/fast/forms/hidden-listbox.html ('k') | LayoutTests/fast/layers/nested-layers-1.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/images/animated-background-image-crash.html
diff --git a/LayoutTests/fast/images/animated-background-image-crash.html b/LayoutTests/fast/images/animated-background-image-crash.html
index c0ddd8972541f1cc9965d13a4ab90d32d550217e..a998a5a87b15325b019ad746e826210b4ac1dc78 100644
--- a/LayoutTests/fast/images/animated-background-image-crash.html
+++ b/LayoutTests/fast/images/animated-background-image-crash.html
@@ -9,20 +9,14 @@
url(resources/animated2.gif) bottom right no-repeat;
}
</style>
+ <script src="../../resources/run-after-display.js"></script>
<script>
- function step2()
- {
- if (window.testRunner)
- testRunner.notifyDone();
- }
-
function step1()
{
- if (window.testRunner)
- testRunner.display();
document.getElementById("target").style.display="none";
document.body.offsetTop;
- setTimeout("step2()", 200);
+ if (window.testRunner)
+ testRunner.notifyDone();
}
function test()
@@ -31,7 +25,7 @@
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
- setTimeout("step1()", 100);
+ runAfterDisplay(step1);
}
</script>
</head>
« no previous file with comments | « LayoutTests/fast/forms/hidden-listbox.html ('k') | LayoutTests/fast/layers/nested-layers-1.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698