blob: 2c04b5cab4efa826b4af8eac2aca5e0fb322422f [file] [log] [blame]
<video controls></video>
<p>Video has no src. Test that play() and pause() rethrow the exception from load(). Test that the play and pause events are not dispatched.</p>
<script src=video-test.js></script>
<script>
waitForEventAndFail('play');
waitForEventAndFail('pause');
testException("video.play()", "DOMException.INVALID_STATE_ERR");
testException("video.pause()", "DOMException.INVALID_STATE_ERR");
endTestLater();
</script>