blob: e0051cb34e251000533503cd6f060b15f0d54ad1 [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";
waitForEventAndTest('play', "video.paused");
waitForEventAndTest('timeupdate', "video.paused");
waitForEventTestAndEnd('pause', "video.paused");
run("video.play()");
run("video.pause()");
consoleWrite("SCRIPT DONE");
</script>