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> |