blob: 41e59a4e3daee9d767c2e52355ca4239e6a738a4 [file] [log] [blame]
RUN(internals.setMediaSessionRestrictions("video", "InterruptedPlaybackNotPermitted"))
RUN(video.src = "non-existent.mp4")
EXPECTED (video.paused == 'true') OK
RUN(internals.beginMediaSessionInterruption("System"))
RUN(video.play().then(didResolvePromise).catch(didRejectPromise))
RUN(internals.endMediaSessionInterruption("MayResumePlaying"))
Promise rejected. OK
EXPECTED (error.name == 'NotSupportedError') OK
END OF TEST