Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / webaudio / audiobuffersource-multi-channels.html
blob9d6a454c64ab46eb0326cfc0f9ffc48fd6725efe
1 <!DOCTYPE html>
3 <!--
4 Test AudioBufferSourceNode supports 5.1 channel.
5 -->
7 <html>
8 <head>
9 <script type="text/javascript" src="resources/audio-testing.js"></script>
10 <script type="text/javascript" src="resources/mix-testing.js"></script>
11 </head>
12 <body>
14 <script>
16 function runTest() {
17 if (!window.testRunner)
18 return;
20 testRunner.waitUntilDone();
22 window.jsTestAsync = true;
24 // Create offline audio context
25 var sampleRate = 44100.0;
26 var context = new OfflineAudioContext(6, sampleRate * toneLengthSeconds, sampleRate);
27 var toneBuffer = createToneBuffer(context, 440, toneLengthSeconds, 6);
29 var source = context.createBufferSource();
30 source.buffer = toneBuffer;
32 source.connect(context.destination);
33 source.start(0);
35 context.oncomplete = finishAudioTest;
36 context.startRendering();
39 runTest();
40 </script>
42 </body>
43 </html>