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

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

Issue 225093020: Remove 2-arg createBuffer from WebAudio (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove unused var Created 6 years, 8 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/compatibility.js"></script> 4 <script src="resources/compatibility.js"></script>
5 <script src="resources/audio-testing.js"></script> 5 <script src="resources/audio-testing.js"></script>
6 <script src="../resources/js-test.js"></script> 6 <script src="../resources/js-test.js"></script>
7 <script src="resources/biquad-testing.js"></script> 7 <script src="resources/biquad-testing.js"></script>
8 </head> 8 </head>
9 9
10 <body> 10 <body>
(...skipping 22 matching lines...) Expand all
33 // Invalid number of channels: NotSupportedError 33 // Invalid number of channels: NotSupportedError
34 shouldThrow("context.createBuffer(99, 1, context.sampleRate)"); 34 shouldThrow("context.createBuffer(99, 1, context.sampleRate)");
35 // Invalid sample rate: NotSupportedError 35 // Invalid sample rate: NotSupportedError
36 shouldThrow("context.createBuffer(1, 1, 1)"); 36 shouldThrow("context.createBuffer(1, 1, 1)");
37 shouldThrow("context.createBuffer(1, 1, 1e6)"); 37 shouldThrow("context.createBuffer(1, 1, 1e6)");
38 // Check valid values from crbug.com/344375 38 // Check valid values from crbug.com/344375
39 shouldNotThrow("context.createBuffer(1, 1, 3000)"); 39 shouldNotThrow("context.createBuffer(1, 1, 3000)");
40 shouldNotThrow("context.createBuffer(1, 1, 192000)"); 40 shouldNotThrow("context.createBuffer(1, 1, 192000)");
41 // Invalid number of frames: NotSupportedError 41 // Invalid number of frames: NotSupportedError
42 shouldThrow("context.createBuffer(1, 0, context.sampleRate)"); 42 shouldThrow("context.createBuffer(1, 0, context.sampleRate)");
43 // Invalid ArrayBuffer (unspecified error) 43 // 2-arg createBuffer not allowed.
44 shouldThrow("context.createBuffer(new ArrayBuffer(100), true)"); 44 shouldThrow("context.createBuffer(new ArrayBuffer(100), true)");
45 // Invalid ArrayBuffer (unspecified error) 45 // Invalid ArrayBuffer (unspecified error)
46 shouldThrow("context.decodeAudioData(null, function() {}, function () {})"); 46 shouldThrow("context.decodeAudioData(null, function() {}, function () {})");
47 // Invalid sources (unspecified error) 47 // Invalid sources (unspecified error)
48 shouldThrow("context.createMediaElementSource(null)"); 48 shouldThrow("context.createMediaElementSource(null)");
49 shouldThrow("context.createMediaStreamSource(null)"); 49 shouldThrow("context.createMediaStreamSource(null)");
50 // Invalid buffer size: IndexSizeError 50 // Invalid buffer size: IndexSizeError
51 shouldThrow("context.createScriptProcessor(1, 1, 1)"); 51 shouldThrow("context.createScriptProcessor(1, 1, 1)");
52 // Invalid number of inputs and outputs: IndexSizeError 52 // Invalid number of inputs and outputs: IndexSizeError
53 shouldThrow("context.createScriptProcessor(4096, 100, 1)"); 53 shouldThrow("context.createScriptProcessor(4096, 100, 1)");
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 shouldNotThrow("conv = oc.createConvolver()"); 179 shouldNotThrow("conv = oc.createConvolver()");
180 shouldThrow("conv.buffer = oc.createBuffer(1, 100, 22050)"); 180 shouldThrow("conv.buffer = oc.createBuffer(1, 100, 22050)");
181 } 181 }
182 182
183 runTest(); 183 runTest();
184 successfullyParsed = true; 184 successfullyParsed = true;
185 185
186 </script> 186 </script>
187 </body> 187 </body>
188 </html> 188 </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