| 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/testharness.js"></script> |
| 6 <script src="../../resources/testharnessreport.js"></script> |
| 6 <script src="../resources/audit-util.js"></script> | 7 <script src="../resources/audit-util.js"></script> |
| 7 <script src="../resources/audio-testing.js"></script> | 8 <script src="../resources/audio-testing.js"></script> |
| 8 </head> | 9 </head> |
| 9 | 10 |
| 10 <body> | 11 <body> |
| 11 <script> | 12 <script> |
| 12 description('Test disconnect() method on AudioNode destination.'); | |
| 13 window.jsTestIsAsync = true; | |
| 14 | 13 |
| 15 var audit = Audit.createTaskRunner(); | 14 var audit = Audit.createTaskRunner(); |
| 16 | 15 |
| 17 // Task 1: test disconnect() method. | 16 // Task 1: test disconnect() method. |
| 18 audit.defineTask('disconnect()', function (done) { | 17 audit.defineTask('disconnect()', function (done) { |
| 19 | 18 |
| 20 // Connect a source to multiple gain nodes, each connected to the | 19 // Connect a source to multiple gain nodes, each connected to the |
| 21 // destination. Then disconnect the source. The expected output should be | 20 // destination. Then disconnect the source. The expected output should be |
| 22 // all zeros since the source was disconnected. | 21 // all zeros since the source was disconnected. |
| 23 var context = new OfflineAudioContext(1, 128, 44100); | 22 var context = new OfflineAudioContext(1, 128, 44100); |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 g2.connect(g3); | 265 g2.connect(g3); |
| 267 g1.connect(g2); | 266 g1.connect(g2); |
| 268 context.startRendering().then(function () { | 267 context.startRendering().then(function () { |
| 269 // If we make it here, we passed. | 268 // If we make it here, we passed. |
| 270 Should("Disabled outputs handled", true) | 269 Should("Disabled outputs handled", true) |
| 271 .summarize("correctly", "inccorrectly"); | 270 .summarize("correctly", "inccorrectly"); |
| 272 }).then(taskDone); | 271 }).then(taskDone); |
| 273 }); | 272 }); |
| 274 | 273 |
| 275 audit.defineTask('finish', function (done) { | 274 audit.defineTask('finish', function (done) { |
| 276 finishJSTest(); | |
| 277 done(); | 275 done(); |
| 278 }); | 276 }); |
| 279 | 277 |
| 280 audit.runTasks(); | 278 audit.runTasks(); |
| 281 | 279 |
| 282 successfullyParsed = true; | 280 successfullyParsed = true; |
| 283 </script> | 281 </script> |
| 284 </body> | 282 </body> |
| 285 | 283 |
| 286 </html> | 284 </html> |
| OLD | NEW |