Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /webaudio/the-audio-api/the-audionode-interface/audionode-iframe.window.html - WPT Dashboard Interop Dashboard
test(function() {
const iframe =
document.body.appendChild(iframe);
// Create AudioContext and AudioNode from iframe
const context = new iframe.contentWindow.AudioContext();
const source = context.createOscillator();
source.connect(context.destination);
// AudioContext should be put closed state after iframe destroyed
document.body.removeChild(iframe);
assert_equals(context.state, 'closed');
}, 'Call a constructor from iframe page and then destroy the iframe');