[Cocoa] Deactivate the audio session before the WebProcess suspends.
[WebKit-https.git] / LayoutTests / platform / mac / media / audio-session-deactivated-when-suspended-expected.txt
1
2 RUN(internals.settings.setShouldDeactivateAudioSession(true))
3 RUN(video = document.querySelector("video"))
4 RUN(video.src = findMediaFile("video", "../../../media/content/test"))
5 RUN(video.play())
6 EVENT(playing)
7 EXPECTED (internals.audioSessionActive() == 'true') OK
8 RUN(internals.processWillSuspend())
9 EXPECTED (internals.audioSessionActive() == 'false') OK
10 RUN(internals.processDidResume())
11 EXPECTED (internals.audioSessionActive() == 'true') OK
12 END OF TEST
13