blob: 5a3be9d779ec55bd6f22732af9d483fbb72109e5 [file] [log] [blame]
Test that removing a video element from the DOM while the video is in the picture-in-picture mode does not close the PiP window.
RUN(internals.settings.setAllowsPictureInPictureMediaPlayback(true))
RUN(internals.setMockVideoPresentationModeEnabled(true))
EVENT(canplaythrough)
EVENT(enterpictureinpicture)
EXPECTED (window.internals.mediaPlayerRenderingCanBeAccelerated(video) == 'true') OK
EXPECTED (pipWindow.width > '0') OK
EXPECTED (pipWindow.height > '0') OK
The video element has been removed from DOM.
END OF TEST