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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/cycle-connection-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 <script src="../resources/js-test.js"></script>
3 <script>
4 description('Cycles of AudioNode connections should be collected.');
5 var context = new OfflineAudioContext(2, 44100, 44100);
6 gc();
7 var initialCount = internals.audioHandlerCount();
8 createCycle();
9 debug('A cycle was created:');
10 shouldBeTrue('internals.audioHandlerCount() > initialCount');
11 gc();
12 debug('GC happened:');
13 shouldBe('internals.audioHandlerCount()', 'initialCount');
14
15 function createCycle() {
16 var source = context.createBufferSource();
17 var delay1 = context.createDelay();
18 var delay2 = context.createDelay();
19 source.connect(delay1);
20 delay1.connect(delay2);
21 delay2.connect(delay1);
22 delay1.connect(context.destination);
23 }
24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698