OfflineAudioContext does not validate allocation of destination buffer
[WebKit-https.git] / LayoutTests / webaudio / offlineaudiocontext-constructor.html
index 6805474..1af2653 100644 (file)
@@ -6,6 +6,8 @@
         <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)');