blob: 1079d0b0762f99dc568a3dde7b41a3d66c4772a3 [file] [log] [blame]
This tests that video is in the correct media session state after ending a background interruption while pipped.
RUN(internals.settings.setAllowsPictureInPictureMediaPlayback(true))
RUN(video.src = findMediaFile("video", "content/test"))
EVENT(canplaythrough)
RUN(video.play())
EVENT(playing)
EVENT(webkitpresentationmodechanged)
RUN(internals.beginMediaSessionInterruption("enteringbackground"))
EXPECTED (internals.mediaSessionState(video) == 'Playing') OK
RUN(internals.endMediaSessionInterruption("enteringbackground"))
EXPECTED (internals.mediaSessionState(video) == 'Playing') OK
END OF TEST