blob: fb2c404eec994c32d57bdec10bcf0edbdd9cce9a [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>
biquad-highshelf.html
</title>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../resources/audit-util.js"></script>
<script src="../resources/audit.js"></script>
<script src="../resources/biquad-filters.js"></script>
<script src="../resources/biquad-testing.js"></script>
</head>
<body>
<script id="layout-test-code">
let audit = Audit.createTaskRunner();
audit.define(
{label: 'test', description: 'Biquad highshelf filter'},
function(task, should) {
// Create offline audio context.
let context = new OfflineAudioContext(
2, sampleRate * renderLengthSeconds, sampleRate);
// The filters we want to test.
let filterParameters = [
{cutoff: 0, q: 10, gain: 10},
{cutoff: 1, q: 10, gain: 10},
{cutoff: 0.25, q: 10, gain: 10},
];
createTestAndRun(context, 'highshelf', {
should: should,
threshold: 5.6633e-8,
filterParameters: filterParameters
}).then(task.done.bind(task));
});
audit.run();
</script>
</body>
</html>