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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-downmix8-2channel-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 = 8;
18 let inputChannels = 2;
19 let outputChannels = 6;
15 20
16 <script> 21 audit.define(
17 description("Tests downmixing an 8-channel source connected to a JavaScriptAudio Node with 2-channel input."); 22 {
23 label: 'test',
24 description:
25 'downmix 8-channel source to ScriprProcessNode with 2-channel input'
26 },
27 (task, should) => {
28 runJSNodeTest(should).then(() => task.done());
29 });
18 30
19 var sampleRate = 44100.0; 31 audit.run();
20 var sourceChannels = 8;
21 var inputChannels = 2;
22 var outputChannels = 6;
23
24 function runTest() {
25 if (window.testRunner) {
26 testRunner.dumpAsText();
27 testRunner.waitUntilDone();
28 }
29
30 window.jsTestIsAsync = true;
31
32 runJSNodeTest();
33 }
34
35 runTest();
36 32
37 </script> 33 </script>
38 34
39 </body> 35 </body>
40 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698