Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/constructor/analyser.html

Issue 2809923004: AnalyserNode.channelCount should be 1 (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/webaudio/AnalyserNode.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/webaudio/AnalyserNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698