| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 // Analysers | 71 // Analysers |
| 72 node = context.createAnalyser(); | 72 node = context.createAnalyser(); |
| 73 // Invalid fftSize: IndexSizeError | 73 // Invalid fftSize: IndexSizeError |
| 74 shouldThrow("node.fftSize = 42"); | 74 shouldThrow("node.fftSize = 42"); |
| 75 shouldThrow("node.fftSize = 16"); | 75 shouldThrow("node.fftSize = 16"); |
| 76 shouldThrow("node.fftSize = 4096"); | 76 shouldThrow("node.fftSize = 4096"); |
| 77 | 77 |
| 78 shouldThrow("node.minDecibels = -10"); | 78 shouldThrow("node.minDecibels = -10"); |
| 79 shouldThrow("node.maxDecibels = -150"); | 79 shouldThrow("node.maxDecibels = -150"); |
| 80 shouldThrow("node.minDecibels = -30"); |
| 81 shouldThrow("node.maxDecibels = -100"); |
| 80 shouldThrow("node.smoothingTimeConstant = -0.1"); | 82 shouldThrow("node.smoothingTimeConstant = -0.1"); |
| 81 shouldThrow("node.smoothingTimeConstant = 1.5"); | 83 shouldThrow("node.smoothingTimeConstant = 1.5"); |
| 82 | 84 |
| 83 // AudioBuffers | 85 // AudioBuffers |
| 84 node = context.createBuffer(1,1, context.sampleRate); | 86 node = context.createBuffer(1,1, context.sampleRate); |
| 85 // Invalid channel index: IndexSizeError | 87 // Invalid channel index: IndexSizeError |
| 86 shouldThrow("node.getChannelData(2)"); | 88 shouldThrow("node.getChannelData(2)"); |
| 87 | 89 |
| 88 // AudioNode connections | 90 // AudioNode connections |
| 89 node = context.createGain(); | 91 node = context.createGain(); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 shouldNotThrow("conv = oc.createConvolver()"); | 179 shouldNotThrow("conv = oc.createConvolver()"); |
| 178 shouldThrow("conv.buffer = oc.createBuffer(1, 100, 22050)"); | 180 shouldThrow("conv.buffer = oc.createBuffer(1, 100, 22050)"); |
| 179 } | 181 } |
| 180 | 182 |
| 181 runTest(); | 183 runTest(); |
| 182 successfullyParsed = true; | 184 successfullyParsed = true; |
| 183 | 185 |
| 184 </script> | 186 </script> |
| 185 </body> | 187 </body> |
| 186 </html> | 188 </html> |
| OLD | NEW |