2009-08-20 Eric Carlson <eric.carlson@apple.com>
[WebKit-https.git] / LayoutTests / media / progress-event-at-least-one.html
index b310a43..f76cd94 100644 (file)
@@ -17,9 +17,9 @@
                     return;
             }
 
-            function loaded()
+            function loadend()
             {
-                consoleWrite("EVENT(load)");
+                consoleWrite("EVENT(loadend)");
                 
                 testExpected('progressEventCount', 1, '>=');
                 endTest();
             {
                 run("mediaElement = document.createElement('audio')");
 
-                mediaElement.setAttribute('onload', "loaded()");
+                mediaElement.setAttribute('onloadend', "loadend()");
                 mediaElement.setAttribute('onprogress', "progress()");
 
                 waitForEvent("loadstart");
+                waitForEvent("loadend");
+                waitForEvent("loaded");
                 waitForEvent("waiting");
                 waitForEvent("ratechange");
                 waitForEvent("durationchange");