<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> |