Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / webaudio / offlineaudiocontext-constructor.html
blobe8e941f498c73a1daec557341dcea647c2cdf68c
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 <script src="resources/compatibility.js"></script>
6 </head>
7 <body>
8 <script>
9 description("Tests the OfflineAudioContext constructor");
11 // Make sure we don't crash when giving 0 as number of frames.
12 shouldThrow("new OfflineAudioContext(1, 0, 44100)");
13 // Make sure we don't throw exceptions for supported ranges of sample rates for an OfflineAudioContext.
14 shouldNotThrow("new OfflineAudioContext(2, 512, 3000)");
15 shouldNotThrow("new OfflineAudioContext(2, 512, 192000)");
16 shouldNotThrow("new OfflineAudioContext(2, 512, 8000)");
17 shouldNotThrow("new OfflineAudioContext(2, 512, 11025)");
18 shouldNotThrow("new OfflineAudioContext(2, 512, 22050)");
19 shouldNotThrow("new OfflineAudioContext(2, 512, 44100)");
20 shouldNotThrow("new OfflineAudioContext(2, 512, 48000)");
21 shouldNotThrow("new OfflineAudioContext(2, 512, 88200)");
22 shouldNotThrow("new OfflineAudioContext(2, 512, 96000)");
23 // Make sure we throw exceptions for non-finite sample rates.
24 shouldThrow("new OfflineAudioContext(1, 0, NaN)");
25 shouldThrow("new OfflineAudioContext(1, 0, Infinite)");
26 </script>
27 </body>
28 </html>