blob: 16be059e1d84cb6faebb94099eb1e5c976533027 [file] [log] [blame]
Test that a remote control command is treated as a user gesture.
RUN(internals.setMediaElementRestrictions(video, "RequireUserGestureForVideoRateChange"))
* set video.src
EVENT(loadedmetadata)
* video.play() should fail
RUN(video.play())
EXPECTED (video.paused == 'true') OK
* Send a play command, it should succeed.
RUN(internals.postRemoteControlCommand('play'))
EVENT(timeupdate)
END OF TEST