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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/constructor/dynamicscompressor.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: DynamicsCompressor</title> 4 <title>
5 Test Constructor: DynamicsCompressor
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, 'DynamicsCompressorNode', context); 25 testInvalidConstructor(should, 'DynamicsCompressorNode', context);
25 task.done(); 26 task.done();
26 }); 27 });
(...skipping 19 matching lines...) Expand all
46 47
47 task.done(); 48 task.done();
48 }); 49 });
49 50
50 audit.define('test AudioNodeOptions', (task, should) => { 51 audit.define('test AudioNodeOptions', (task, should) => {
51 testAudioNodeOptions(should, context, 'DynamicsCompressorNode'); 52 testAudioNodeOptions(should, context, 'DynamicsCompressorNode');
52 task.done(); 53 task.done();
53 }); 54 });
54 55
55 audit.define('constructor with options', (task, should) => { 56 audit.define('constructor with options', (task, should) => {
56 var node; 57 let node;
57 var options = 58 let options =
58 {threshold: -33, knee: 15, ratio: 7, attack: 0.625, release: 0.125}; 59 {threshold: -33, knee: 15, ratio: 7, attack: 0.625, release: 0.125};
59 60
60 should( 61 should(
61 () => { 62 () => {
62 node = new DynamicsCompressorNode(context, options); 63 node = new DynamicsCompressorNode(context, options);
63 }, 64 },
64 'node1 = new DynamicsCompressorNode(c, ' + JSON.stringify(options) + 65 'node1 = new DynamicsCompressorNode(c, ' + JSON.stringify(options) +
65 ')') 66 ')')
66 .notThrow(); 67 .notThrow();
67 should( 68 should(
(...skipping 16 matching lines...) Expand all
84 should(node.channelInterpretation, 'node1.channelInterpretation') 85 should(node.channelInterpretation, 'node1.channelInterpretation')
85 .beEqualTo('speakers'); 86 .beEqualTo('speakers');
86 87
87 task.done(); 88 task.done();
88 }); 89 });
89 90
90 audit.run(); 91 audit.run();
91 </script> 92 </script>
92 </body> 93 </body>
93 </html> 94 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698