blob: 2d5e98daca9b4227734bb42be8136bcde2dd8844 [file] [log] [blame]
Test that playback is paused by an SuspendUnderLock, even when it is not paused by EnteringBackground, and that ending the interruption does not automatically resume playback.
Start
EVENT(canplaythrough)
RUN(video.play())
EVENT(playing)
RUN(video.webkitSetPresentationMode('picture-in-picture'))
RUN(internals.beginMediaSessionInterruption('EnteringBackground'))
EXPECTED (video.paused == 'false') OK
RUN(internals.beginMediaSessionInterruption('SuspendedUnderLock'))
EXPECTED (video.paused == 'true') OK
RUN(internals.endMediaSessionInterruption('MayResumePlaying'))
EXPECTED (video.paused == 'true') OK
RUN(internals.endMediaSessionInterruption(''))
EXPECTED (video.paused == 'true') OK
END OF TEST