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