| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 | 3 |
| 4 <head> | 4 <head> |
| 5 <script src="../resources/js-test.js"></script> | 5 <script src="../resources/js-test.js"></script> |
| 6 <script src="resources/compatibility.js"></script> | 6 <script src="resources/compatibility.js"></script> |
| 7 <script src="resources/audio-testing.js"></script> | 7 <script src="resources/audio-testing.js"></script> |
| 8 </head> | 8 </head> |
| 9 | 9 |
| 10 <body> | 10 <body> |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 }).throw('InvalidAccessError'); | 248 }).throw('InvalidAccessError'); |
| 249 | 249 |
| 250 // The output index is out of bound. An exception should be thrown. | 250 // The output index is out of bound. An exception should be thrown. |
| 251 Should('splitter.disconnect(merger, 3, 0)', function () { | 251 Should('splitter.disconnect(merger, 3, 0)', function () { |
| 252 splitter.disconnect(merger, 3, 0); | 252 splitter.disconnect(merger, 3, 0); |
| 253 }).throw('IndexSizeError'); | 253 }).throw('IndexSizeError'); |
| 254 | 254 |
| 255 done(); | 255 done(); |
| 256 }); | 256 }); |
| 257 | 257 |
| 258 audit.defineTask('disabled-outputs', function (taskDone) { |
| 259 // See crbug.com/656652 |
| 260 var context = new OfflineAudioContext(2, 1024, 44100); |
| 261 var g1 = context.createGain(); |
| 262 var g2 = context.createGain(); |
| 263 g1.connect(g2); |
| 264 g1.disconnect(g2); |
| 265 var g3 = context.createGain(); |
| 266 g2.connect(g3); |
| 267 g1.connect(g2); |
| 268 context.startRendering().then(function () { |
| 269 // If we make it here, we passed. |
| 270 Should("Disabled outputs handled", true) |
| 271 .summarize("correctly", "inccorrectly"); |
| 272 }).then(taskDone); |
| 273 }); |
| 274 |
| 258 audit.defineTask('finish', function (done) { | 275 audit.defineTask('finish', function (done) { |
| 259 finishJSTest(); | 276 finishJSTest(); |
| 260 done(); | 277 done(); |
| 261 }); | 278 }); |
| 262 | 279 |
| 263 audit.runTasks( | 280 audit.runTasks(); |
| 264 'disconnect()', | |
| 265 'disconnect(output)', | |
| 266 'disconnect(AudioNode)', | |
| 267 'disconnect(AudioNode, output)', | |
| 268 'disconnect(AudioNode, output, input)', | |
| 269 'exceptions', | |
| 270 'finish' | |
| 271 ); | |
| 272 | 281 |
| 273 successfullyParsed = true; | 282 successfullyParsed = true; |
| 274 </script> | 283 </script> |
| 275 </body> | 284 </body> |
| 276 | 285 |
| 277 </html> | 286 </html> |
| OLD | NEW |