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

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

Issue 2581463002: Refactor WebAudio test directory (Closed)
Patch Set: Use correct path for wav result files Created 4 years 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
(Empty)
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <script src="../resources/js-test.js"></script>
6 <script src="resources/compatibility.js"></script>
7 <script src="resources/audit-util.js"></script>
8 <script src="resources/audio-testing.js"></script>
9 </head>
10
11 <body>
12 <div id="description"></div>
13 <div id="console"></div>
14
15 <script>
16 description("Tests garbage collection of MediaElementAudioSourceNode.");
17
18 function runTest() {
19 if (window.testRunner) {
20 testRunner.dumpAsText();
21 }
22
23 audioElement = document.createElement("audio");
24 context = new OfflineAudioContext(1, 1000, 44100);
25 source = context.createMediaElementSource(audioElement);
26 audioElement = null;
27 context = null;
28 source = null;
29 gc();
30
31 testPassed("MediaElementAudioSourceNode survived garbage collection.");
32
33 finishJSTest();
34 }
35
36 runTest();
37
38 </script>
39
40 </body>
41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698