blob: a31d173f33687537258502cc496fbfebde38c2e4 [file] [log] [blame]
Test that play() during interruption does nothing, ending interruption allows playback to resume.
EVENT(canplaythrough)
RUN(video.play())
EVENT(playing)
EXPECTED (video.paused == 'false') OK
RUN(internals.beginMediaSessionInterruption('System'))
100ms timer fired...
EXPECTED (video.paused == 'true') OK
RUN(internals.endMediaSessionInterruption('MayResumePlaying'))
EVENT(playing)
EXPECTED (video.paused == 'false') OK
EXPECTED (video.paused == 'false') OK
RUN(internals.beginMediaSessionInterruption('System'))
100ms timer fired...
EXPECTED (video.paused == 'true') OK
RUN(internals.endMediaSessionInterruption('MayResumePlaying'))
EVENT(playing)
EXPECTED (video.paused == 'false') OK
END OF TEST