blob: 641b6e4502283e797c0c03c782f02c8f50ef6e24 [file] [log] [blame]
<video controls></video>
<script src=video-test.js></script>
<script>
function testReadyState(expected, endit, op)
{
testExpected("video.readyState", expected, op);
if (endit)
endTest();
}
testExpected("video.readyState", HTMLMediaElement.HAVE_NOTHING);
waitForEvent("loadstart");
waitForEvent("loadedmetadata");
waitForEvent("loadeddata");
waitForEvent("canplay");
waitForEventAndFail("play");
waitForEventAndFail("playing");
waitForEvent("canplaythrough", function () { testReadyState(HTMLMediaElement.HAVE_ENOUGH_DATA, true ); } );
video.src = "content/test.mp4";
</script>