Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Unified Diff: LayoutTests/webaudio/offlineaudiocontext-constructor-crash.html

Issue 27039002: Fix crash when the OfflineAudioContext constructor is given 0 as numberOfFrames (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/webaudio/offlineaudiocontext-constructor-crash.html
diff --git a/LayoutTests/crypto/worker-random-values-types.html b/LayoutTests/webaudio/offlineaudiocontext-constructor-crash.html
similarity index 54%
copy from LayoutTests/crypto/worker-random-values-types.html
copy to LayoutTests/webaudio/offlineaudiocontext-constructor-crash.html
index 1b6ff3cecfea7fb1203c415da00de8e8ceca401f..75b43ec027db3d54fff49376f7429ff5c034339a 100644
--- a/LayoutTests/crypto/worker-random-values-types.html
+++ b/LayoutTests/webaudio/offlineaudiocontext-constructor-crash.html
@@ -4,10 +4,11 @@
<script src="../fast/js/resources/js-test-pre.js"></script>
</head>
<body>
-<p id="description"></p>
-<div id="console"></div>
<script>
- worker = startWorker("resources/random-values-types.js");
+description("Checks that the OfflineAudioContext does not crash on bad input");
Raymond Toy (Google) 2013/10/11 20:04:40 I think this file should not include "crash" in th
Inactive 2013/10/11 20:48:18 Done.
+
+// 0 as number of frames.
+shouldThrow("new webkitOfflineAudioContext(0, 0, 46000)");
Raymond Toy (Google) 2013/10/11 20:04:40 Why 46000 for the sample rate? I would choose a mo
Inactive 2013/10/11 20:48:18 Done.
</script>
<script src="../fast/js/resources/js-test-post.js"></script>
</body>

Powered by Google App Engine
This is Rietveld 408576698