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