Unreviewed gardening; r234534 changed the policy for what audio session is set when a
authorjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Aug 2018 17:06:28 +0000 (17:06 +0000)
committerjer.noble@apple.com <jer.noble@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 3 Aug 2018 17:06:28 +0000 (17:06 +0000)
media element is paused. Updating the test to reflect the new policy.

* TestWebKitAPI/Tests/WebKitLegacy/ios/AudioSessionCategoryIOS.mm:
(TestWebKitAPI::TEST):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@234547 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WebKitLegacy/ios/AudioSessionCategoryIOS.mm

index 24723e8..ca8e5ce 100644 (file)
@@ -1,3 +1,11 @@
+2018-08-03  Jer Noble  <jer.noble@apple.com>
+
+        Unreviewed gardening; r234534 changed the policy for what audio session is set when a
+        media element is paused. Updating the test to reflect the new policy.
+
+        * TestWebKitAPI/Tests/WebKitLegacy/ios/AudioSessionCategoryIOS.mm:
+        (TestWebKitAPI::TEST):
+
 2018-08-03  Zalan Bujtas  <zalan@apple.com>
 
         [LFC][Floating] Now that the document renderer belongs to "complicated cases", adjust viewport stretching.
index 3839f18..cd96bf4 100644 (file)
@@ -122,8 +122,8 @@ TEST(WebKitLegacy, AudioSessionCategoryIOS)
 
     Util::run(&didBeginPlaying);
 
-    waitUntilAudioSessionCategoryIsEqualTo(getAVAudioSessionCategoryAmbient());
-    EXPECT_WK_STREQ(getAVAudioSessionCategoryAmbient(), [[getAVAudioSessionClass() sharedInstance] category]);
+    waitUntilAudioSessionCategoryIsEqualTo(getAVAudioSessionCategoryPlayback());
+    EXPECT_WK_STREQ(getAVAudioSessionCategoryPlayback(), [[getAVAudioSessionClass() sharedInstance] category]);
 }
 
 }