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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/ChannelMerger/audiochannelmerger-input.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 behavior of ChannelMergerNode.');
14 window.jsTestIsAsync = true;
15 14
16 var audit = Audit.createTaskRunner(); 15 var audit = Audit.createTaskRunner();
17 16
18 // Task: Check if an inactive input renders a silent mono channel in the 17 // Task: Check if an inactive input renders a silent mono channel in the
19 // output. 18 // output.
20 audit.defineTask('silent-channel', function (done) { 19 audit.defineTask('silent-channel', function (done) {
21 testMergerInput({ 20 testMergerInput({
22 numberOfChannels: 6, 21 numberOfChannels: 6,
23 22
24 // Create a mono source buffer filled with '1'. 23 // Create a mono source buffer filled with '1'.
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // Channel#0 = 1, Channel#1 = -1 100 // Channel#0 = 1, Channel#1 = -1
102 Should('Channel #0', buffer.getChannelData(0)).beConstantValueOf(1); 101 Should('Channel #0', buffer.getChannelData(0)).beConstantValueOf(1);
103 Should('Channel #1', buffer.getChannelData(1)).beConstantValueOf(-1); 102 Should('Channel #1', buffer.getChannelData(1)).beConstantValueOf(-1);
104 103
105 done(); 104 done();
106 }); 105 });
107 }); 106 });
108 107
109 108
110 audit.defineTask('finish', function (done) { 109 audit.defineTask('finish', function (done) {
111 finishJSTest();
112 done(); 110 done();
113 }); 111 });
114 112
115 audit.runTasks( 113 audit.runTasks(
116 'silent-channel', 114 'silent-channel',
117 'stereo-down-mixing', 115 'stereo-down-mixing',
118 'undefined-channel-layout', 116 'undefined-channel-layout',
119 'merging-to-stereo', 117 'merging-to-stereo',
120 'finish' 118 'finish'
121 ); 119 );
122 120
123 successfullyParsed = true; 121 successfullyParsed = true;
124 </script> 122 </script>
125 </body> 123 </body>
126 124
127 </html> 125 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698