| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Test Constructor: AnalyserNode</title> | 4 <title>Test Constructor: AnalyserNode</title> |
| 5 <script src="../../resources/testharness.js"></script> | 5 <script src="../../resources/testharness.js"></script> |
| 6 <script src="../../resources/testharnessreport.js"></script> | 6 <script src="../../resources/testharnessreport.js"></script> |
| 7 <script src="../resources/audit-util.js"></script> | 7 <script src="../resources/audit-util.js"></script> |
| 8 <script src="../resources/audit.js"></script> | 8 <script src="../resources/audit.js"></script> |
| 9 <script src="new-audionodeoptions.js"></script> | 9 <script src="new-audionodeoptions.js"></script> |
| 10 </head> | 10 </head> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 testInvalidConstructor(should, 'AnalyserNode', context); | 24 testInvalidConstructor(should, 'AnalyserNode', context); |
| 25 task.done(); | 25 task.done(); |
| 26 }); | 26 }); |
| 27 | 27 |
| 28 audit.define('default constructor', (task, should) => { | 28 audit.define('default constructor', (task, should) => { |
| 29 let prefix = 'node0'; | 29 let prefix = 'node0'; |
| 30 let node = testDefaultConstructor(should, 'AnalyserNode', context, { | 30 let node = testDefaultConstructor(should, 'AnalyserNode', context, { |
| 31 prefix: prefix, | 31 prefix: prefix, |
| 32 numberOfInputs: 1, | 32 numberOfInputs: 1, |
| 33 numberOfOutputs: 1, | 33 numberOfOutputs: 1, |
| 34 // TODO(crbug.com/706610) | 34 channelCount: 1, |
| 35 channelCount: 2, | |
| 36 channelCountMode: 'max', | 35 channelCountMode: 'max', |
| 37 channelInterpretation: 'speakers' | 36 channelInterpretation: 'speakers' |
| 38 }); | 37 }); |
| 39 | 38 |
| 40 testDefaultAttributes(should, node, prefix, [ | 39 testDefaultAttributes(should, node, prefix, [ |
| 41 {name: 'fftSize', value: 2048}, | 40 {name: 'fftSize', value: 2048}, |
| 42 {name: 'frequencyBinCount', value: 1024}, | 41 {name: 'frequencyBinCount', value: 1024}, |
| 43 {name: 'minDecibels', value: -100}, {name: 'maxDecibels', value: -30}, | 42 {name: 'minDecibels', value: -100}, {name: 'maxDecibels', value: -30}, |
| 44 { | 43 { |
| 45 // Compare against the single-precision float value since 0.8 isn't | 44 // Compare against the single-precision float value since 0.8 isn't |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 'node = new AnalyserNode(c, ' + JSON.stringify(options) + ')') | 167 'node = new AnalyserNode(c, ' + JSON.stringify(options) + ')') |
| 169 .throw('IndexSizeError'); | 168 .throw('IndexSizeError'); |
| 170 | 169 |
| 171 task.done(); | 170 task.done(); |
| 172 }); | 171 }); |
| 173 | 172 |
| 174 audit.run(); | 173 audit.run(); |
| 175 </script> | 174 </script> |
| 176 </body> | 175 </body> |
| 177 </html> | 176 </html> |
| OLD | NEW |