blob: 9c157db9a6b3531a30f7d2e1575a9df0b2e3a17d [file] [log] [blame]
<video controls></video>
<p>Test that pause() from EMPTY network state triggers load()</p>
<script src=media-file.js></script>
<script src=video-test.js></script>
<script>
video.src = findMediaFile("video", "content/test");
testExpected("video.networkState", HTMLMediaElement.NETWORK_NO_SOURCE);
waitForEvent("loadstart");
waitForEvent("ratechange");
waitForEvent("waiting");
waitForEvent("ratechange");
waitForEvent("durationchange");
waitForEvent("loadedmetadata");
waitForEvent("loadeddata");
waitForEvent("canplay");
waitForEventAndEnd("canplaythrough");
run("video.pause()");
consoleWrite("SCRIPT DONE");
</script>