blob: c010c8b3b2df7943e00cf8061306a1e221011b01 [file] [log] [blame]
Test that, when RequireUserGestureForAudioRateChange is set, starting playback of an audio file requires a user gesture.
RUN(internals.setMediaElementRestrictions(video, "RequireUserGestureForAudioRateChange"))
RUN(video.src = findMediaFile('audio', 'content/test'))
EVENT(canplaythrough)
RUN(handlePromise(video.play()))
EXPECTED (video.paused == 'true') OK
Running with keyDown.
RUN(video.play())
EXPECTED (video.paused == 'false') OK
END OF TEST