| <script src="resources/audio-testing.js"></script> |
| <script src="../resources/js-test.js"></script> |
| <script src="resources/biquad-testing.js"></script> |
| <div id="description"></div> |
| description("Tests Biquad highpass filter."); |
| window.jsTestIsAsync = true; |
| // Create offline audio context. |
| var context = new webkitOfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate); |
| // Dummy filter to get filter type constant |
| var f = context.createBiquadFilter(); |
| // The filters we want to test. |
| var filterParameters = [{cutoff : 0, q : 1, gain : 1 }, |
| {cutoff : 1, q : 1, gain : 1 }, |
| {cutoff : 0.25, q : 1, gain : 1 }, |
| createTestAndRun(context, "highpass", filterParameters); |