| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 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/audit.js"></script> |
| 8 <script type="text/javascript" src="../resources/scriptprocessornode-testing.js"
></script> | 9 <script src="../resources/scriptprocessornode-testing-audit.js"></script> |
| 9 </head> | 10 </head> |
| 10 | 11 |
| 11 <body> | 12 <body> |
| 13 <script> |
| 14 let audit = Audit.createTaskRunner(); |
| 12 | 15 |
| 13 <div id="description"></div> | 16 let sampleRate = 44100.0; |
| 14 <div id="console"></div> | 17 let sourceChannels = 8; |
| 18 let inputChannels = 2; |
| 19 let outputChannels = 6; |
| 15 | 20 |
| 16 <script> | 21 audit.define( |
| 17 description("Tests downmixing an 8-channel source connected to a JavaScriptAudio
Node with 2-channel input."); | 22 { |
| 23 label: 'test', |
| 24 description: |
| 25 'downmix 8-channel source to ScriprProcessNode with 2-channel input' |
| 26 }, |
| 27 (task, should) => { |
| 28 runJSNodeTest(should).then(() => task.done()); |
| 29 }); |
| 18 | 30 |
| 19 var sampleRate = 44100.0; | 31 audit.run(); |
| 20 var sourceChannels = 8; | |
| 21 var inputChannels = 2; | |
| 22 var outputChannels = 6; | |
| 23 | |
| 24 function runTest() { | |
| 25 if (window.testRunner) { | |
| 26 testRunner.dumpAsText(); | |
| 27 testRunner.waitUntilDone(); | |
| 28 } | |
| 29 | |
| 30 window.jsTestIsAsync = true; | |
| 31 | |
| 32 runJSNodeTest(); | |
| 33 } | |
| 34 | |
| 35 runTest(); | |
| 36 | 32 |
| 37 </script> | 33 </script> |
| 38 | 34 |
| 39 </body> | 35 </body> |
| 40 </html> | 36 </html> |
| OLD | NEW |