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

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

Issue 963043003: Add [TypeChecking=Unrestricted] to OfflineAudioContext (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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/webaudio/offlineaudiocontext-constructor.html b/LayoutTests/webaudio/offlineaudiocontext-constructor.html
index fa3234cad324f6ff6a91215cdafbf226dd757746..e8e941f498c73a1daec557341dcea647c2cdf68c 100644
--- a/LayoutTests/webaudio/offlineaudiocontext-constructor.html
+++ b/LayoutTests/webaudio/offlineaudiocontext-constructor.html
@@ -20,6 +20,9 @@ shouldNotThrow("new OfflineAudioContext(2, 512, 44100)");
shouldNotThrow("new OfflineAudioContext(2, 512, 48000)");
shouldNotThrow("new OfflineAudioContext(2, 512, 88200)");
shouldNotThrow("new OfflineAudioContext(2, 512, 96000)");
+// Make sure we throw exceptions for non-finite sample rates.
+shouldThrow("new OfflineAudioContext(1, 0, NaN)");
+shouldThrow("new OfflineAudioContext(1, 0, Infinite)");
</script>
</body>
</html>
« 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