Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / webaudio / web-audio-is-playing.html
index fcf04f5..5364587 100644 (file)
         jsTestIsAsync = true;
 
         if (window.internals)
-            shouldBeFalse("window.internals.isPagePlayingAudio()");
+            shouldBeFalse("window.internals.pageMediaState().includes('IsPlayingAudio')");
 
         var context = new webkitAudioContext();
         var frequency = 300;
         var oscillator = context.createOscillator();
 
         if (window.internals)
-            shouldBeFalse("window.internals.isPagePlayingAudio()");
+            shouldBeFalse("window.internals.pageMediaState().includes('IsPlayingAudio')");
 
         oscillator.frequency.value = frequency;
         oscillator.type = 0;
         oscillator.connect(context.destination);
         oscillator.start(0);
 
-        shouldBecomeEqual("window.internals.isPagePlayingAudio()", "true", finishJSTest);
+        shouldBecomeEqual("window.internals.pageMediaState().includes('IsPlayingAudio')", "true", finishJSTest);
     </script>
     <script src="../resources/js-test-post.js"></script>
 </body>