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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/audiobuffersource-multi-channels.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 <!--
4 Test AudioBufferSourceNode supports 5.1 channel.
5 -->
6
7 <html>
8 <head>
9 <script src="resources/audit-util.js"></script>
10 <script src="resources/audio-testing.js"></script>
11 <script type="text/javascript" src="resources/mix-testing.js"></script>
12 </head>
13 <body>
14
15 <script>
16
17 function runTest() {
18 if (!window.testRunner)
19 return;
20
21 testRunner.waitUntilDone();
22
23 window.jsTestAsync = true;
24
25 // Create offline audio context
26 var sampleRate = 44100.0;
27 var context = new OfflineAudioContext(6, sampleRate * toneLengthSeconds, sam pleRate);
28 var toneBuffer = createToneBuffer(context, 440, toneLengthSeconds, 6);
29
30 var source = context.createBufferSource();
31 source.buffer = toneBuffer;
32
33 source.connect(context.destination);
34 source.start(0);
35
36 context.oncomplete = finishAudioTest;
37 context.startRendering();
38 }
39
40 runTest();
41 </script>
42
43 </body>
44 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698