[iOS] Muted media playback can interrupt out-of-process audio
[WebKit-https.git] / Tools / TestWebKitAPI / Tests / WebKitLegacy / ios / AudioSessionCategoryIOS.mm
index c5264ec078810f8b8b5c70d9723c48fc57d9cffc..72c5dac0cdbe6d3169fae56e811b733ee63d0c09 100644 (file)
@@ -101,6 +101,14 @@ TEST(WebKitLegacy, AudioSessionCategoryIOS)
     Util::run(&didBeginPlaying);
 
     EXPECT_WK_STREQ(getAVAudioSessionCategoryAmbient(), [[getAVAudioSessionClass() sharedInstance] category]);
+
+    didBeginPlaying = false;
+
+    [uiWebView loadRequest:[NSURLRequest requestWithURL:[[NSBundle mainBundle] URLForResource:@"video-with-paused-audio-and-playing-muted" withExtension:@"html" subdirectory:@"TestWebKitAPI.resources"]]];
+
+    Util::run(&didBeginPlaying);
+
+    EXPECT_WK_STREQ(getAVAudioSessionCategoryAmbient(), [[getAVAudioSessionClass() sharedInstance] category]);
 }
 
 }