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

Side by Side 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, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/webaudio/offlineaudiocontext-constructor-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 <script src="resources/compatibility.js"></script> 5 <script src="resources/compatibility.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <script> 8 <script>
9 description("Tests the OfflineAudioContext constructor"); 9 description("Tests the OfflineAudioContext constructor");
10 10
11 // Make sure we don't crash when giving 0 as number of frames. 11 // Make sure we don't crash when giving 0 as number of frames.
12 shouldThrow("new OfflineAudioContext(1, 0, 44100)"); 12 shouldThrow("new OfflineAudioContext(1, 0, 44100)");
13 // Make sure we don't throw exceptions for supported ranges of sample rates for an OfflineAudioContext. 13 // Make sure we don't throw exceptions for supported ranges of sample rates for an OfflineAudioContext.
14 shouldNotThrow("new OfflineAudioContext(2, 512, 3000)"); 14 shouldNotThrow("new OfflineAudioContext(2, 512, 3000)");
15 shouldNotThrow("new OfflineAudioContext(2, 512, 192000)"); 15 shouldNotThrow("new OfflineAudioContext(2, 512, 192000)");
16 shouldNotThrow("new OfflineAudioContext(2, 512, 8000)"); 16 shouldNotThrow("new OfflineAudioContext(2, 512, 8000)");
17 shouldNotThrow("new OfflineAudioContext(2, 512, 11025)"); 17 shouldNotThrow("new OfflineAudioContext(2, 512, 11025)");
18 shouldNotThrow("new OfflineAudioContext(2, 512, 22050)"); 18 shouldNotThrow("new OfflineAudioContext(2, 512, 22050)");
19 shouldNotThrow("new OfflineAudioContext(2, 512, 44100)"); 19 shouldNotThrow("new OfflineAudioContext(2, 512, 44100)");
20 shouldNotThrow("new OfflineAudioContext(2, 512, 48000)"); 20 shouldNotThrow("new OfflineAudioContext(2, 512, 48000)");
21 shouldNotThrow("new OfflineAudioContext(2, 512, 88200)"); 21 shouldNotThrow("new OfflineAudioContext(2, 512, 88200)");
22 shouldNotThrow("new OfflineAudioContext(2, 512, 96000)"); 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)");
23 </script> 26 </script>
24 </body> 27 </body>
25 </html> 28 </html>
OLDNEW
« 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