blob: 5075013c8e455985f4e164081b339aac99aebb74 [file] [log] [blame]
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(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