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

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

Issue 2815493002: Move layout tests that use 'js-test.js' to |internals| directory (Closed)
Patch Set: Path fixed Created 3 years, 8 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
(Empty)
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <script src="../../resources/js-test.js"></script>
6 <script src="../resources/audit-util.js"></script>
7 <script src="../resources/audio-testing.js"></script>
8 </head>
9
10 <body>
11 <div id="description"></div>
12 <div id="console"></div>
13
14 <script>
15 description("Tests garbage collection of MediaElementAudioSourceNode.");
16
17 function runTest() {
18 if (window.testRunner) {
19 testRunner.dumpAsText();
20 }
21
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();
29
30 testPassed("MediaElementAudioSourceNode survived garbage collection.");
31
32 finishJSTest();
33 }
34
35 runTest();
36
37 </script>
38
39 </body>
40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698