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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-upmix2-8channel-input.html

Issue 2718563004: Convert more ScriptProcessorNode tests to testharness (Closed)
Patch Set: Address review comments. Created 3 years, 9 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 2
3 <html> 3 <html>
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/audit.js"></script>
8 <script type="text/javascript" src="../resources/scriptprocessornode-testing.js" ></script> 9 <script src="../resources/scriptprocessornode-testing-audit.js"></script>
9 </head> 10 </head>
10 11
11 <body> 12 <body>
13 <script>
14 let audit = Audit.createTaskRunner();
12 15
13 <div id="description"></div> 16 let sampleRate = 44100.0;
14 <div id="console"></div> 17 let sourceChannels = 2;
18 let inputChannels = 8;
19 let outputChannels = 6;
15 20
16 <script> 21 audit.define(
17 description("Tests upmixing a 2-channel source connected to a JavaScriptAudioNod e with 8-channel input."); 22 {
23 label: 'test',
24 description:
25 'upmix a 2-channel source ScriptProcessorNode with 8-channel output'
26 },
27 (task, should) => {
28 runJSNodeTest(should).then(() => task.done());
29 ;
30 });
18 31
19 var sampleRate = 44100.0; 32 audit.run();
20 var sourceChannels = 2;
21 var inputChannels = 8;
22 var outputChannels = 6;
23
24 window.jsTestIsAsync = true;
25
26 function runTest() {
27 if (window.testRunner)
28 testRunner.dumpAsText();
29 runJSNodeTest();
30 }
31
32 runTest();
33
34 </script> 33 </script>
35 34
36 </body> 35 </body>
37 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698