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

Side by Side Diff: LayoutTests/webaudio/dom-exceptions.html

Issue 201673004: Allow createBuffer to support rates from 3-192 kHz. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/webaudio/dom-exceptions-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 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="resources/audio-testing.js"></script> 4 <script src="resources/audio-testing.js"></script>
5 <script src="../resources/js-test.js"></script> 5 <script src="../resources/js-test.js"></script>
6 <script src="resources/biquad-testing.js"></script> 6 <script src="resources/biquad-testing.js"></script>
7 </head> 7 </head>
8 8
9 <body> 9 <body>
10 10
(...skipping 16 matching lines...) Expand all
27 context = new webkitAudioContext(); 27 context = new webkitAudioContext();
28 otherContext = new webkitAudioContext(); 28 otherContext = new webkitAudioContext();
29 29
30 // Test creation of various objects 30 // Test creation of various objects
31 31
32 // Invalid number of channels: NotSupportedError 32 // Invalid number of channels: NotSupportedError
33 shouldThrow("context.createBuffer(99, 1, context.sampleRate)"); 33 shouldThrow("context.createBuffer(99, 1, context.sampleRate)");
34 // Invalid sample rate: NotSupportedError 34 // Invalid sample rate: NotSupportedError
35 shouldThrow("context.createBuffer(1, 1, 1)"); 35 shouldThrow("context.createBuffer(1, 1, 1)");
36 shouldThrow("context.createBuffer(1, 1, 1e6)"); 36 shouldThrow("context.createBuffer(1, 1, 1e6)");
37 // Check valid values from crbug.com/344375
38 shouldNotThrow("context.createBuffer(1, 1, 3000)");
39 shouldNotThrow("context.createBuffer(1, 1, 192000)");
37 // Invalid number of frames: NotSupportedError 40 // Invalid number of frames: NotSupportedError
38 shouldThrow("context.createBuffer(1, 0, context.sampleRate)"); 41 shouldThrow("context.createBuffer(1, 0, context.sampleRate)");
39 // Invalid ArrayBuffer (unspecified error) 42 // Invalid ArrayBuffer (unspecified error)
40 shouldThrow("context.createBuffer(new ArrayBuffer(100), true)"); 43 shouldThrow("context.createBuffer(new ArrayBuffer(100), true)");
41 // Invalid ArrayBuffer (unspecified error) 44 // Invalid ArrayBuffer (unspecified error)
42 shouldThrow("context.decodeAudioData(null, function() {}, function () {})"); 45 shouldThrow("context.decodeAudioData(null, function() {}, function () {})");
43 // Invalid sources (unspecified error) 46 // Invalid sources (unspecified error)
44 shouldThrow("context.createMediaElementSource(null)"); 47 shouldThrow("context.createMediaElementSource(null)");
45 shouldThrow("context.createMediaStreamSource(null)"); 48 shouldThrow("context.createMediaStreamSource(null)");
46 // Invalid buffer size: IndexSizeError 49 // Invalid buffer size: IndexSizeError
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 shouldNotThrow("conv = oc.createConvolver()"); 176 shouldNotThrow("conv = oc.createConvolver()");
174 shouldThrow("conv.buffer = oc.createBuffer(1, 100, 22050)"); 177 shouldThrow("conv.buffer = oc.createBuffer(1, 100, 22050)");
175 } 178 }
176 179
177 runTest(); 180 runTest();
178 successfullyParsed = true; 181 successfullyParsed = true;
179 182
180 </script> 183 </script>
181 </body> 184 </body>
182 </html> 185 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/webaudio/dom-exceptions-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698