Allow createBuffer to support rates from 3-192 kHz.

The spec requires a minimum range of 22.05-96 kHz. (http://webaudio.github.io/web-audio-api/#widl-AudioContext-createBuffer-AudioBuffer-unsigned-long-numberOfChannels-unsigned-long-length-float-sampleRate)

Add two new tests to verify that 3 kHz and 192 kHz are allowed and
update expected test results for allowed range.

BUG=344375

Review URL: https://codereview.chromium.org/201673004

git-svn-id: svn://svn.chromium.org/blink/trunk@169980 bbb929c8-8fbe-4397-9dbb-9b2b20218538
diff --git a/third_party/WebKit/LayoutTests/webaudio/dom-exceptions.html b/third_party/WebKit/LayoutTests/webaudio/dom-exceptions.html
index bba6c26..e1fc846 100644
--- a/third_party/WebKit/LayoutTests/webaudio/dom-exceptions.html
+++ b/third_party/WebKit/LayoutTests/webaudio/dom-exceptions.html
@@ -35,6 +35,9 @@
     // Invalid sample rate: NotSupportedError
     shouldThrow("context.createBuffer(1, 1, 1)");
     shouldThrow("context.createBuffer(1, 1, 1e6)");
+    // Check valid values from crbug.com/344375
+    shouldNotThrow("context.createBuffer(1, 1, 3000)");
+    shouldNotThrow("context.createBuffer(1, 1, 192000)");
     // Invalid number of frames: NotSupportedError
     shouldThrow("context.createBuffer(1, 0, context.sampleRate)");
     // Invalid ArrayBuffer (unspecified error)