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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/ScriptProcessor/scriptprocessornode-0-output-channels.html

Issue 2895963003: Apply layout-test-tidy to LayoutTests/webaudio (Closed)
Patch Set: Created 3 years, 7 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 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Test Connecting 0-output channel ScriptProcessor to Another Node </ti tle> 4 <title>
5 Test Connecting 0-output channel ScriptProcessor to Another Node
6 </title>
5 <script src="../../resources/testharness.js"></script> 7 <script src="../../resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script> 8 <script src="../../resources/testharnessreport.js"></script>
7 <script src="../resources/audit-util.js"></script> 9 <script src="../resources/audit-util.js"></script>
8 <script src="../resources/audit.js"></script> 10 <script src="../resources/audit.js"></script>
9 </head> 11 </head>
10
11 <body> 12 <body>
12 <script> 13 <script id="layout-test-code">
13 var audit = Audit.createTaskRunner(); 14 let audit = Audit.createTaskRunner();
14 var context; 15 let context;
15 var scriptNode1; 16 let scriptNode1;
16 var scriptNode2; 17 let scriptNode2;
17 var analyzer; 18 let analyzer;
18 19
19 audit.define('initialize', (task, should) => { 20 audit.define('initialize', (task, should) => {
20 should(function() { 21 should(function() {
21 context = new OfflineAudioContext(1, 1024, 44100); 22 context = new OfflineAudioContext(1, 1024, 44100);
22 }, 'context = new OfflineAudioContext(1, 1024, 44100)').notThrow(); 23 }, 'context = new OfflineAudioContext(1, 1024, 44100)').notThrow();
23 should(function() { 24 should(function() {
24 analyzer = context.createAnalyser(); 25 analyzer = context.createAnalyser();
25 }, 'analyzer = context.createAnalyser()').notThrow(); 26 }, 'analyzer = context.createAnalyser()').notThrow();
26 should( 27 should(
27 function() { 28 function() {
(...skipping 17 matching lines...) Expand all
45 should(function() { 46 should(function() {
46 scriptNode2.connect(analyzer); 47 scriptNode2.connect(analyzer);
47 }, 'scriptNode2.connect(analyzer)').notThrow(); 48 }, 'scriptNode2.connect(analyzer)').notThrow();
48 task.done(); 49 task.done();
49 }); 50 });
50 51
51 audit.run(); 52 audit.run();
52 </script> 53 </script>
53 </body> 54 </body>
54 </html> 55 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698