Index: LayoutTests/fast/animation/last-child-assert.html |
diff --git a/LayoutTests/fast/animation/last-child-assert.html b/LayoutTests/fast/animation/last-child-assert.html |
index a43b3f4e065e7343358a7951c78f6d8806d9fb6d..a04620aafb514706660934e184fd01734e934835 100644 |
--- a/LayoutTests/fast/animation/last-child-assert.html |
+++ b/LayoutTests/fast/animation/last-child-assert.html |
@@ -1,11 +1,15 @@ |
<!DOCTYPE html> |
<style> |
-html { background-color: white } |
-body { -webkit-transition: background-color 1s } |
+body { -webkit-transition: background-color 1ms } |
#nomatch :last-child { color: green } |
</style> |
<p>Pass if no assert or crash.</p> |
<script> |
+if (window.testRunner) { |
+ testRunner.dumpAsText(); |
+ testRunner.waitUntilDone(); |
+ document.body.addEventListener("transitionend", function(){ testRunner.notifyDone(); }, false); |
+} |
document.body.offsetTop; |
-document.body.style.backgroundColor = "white"; |
+document.body.style.backgroundColor = "green"; |
</script> |