blob: 9ead17dc2e7dd53b7e6f554a3ab5ca8170a56110 [file] [log] [blame]
This tests that events are fired correctly when we use the webkit prefixed API to 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