Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/mediaelementaudiosourcenode-gc.html

Issue 1865583002: Implement BaseAudioContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <script src="../resources/js-test.js"></script> 5 <script src="../resources/js-test.js"></script>
6 <script src="resources/compatibility.js"></script> 6 <script src="resources/compatibility.js"></script>
7 <script src="resources/audio-testing.js"></script> 7 <script src="resources/audio-testing.js"></script>
8 </head> 8 </head>
9 9
10 <body> 10 <body>
11 <div id="description"></div> 11 <div id="description"></div>
12 <div id="console"></div> 12 <div id="console"></div>
13 13
14 <script> 14 <script>
15 description("Tests garbage collection of MediaElementAudioSourceNode."); 15 description("Tests garbage collection of MediaElementAudioSourceNode.");
16 16
17 function runTest() { 17 function runTest() {
18 if (window.testRunner) { 18 if (window.testRunner) {
19 testRunner.dumpAsText(); 19 testRunner.dumpAsText();
20 } 20 }
21 21
22 audioElement = document.createElement("audio"); 22 audioElement = document.createElement("audio");
23 context = new OfflineAudioContext(1, 1000, 44100); 23 context = new AudioContext();
24 source = context.createMediaElementSource(audioElement); 24 source = context.createMediaElementSource(audioElement);
25 audioElement = null; 25 audioElement = null;
26 context = null; 26 context = null;
27 source = null; 27 source = null;
28 gc(); 28 gc();
29 29
30 testPassed("MediaElementAudioSourceNode survived garbage collection."); 30 testPassed("MediaElementAudioSourceNode survived garbage collection.");
31 31
32 finishJSTest(); 32 finishJSTest();
33 } 33 }
34 34
35 runTest(); 35 runTest();
36 36
37 </script> 37 </script>
38 38
39 </body> 39 </body>
40 </html> 40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698