Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / webaudio / up-mixing-mono-51.html
blobc317d05405b8e38d7eee17616bc81726f7c65f29
1 <!DOCTYPE html>
3 <!--
4 Test up mixing from mono to 5.1.
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, 1);
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>