| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 mode = "fancy"; | 106 mode = "fancy"; |
| 107 shouldThrow("node.channelCountMode = mode"); | 107 shouldThrow("node.channelCountMode = mode"); |
| 108 shouldThrow("node.channelInterpretation = mode"); | 108 shouldThrow("node.channelInterpretation = mode"); |
| 109 | 109 |
| 110 // Destination: IndexSizeError | 110 // Destination: IndexSizeError |
| 111 shouldThrow("context.destination.channelCount = 99"); | 111 shouldThrow("context.destination.channelCount = 99"); |
| 112 | 112 |
| 113 // Delay nodes are tested elsewhere, so don't duplicate that work here. | 113 // Delay nodes are tested elsewhere, so don't duplicate that work here. |
| 114 | 114 |
| 115 // OfflineAudioContext | 115 // OfflineAudioContext |
| 116 // Max supported channels |
| 117 shouldNotThrow("new OfflineAudioContext(32, 100, context.sampleRate)"); |
| 116 // Invalid number of channels (unspecified error) | 118 // Invalid number of channels (unspecified error) |
| 117 shouldThrow("new OfflineAudioContext(99, 100, context.sampleRate)"); | 119 shouldThrow("new OfflineAudioContext(99, 100, context.sampleRate)"); |
| 118 // Invalid sample rate. (unspecified error) | 120 // Invalid sample rate. (unspecified error) |
| 119 shouldThrow("new OfflineAudioContext(1, 100, 1)"); | 121 shouldThrow("new OfflineAudioContext(1, 100, 1)"); |
| 120 shouldThrow("new OfflineAudioContext(1, 100, 1e6)"); | 122 shouldThrow("new OfflineAudioContext(1, 100, 1e6)"); |
| 121 // Invalid frame length (crbug.com/351277) | 123 // Invalid frame length (crbug.com/351277) |
| 122 shouldThrow("new OfflineAudioContext(1, -88200000000000, 44100)"); | 124 shouldThrow("new OfflineAudioContext(1, -88200000000000, 44100)"); |
| 123 | 125 |
| 124 // WaveShaper types | 126 // WaveShaper types |
| 125 node = context.createWaveShaper(); | 127 node = context.createWaveShaper(); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 shouldNotThrow("conv = oc.createConvolver()"); | 181 shouldNotThrow("conv = oc.createConvolver()"); |
| 180 shouldThrow("conv.buffer = oc.createBuffer(1, 100, 22050)"); | 182 shouldThrow("conv.buffer = oc.createBuffer(1, 100, 22050)"); |
| 181 } | 183 } |
| 182 | 184 |
| 183 runTest(); | 185 runTest(); |
| 184 successfullyParsed = true; | 186 successfullyParsed = true; |
| 185 | 187 |
| 186 </script> | 188 </script> |
| 187 </body> | 189 </body> |
| 188 </html> | 190 </html> |
| OLD | NEW |