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

Unified Diff: LayoutTests/webaudio/offlineaudiocontext-constructor.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: Fix nits 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
« no previous file with comments | « no previous file | LayoutTests/webaudio/offlineaudiocontext-constructor-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/webaudio/offlineaudiocontext-constructor.html
diff --git a/LayoutTests/crypto/worker-random-values-types.html b/LayoutTests/webaudio/offlineaudiocontext-constructor.html
similarity index 52%
copy from LayoutTests/crypto/worker-random-values-types.html
copy to LayoutTests/webaudio/offlineaudiocontext-constructor.html
index 1b6ff3cecfea7fb1203c415da00de8e8ceca401f..4d73cec08946a7962258ec5cd9c6553f8dd45f87 100644
--- a/LayoutTests/crypto/worker-random-values-types.html
+++ b/LayoutTests/webaudio/offlineaudiocontext-constructor.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("Tests the OfflineAudioContext constructor");
+
+// Make sure we don't crash when giving 0 as number of frames.
+shouldThrow("new webkitOfflineAudioContext(1, 0, 44100)");
</script>
<script src="../fast/js/resources/js-test-post.js"></script>
</body>
« no previous file with comments | « no previous file | LayoutTests/webaudio/offlineaudiocontext-constructor-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698