Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / webaudio / mediaelementaudiosourcenode-gc.html
blobd6fefe9df16e95ae35bcd74e09f780dd4539123c
1 <!DOCTYPE html>
3 <html>
4 <head>
5 <script src="../resources/js-test.js"></script>
6 <script src="resources/compatibility.js"></script>
7 <script src="resources/audio-testing.js"></script>
8 </head>
10 <body>
11 <div id="description"></div>
12 <div id="console"></div>
14 <script>
15 description("Tests garbage collection of MediaElementAudioSourceNode.");
17 function runTest() {
18 if (window.testRunner) {
19 testRunner.dumpAsText();
22 audioElement = document.createElement("audio");
23 context = new OfflineAudioContext(1, 1000, 44100);
24 source = context.createMediaElementSource(audioElement);
25 audioElement = null;
26 context = null;
27 source = null;
28 gc();
30 testPassed("MediaElementAudioSourceNode survived garbage collection.");
32 finishJSTest();
35 runTest();
37 </script>
39 </body>
40 </html>