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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/constructor/channelsplitter.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> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Test Constructor: ChannelSplitter</title> 4 <title>
5 Test Constructor: ChannelSplitter
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 <script src="audionodeoptions.js"></script> 11 <script src="audionodeoptions.js"></script>
10 </head> 12 </head>
13 <body>
14 <script id="layout-test-code">
15 let context;
11 16
12 <body> 17 let audit = Audit.createTaskRunner();
13 <script>
14 var context;
15
16 var audit = Audit.createTaskRunner();
17 18
18 audit.define('initialize', (task, should) => { 19 audit.define('initialize', (task, should) => {
19 context = initializeContext(should); 20 context = initializeContext(should);
20 task.done(); 21 task.done();
21 }); 22 });
22 23
23 audit.define('invalid constructor', (task, should) => { 24 audit.define('invalid constructor', (task, should) => {
24 testInvalidConstructor(should, 'ChannelSplitterNode', context); 25 testInvalidConstructor(should, 'ChannelSplitterNode', context);
25 task.done(); 26 task.done();
26 }); 27 });
(...skipping 17 matching lines...) Expand all
44 {value: 6, isFixed: true, errorType: 'InvalidStateError'}, 45 {value: 6, isFixed: true, errorType: 'InvalidStateError'},
45 channelCountMode: { 46 channelCountMode: {
46 value: 'explicit', 47 value: 'explicit',
47 isFixed: true, 48 isFixed: true,
48 } 49 }
49 }); 50 });
50 task.done(); 51 task.done();
51 }); 52 });
52 53
53 audit.define('constructor options', (task, should) => { 54 audit.define('constructor options', (task, should) => {
54 var node; 55 let node;
55 var options = { 56 let options = {
56 numberOfInputs: 3, 57 numberOfInputs: 3,
57 numberOfOutputs: 9, 58 numberOfOutputs: 9,
58 channelInterpretation: 'discrete' 59 channelInterpretation: 'discrete'
59 }; 60 };
60 61
61 should( 62 should(
62 () => { 63 () => {
63 node = new ChannelSplitterNode(context, options); 64 node = new ChannelSplitterNode(context, options);
64 }, 65 },
65 'node1 = new ChannelSplitterNode(context, ' + 66 'node1 = new ChannelSplitterNode(context, ' +
(...skipping 30 matching lines...) Expand all
96 'new ChannelSplitterNode(c, ' + JSON.stringify(options) + ')') 97 'new ChannelSplitterNode(c, ' + JSON.stringify(options) + ')')
97 .throw('InvalidStateError'); 98 .throw('InvalidStateError');
98 99
99 task.done(); 100 task.done();
100 }); 101 });
101 102
102 audit.run(); 103 audit.run();
103 </script> 104 </script>
104 </body> 105 </body>
105 </html> 106 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698