blob: 6dff884b16987228294028fa4f0231c6f5ec11b3 [file] [log] [blame]
This tests that events are fired correctly when a video element enters and exits the Picture-in-Picture mode.
RUN(internals.settings.setAllowsPictureInPictureMediaPlayback(true))
RUN(internals.setMockVideoPresentationModeEnabled(true))
RUN(video.src = findMediaFile("video", "../content/test"))
EVENT(canplaythrough)
EVENT(enterpictureinpicture)
EXPECTED (pipWindow.width > '0') OK
EXPECTED (pipWindow.height > '0') OK
EVENT(leavepictureinpicture)
END OF TEST