4 <title>'abort' event test
</title>
5 <script src=../../media-resources/media-file.js
></script>
6 <script src=../../media-resources/video-test.js
></script>
12 consoleWrite("<br><b><em>'loadstart'</em> event</b>");
13 testExpected("video.error", null);
19 // Force the element to reload, while the current movie is still loading,
20 // this should generate an 'abort' event
26 consoleWrite("<br><b><em>'abort'</em> event</b>");
27 testExpected("video.error", null);
29 // Progress events have a 'lengthComputable' field, check to make sure this event
31 testExpected("event.lengthComputable", undefined);
34 function canplaythrough()
36 consoleWrite("<br><b><em>'canplaythrough'</em> event</b>");
37 testExpected("video.error", null);
47 waitForEvent("error");
49 consoleWrite("<br><b>Test before movie is open</b>");
50 testExpected("video.error", null);
52 var movie
= findMediaFile("video", "../resources/test");
53 video
.src
= "http://127.0.0.1:8000/media/video-throttled-load.cgi?name=" + movie
+ "&throttle=256";
58 <body onload=
"start()">
60 onloadstart=
"loadstart()"
62 oncanplaythrough=
"canplaythrough()"