blob: 1af2653db450888d0fc0e2695a41714d84b00de6 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>offlineaudiodestinationnode-crash</title>
<script src="../resources/js-test-pre.js"></script>
<script>
description('This tests that passing zero to the "numberOfFrames" parameter of the OfflineAudioContext constructor does not cause a crash.');
shouldThrow('new webkitOfflineAudioContext(1, 0, 44100)');
shouldThrow('new webkitOfflineAudioContext(1, -1, 44100)');
shouldThrow('new webkitOfflineAudioContext(1, 99999999999, 44100)');
shouldThrow('new webkitOfflineAudioContext(0, 1, 44100)');
shouldThrow('new webkitOfflineAudioContext(1, 1, 0)');
shouldNotThrow('new webkitOfflineAudioContext(1, 1, 44100)');
testPassed('did not crash');
</script>
</head>
<body>
</body>
</html>