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

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

Issue 2895963003: Apply layout-test-tidy to LayoutTests/webaudio (Closed)
Patch Set: Created 3 years, 7 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 <html>
3 <head>
4 <title>
5 mediaelementaudiosourcenode-gc.html
6 </title>
7 <script src="../../resources/js-test.js"></script>
8 <script src="../resources/audit-util.js"></script>
9 </head>
10 <body>
11 <div id="description"></div>
12 <div id="console"></div>
13 <script id="layout-test-code">
14 description('Tests garbage collection of MediaElementAudioSourceNode.');
2 15
3 <html> 16 function runTest() {
4 <head> 17 if (window.testRunner) {
5 <script src="../../resources/js-test.js"></script> 18 testRunner.dumpAsText();
6 <script src="../resources/audit-util.js"></script> 19 }
7 </head>
8 20
9 <body> 21 audioElement = document.createElement('audio');
10 <div id="description"></div> 22 context = new OfflineAudioContext(1, 1000, 44100);
11 <div id="console"></div> 23 source = context.createMediaElementSource(audioElement);
24 audioElement = null;
25 context = null;
26 source = null;
27 gc();
12 28
13 <script> 29 testPassed('MediaElementAudioSourceNode survived garbage collection.');
14 description("Tests garbage collection of MediaElementAudioSourceNode.");
15 30
16 function runTest() { 31 finishJSTest();
17 if (window.testRunner) { 32 }
18 testRunner.dumpAsText();
19 }
20 33
21 audioElement = document.createElement("audio"); 34 runTest();
22 context = new OfflineAudioContext(1, 1000, 44100); 35 </script>
23 source = context.createMediaElementSource(audioElement); 36 </body>
24 audioElement = null;
25 context = null;
26 source = null;
27 gc();
28
29 testPassed("MediaElementAudioSourceNode survived garbage collection.");
30
31 finishJSTest();
32 }
33
34 runTest();
35
36 </script>
37
38 </body>
39 </html> 37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698