4 <script src="../resources/js-test-pre.js"></script>
8 description("Testing Page::isPlayingAudio() with web audio");
13 shouldBeFalse("window.internals.pageMediaState().includes('IsPlayingAudio')");
15 var context = new webkitAudioContext();
17 var oscillator = context.createOscillator();
20 shouldBeFalse("window.internals.pageMediaState().includes('IsPlayingAudio')");
22 oscillator.frequency.value = frequency;
24 oscillator.connect(context.destination);
27 shouldBecomeEqual("window.internals.pageMediaState().includes('IsPlayingAudio')", "true", finishJSTest);
29 <script src="../resources/js-test-post.js"></script>