blob: 8fc9c7fb26e0680f64bebaf88581870e091e184e [file] [log] [blame]
This tests that request Picture-in-Picture requires video track for the video element.
RUN(internals.settings.setAllowsPictureInPictureMediaPlayback(true))
RUN(internals.setPictureInPictureAPITestEnabled(video, true))
RUN(video.src = findMediaFile("audio", "../content/test"))
EVENT(canplaythrough)
EXPECTED (error.name == 'InvalidStateError') OK
END OF TEST