blob: a4b9be0be98216b2bd00eb4ec91e0b12f4dfb5e2 [file] [log] [blame]
RUN(internals.setMediaElementRestrictions(video, "requireusergestureforvideoratechange"))
RUN(video.src = findMediaFile("video", "../content/test"))
EVENT(canplay)
RUN(promise = video.play())
Promise rejected correctly OK
RUN(internals.sendMediaSessionAction(navigator.mediaSession, {action: "play"}))
ACTION: play
RUN(promise = video.play())
Promise resolved OK
END OF TEST