blob: fa5f3b1e64a2a86e561ee41ed5547b74c9c765c2 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="resources/compatibility.js"></script>
<script src="resources/audio-testing.js"></script>
<script src="../resources/js-test.js"></script>
<script src="resources/biquad-filters.js"></script>
<script src="resources/biquad-testing.js"></script>
</head>
<body>
<div id="description"></div>
<div id="console"></div>
<script>
description("Tests Biquad allpass filter.");
function runTest() {
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
window.jsTestIsAsync = true;
// Create offline audio context.
var context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
var filterParameters = [{cutoff : 0, q : 10, gain : 1 },
{cutoff : 1, q : 10, gain : 1 },
{cutoff : .5, q : 0, gain : 1 },
{cutoff : 0.25, q : 10, gain : 1 },
];
createTestAndRun(context, "allpass", filterParameters);
}
runTest();
successfullyParsed = true;
</script>
</body>
</html>