blob: 91d19e0dc23c6eddc6dd91300a4a240375a78112 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>
Test Oscillator Node: square
</title>
<script src="../../imported/w3c/web-platform-tests/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/buffer-loader.js"></script>
<script src="../resources/oscillator-testing.js"></script>
<script src="../resources/audio-file-utils.js"></script>
</head>
<body>
<script id="layout-test-code">
let audit = Audit.createTaskRunner();
let tester = OscillatorTestingUtils;
audit.define('test', (task, should) => {
let context = new OfflineAudioContext(
1, tester.sampleRate * tester.lengthInSeconds, tester.sampleRate);
// The thresholds are experimentally determined.
tester.setThresholds({snr: 129.71, maxDiff: 3.9638e-6});
tester.runTest(
context, 'square', 'Square Oscillator with Exponential Sweep', task,
should);
});
audit.run();
</script>
</body>
</html>