blob: 5125e5352b175c196f5537f8178741b40097d9fd [file] [log] [blame]
This tests that request Picture-in-Picture requires a user gesture.
RUN(internals.settings.setAllowsPictureInPictureMediaPlayback(true))
RUN(internals.setPictureInPictureAPITestEnabled(video, true))
RUN(video.src = findMediaFile("video", "../content/test"))
EVENT(canplaythrough)
EXPECTED (error.name == 'NotAllowedError') OK
END OF TEST