blob: 14d00ae7f8b228899d6d602d6e642aac049a3705 [file] [log] [blame]
<!DOCTYPE html>
<html>
<script src="../resources/js-test.js"></script>
<body>
<script>
description("Tests that we do not crash when using a very large sample rate");
jsTestIsAsync = true;
context = new AudioContext({ sampleRate: 384000 });
shouldBe("context.sampleRate", "384000");
node = new ConstantSourceNode(context, { offset: 0.5 });
node.connect(context.destination);
node.start();
setTimeout(() => {
shouldBeEqualToString("context.state", "running");
finishJSTest();
}, 100);
</script>
</body>
</html>