5 <script src=
"../resources/js-test.js"></script>
6 <script src=
"resources/compatibility.js"></script>
7 <script src=
"resources/audio-testing.js"></script>
11 <div id=
"description"></div>
12 <div id=
"console"></div>
15 description("Tests garbage collection of MediaElementAudioSourceNode.");
18 if (window
.testRunner
) {
19 testRunner
.dumpAsText();
22 audioElement
= document
.createElement("audio");
23 context
= new OfflineAudioContext(1, 1000, 44100);
24 source
= context
.createMediaElementSource(audioElement
);
30 testPassed("MediaElementAudioSourceNode survived garbage collection.");