[iOS] don't get out of sync when interrupt/resume calls are not balanced
[WebKit-https.git] / LayoutTests / media / video-interruption-with-resume-allowing-play-expected.txt
index 747c775..9518a46 100644 (file)
@@ -15,5 +15,15 @@ RUN(internals.endMediaSessionInterruption('MayResumePlaying'))
 EVENT(playing)
 EXPECTED (video.paused == 'false') OK
 
+EXPECTED (video.paused == 'false') OK
+RUN(internals.beginMediaSessionInterruption())
+
+100ms timer fired...
+EXPECTED (video.paused == 'true') OK
+RUN(internals.endMediaSessionInterruption('MayResumePlaying'))
+
+EVENT(playing)
+EXPECTED (video.paused == 'false') OK
+
 END OF TEST