blob: 6589f81ca28ce862ae48f5b88bfae976408c2467 [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(video.play())
EXPECTED (video.paused == 'true') OK
Running with keyDown.
RUN(video.play())
EXPECTED (video.paused == 'false') OK
END OF TEST