Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / webaudio / biquad-peaking.html
blob2c91268b906dfb32d524cd0d99e71ac833af9e12
1 <!DOCTYPE html>
3 <html>
4 <head>
5 <script src="resources/compatibility.js"></script>
6 <script src="resources/audio-testing.js"></script>
7 <script src="../resources/js-test.js"></script>
8 <script src="resources/biquad-testing.js"></script>
9 </head>
11 <body>
13 <div id="description"></div>
14 <div id="console"></div>
16 <script>
17 description("Tests Biquad peaking filter.");
19 function runTest() {
20 if (window.testRunner) {
21 testRunner.dumpAsText();
22 testRunner.waitUntilDone();
25 window.jsTestIsAsync = true;
27 // Create offline audio context.
28 var context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
30 // The filters we want to test.
31 var filterParameters = [{cutoff : 0, q : 10, gain : 10 },
32 {cutoff : 1, q : 10, gain : 10 },
33 {cutoff : .5, q : 0, gain : 10 },
34 {cutoff : 0.25, q : 10, gain : 10 },
37 createTestAndRun(context, "peaking", filterParameters);
40 runTest();
41 successfullyParsed = true;
43 </script>
45 </body>
46 </html>