blob: a824c2e8529b1d8ba4e02381ac42271f7fc0dda8 [file] [log] [blame]
CONSOLE WARNING: line 1: Failed to execute 'play' on 'HTMLMediaElement': API can only be initiated by a user gesture.
CONSOLE ERROR: line 1: Uncaught (in promise) NotAllowedError: play() can only be initiated by a user gesture.
Test that video play() does not work unless a user clicked on the play button.
EVENT(canplaythrough)
* No user gesture initiated
RUN(video.play())
EXPECTED (video.paused == 'true') OK
* User gesture initiated
EVENT(playing)
RUN(video.pause())
EVENT(pause)
EXPECTED (video.paused == 'true') OK
END OF TEST