Test that video play(), pause() and webkitEnterFullScreen() should not work unless a user clicked on the play button. | |
EVENT(canplaythrough) | |
* No user gesture initiated | |
RUN(handlePromise(video.play())) | |
TEST(video.webkitEnterFullScreen()) THROWS(DOMException.INVALID_STATE_ERR) OK | |
EXPECTED (video.paused == 'true') OK | |
* User gesture initiated | |
EVENT(playing) | |
RUN(video.pause()) | |
EVENT(pause) | |
EXPECTED (video.paused == 'true') OK | |
RUN(video.webkitEnterFullScreen()) | |
END OF TEST | |