blob: a18e8bb86ee37c239b87692d1801a85d2b0e2d9c [file] [log] [blame]
This tests that the "webkitpresentationmodechanged" event is fired only once when the browser switches back to inline from the picture-in-picture mode.
RUN(video.src = findMediaFile("video", "content/test"))
EVENT(canplaythrough)
RUN(video.play())
RUN(video.webkitSetPresentationMode("picture-in-picture"))
EVENT(webkitpresentationmodechanged)
EXPECTED (video.webkitDisplayingFullscreen == 'true') OK
EXPECTED (video.webkitPresentationMode == 'picture-in-picture') OK
RUN(video.webkitSetPresentationMode("inline"))
EVENT(webkitpresentationmodechanged)
EXPECTED (video.webkitPresentationMode == 'inline') OK
END OF TEST