blob: dea598836cb492c65553091a7f38538d635381a9 [file] [log] [blame]
This tests that entering and leaving Picture-in-Picture toggles CSS selector.
RUN(internals.settings.setAllowsPictureInPictureMediaPlayback(true))
RUN(internals.setMockVideoPresentationModeEnabled(true))
RUN(video.src = findMediaFile("video", "../content/test"))
EVENT(canplaythrough)
EXPECTED (getComputedStyle(video).color == 'rgb(0, 0, 255)') OK
EVENT(enterpictureinpicture)
EXPECTED (getComputedStyle(video).color == 'rgb(0, 255, 0)') OK
EVENT(leavepictureinpicture)
EXPECTED (getComputedStyle(video).color == 'rgb(0, 0, 255)') OK
END OF TEST