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 | |