OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 | |
3 <html> | |
4 <head> | |
5 <script src="../resources/js-test.js"></script> | |
6 <script src="resources/compatibility.js"></script> | |
7 <script src="resources/audit-util.js"></script> | |
8 <script src="resources/audio-testing.js"></script> | |
9 <script src="resources/biquad-filters.js"></script> | |
10 <script src="resources/biquad-testing.js"></script> | |
11 </head> | |
12 | |
13 <body> | |
14 | |
15 <div id="description"></div> | |
16 <div id="console"></div> | |
17 | |
18 <script> | |
19 description("Tests Biquad bandpass filter."); | |
20 | |
21 function runTest() { | |
22 if (window.testRunner) { | |
23 testRunner.dumpAsText(); | |
24 testRunner.waitUntilDone(); | |
25 } | |
26 | |
27 window.jsTestIsAsync = true; | |
28 | |
29 // Create offline audio context. | |
30 var context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, s
ampleRate); | |
31 | |
32 // The filters we want to test. | |
33 var filterParameters = [{cutoff : 0, q : 0, gain : 1 }, | |
34 {cutoff : 1, q : 0, gain : 1 }, | |
35 {cutoff : 0.5, q : 0, gain : 1 }, | |
36 {cutoff : 0.25, q : 1, gain : 1 }, | |
37 ]; | |
38 | |
39 createTestAndRun(context, "bandpass", { | |
40 threshold: 2.2501e-8, | |
41 filterParameters: filterParameters | |
42 }); | |
43 } | |
44 | |
45 runTest(); | |
46 successfullyParsed = true; | |
47 | |
48 </script> | |
49 | |
50 </body> | |
51 </html> | |
OLD | NEW |