blob: 3a03deaf29d975da05cc554e03c401d16a736dc3 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../resources/js-test.js"></script>
<script>
description("Basic testing for OfflineAudioContext.length");
shouldNotThrow("context = new OfflineAudioContext({ length: 100, sampleRate: 44100 })");
shouldBe("context.length", "100");
shouldNotThrow("context = new OfflineAudioContext({ length: 1000, sampleRate: 44100 })");
shouldBe("context.length", "1000");
</script>
</body>
</html>