blob: cac90484e5eef94b93d14a2e270822e647b57475 [file] [log] [blame]
<video controls></video>
<p>Test that calling play() and pause() triggers async play, timeupdate and pause events.</p>
<script src=video-test.js></script>
<script>
video.src = "content/test.mp4";
waitForEvent("loadstart");
waitForEvent("ratechange");
waitForEvent("waiting");
waitForEvent("ratechange");
waitForEvent("durationchange");
waitForEvent("loadedmetadata");
waitForEvent("loadeddata");
waitForEvent("canplay");
waitForEvent("canplaythrough");
waitForEvent("play");
waitForEvent("timeupdate");
waitForEvent('pause', function () { testExpected("video.paused", true); endTest(); } );
run("video.play()");
run("video.pause()");
consoleWrite("SCRIPT DONE");
</script>