OLD | NEW |
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 Loading... |
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 Loading... |
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> |
OLD | NEW |