2010-01-06 Ojan Vafai <ojan@chromium.org>
[WebKit-https.git] / LayoutTests / fast / css / transition-color-unspecified.html
index 9595829..1634dee 100644 (file)
@@ -8,7 +8,11 @@
 <script>
     if (window.layoutTestController)
         layoutTestController.waitUntilDone();
+
+    document.getElementById("test").addEventListener('webkitTransitionEnd', function() {
+        if (window.layoutTestController)
+            layoutTestController.notifyDone();
+    }, false);
+
     document.getElementById("test").className = "";
-    if (window.layoutTestController)
-        setTimeout("layoutTestController.notifyDone()", 100);
 </script>