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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/ChannelMerger/audiochannelmerger-input-non-default.html

Issue 2670643003: Convert ChannelMerger Audit tests to testharness (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
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 <script src="../resources/merger-testing.js"></script> 9 <script src="../resources/merger-testing.js"></script>
9 </head> 10 </head>
10 11
11 <body> 12 <body>
12 <script> 13 <script>
13 description('Test input handling of ChannelMergerNode (non-default).');
14 window.jsTestIsAsync = true;
15 14
16 var audit = Audit.createTaskRunner(); 15 var audit = Audit.createTaskRunner();
17 16
18 17
19 // Task: Check if an inactive input renders a silent mono channel in the 18 // Task: Check if an inactive input renders a silent mono channel in the
20 // output. 19 // output.
21 audit.defineTask('silent-channel', function (done) { 20 audit.defineTask('silent-channel', function (done) {
22 testMergerInput({ 21 testMergerInput({
23 numberOfChannels: 7, 22 numberOfChannels: 7,
24 23
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 mergerInputIndex: 6, 66 mergerInputIndex: 6,
68 67
69 // The result of summed stereo audio should be 1 because 3-channel is 68 // The result of summed stereo audio should be 1 because 3-channel is
70 // not a canonical layout, so the input channel 2 and 3 should be 69 // not a canonical layout, so the input channel 2 and 3 should be
71 // dropped by 'discrete' mixing rule. 70 // dropped by 'discrete' mixing rule.
72 expected: [0, 0, 0, 0, 0, 0, 1], 71 expected: [0, 0, 0, 0, 0, 0, 1],
73 }, done); 72 }, done);
74 }); 73 });
75 74
76 audit.defineTask('finish', function (done) { 75 audit.defineTask('finish', function (done) {
77 finishJSTest();
78 done(); 76 done();
79 }); 77 });
80 78
81 audit.runTasks( 79 audit.runTasks(
82 'silent-channel', 80 'silent-channel',
83 'stereo-down-mixing', 81 'stereo-down-mixing',
84 'undefined-channel-layout', 82 'undefined-channel-layout',
85 'finish' 83 'finish'
86 ); 84 );
87 85
88 successfullyParsed = true; 86 successfullyParsed = true;
89 </script> 87 </script>
90 </body> 88 </body>
91 89
92 </html> 90 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698