OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Test Constructor: MediaStreamAudioDestinationNode</title> | 4 <title>Test Constructor: MediaStreamAudioDestinationNode</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="audionodeoptions.js"></script> | 9 <script src="audionodeoptions.js"></script> |
10 </head> | 10 </head> |
(...skipping 16 matching lines...) Expand all Loading... |
27 }); | 27 }); |
28 | 28 |
29 audit.define('default constructor', (task, should) => { | 29 audit.define('default constructor', (task, should) => { |
30 let prefix = 'node0'; | 30 let prefix = 'node0'; |
31 let node = testDefaultConstructor( | 31 let node = testDefaultConstructor( |
32 should, 'MediaStreamAudioDestinationNode', context, { | 32 should, 'MediaStreamAudioDestinationNode', context, { |
33 prefix: prefix, | 33 prefix: prefix, |
34 numberOfInputs: 1, | 34 numberOfInputs: 1, |
35 numberOfOutputs: 1, | 35 numberOfOutputs: 1, |
36 channelCount: 2, | 36 channelCount: 2, |
37 channelCountMode: 'max', | 37 channelCountMode: 'explicit', |
38 channelInterpretation: 'speakers' | 38 channelInterpretation: 'speakers' |
39 }); | 39 }); |
40 | 40 |
41 testDefaultAttributes(should, node, prefix, []); | 41 testDefaultAttributes(should, node, prefix, []); |
42 | 42 |
43 task.done(); | 43 task.done(); |
44 }); | 44 }); |
45 | 45 |
46 audit.define('test AudioNodeOptions', (task, should) => { | 46 audit.define('test AudioNodeOptions', (task, should) => { |
47 testAudioNodeOptions( | 47 testAudioNodeOptions( |
48 should, context, 'MediaStreamAudioDestinationNode', { | 48 should, context, 'MediaStreamAudioDestinationNode', { |
49 channelCount: { | 49 channelCount: { |
50 // An arbitrary but valid, non-default count for this node. | 50 // An arbitrary but valid, non-default count for this node. |
51 value: 7 | 51 value: 7 |
52 } | 52 } |
53 }); | 53 }); |
54 task.done(); | 54 task.done(); |
55 }); | 55 }); |
56 | 56 |
57 audit.run(); | 57 audit.run(); |
58 </script> | 58 </script> |
59 </body> | 59 </body> |
60 </html> | 60 </html> |
OLD | NEW |