2 <p>Test that stalling very early, while loading meta-data, stops delaying the load event.
</p>
3 <script src=../../media-resources/media-file.js
></script>
4 <script src=../../media-resources/video-test.js
></script>
8 waitForEvent("loadstart");
9 waitForEvent("stalled");
10 waitForEvent("suspend");
12 // We want to make sure the onload event fires.
13 window
.onload = function() {
14 consoleWrite("EVENT(window.onload)");
18 // Find a supported media file.
19 var mediaFile
= findMediaFile("video", "content/test");
20 var mimeType
= mimeTypeForFile(mediaFile
);
22 // Load should stall very early in the loading process.
23 video
.src
= "http://127.0.0.1:8000/resources/load-and-stall.cgi?name=../../../media/" + mediaFile
+ "&mimeType=" + mimeType
+ "&stallAt=1&stallFor=4";