blob: 140e5fd99f228c47516e44e273848e5f4fa10b16 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>
Test Oscillator Node: sine
</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.72, maxDiff: 3.7551e-6});
tester.runTest(
context, 'sine', 'Sine Oscillator with Exponential Sweep', task,
should);
});
audit.run();
</script>
</body>
</html>