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> |