5 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css"/>
6 <script src="resources/audio-testing.js"></script>
7 <script src="../fast/js/resources/js-test-pre.js"></script>
8 <script src="resources/biquad-testing.js"></script>
13 <div id="description"></div>
14 <div id="console"></div>
17 description("Tests Biquad notch filter.");
20 if (window.testRunner) {
21 testRunner.dumpAsText();
22 testRunner.waitUntilDone();
25 window.jsTestIsAsync = true;
27 // Create offline audio context.
28 var context = new webkitOfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
30 // Dummy filter to get filter type constant
31 var f = context.createBiquadFilter();
33 var filterParameters = [{cutoff : 0, q : 10, gain : 1 },
34 {cutoff : 1, q : 10, gain : 1 },
35 {cutoff : .5, q : 0, gain : 1 },
36 {cutoff : 0.25, q : 10, gain : 1 },
39 createTestAndRun(context, f.NOTCH, filterParameters);
43 successfullyParsed = true;
47 <script src="../fast/js/resources/js-test-post.js"></script>