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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/DynamicsCompressor/dynamicscompressor-basic.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>
3 <head>
4 <title>
5 dynamicscompressor-basic.html
6 </title>
7 <script src="../../resources/testharness.js"></script>
8 <script src="../../resources/testharnessreport.js"></script>
9 <script src="../resources/audit-util.js"></script>
10 <script src="../resources/audit.js"></script>
11 </head>
12 <body>
13 <script id="layout-test-code">
14 let audit = Audit.createTaskRunner();
15 let context;
16 let compressor;
2 17
3 <html> 18 audit.define(
4 <head> 19 {
5 <script src="../../resources/testharness.js"></script> 20 label: 'test',
6 <script src="../../resources/testharnessreport.js"></script> 21 description: 'Basic tests for DynamicsCompressorNode API'
7 <script src="../resources/audit-util.js"></script> 22 },
8 <script src="../resources/audit.js"></script> 23 function(task, should) {
9 </head>
10 24
11 <body> 25 context = new AudioContext();
12 <script> 26 compressor = context.createDynamicsCompressor();
13 var audit = Audit.createTaskRunner();
14 var context;
15 var compressor;
16 27
17 audit.define({ 28 should(compressor.threshold.value, 'compressor.threshold.value')
18 label: "test", 29 .beEqualTo(-24);
19 description: "Basic tests for DynamicsCompressorNode API" 30 should(compressor.knee.value, 'compressor.knee.value')
20 }, function (task, should) { 31 .beEqualTo(30);
32 should(compressor.ratio.value, 'compressor.ratio.value')
33 .beEqualTo(12);
34 should(compressor.attack.value, 'compressor.attack.value')
35 .beEqualTo(Math.fround(0.003));
36 should(compressor.release.value, 'compressor.release.value')
37 .beEqualTo(0.25);
38 should(typeof compressor.reduction, 'typeof compressor.reduction')
39 .beEqualTo('number');
40 should(compressor.reduction, 'compressor.reduction').beEqualTo(0);
21 41
22 context = new AudioContext(); 42 task.done();
23 compressor = context.createDynamicsCompressor(); 43 });
24 44
25 should(compressor.threshold.value, "compressor.threshold.value") 45 audit.run();
26 .beEqualTo(-24); 46 </script>
27 should(compressor.knee.value, "compressor.knee.value") 47 </body>
28 .beEqualTo(30);
29 should(compressor.ratio.value, "compressor.ratio.value")
30 .beEqualTo(12);
31 should(compressor.attack.value, "compressor.attack.value")
32 .beEqualTo(Math.fround(0.003));
33 should(compressor.release.value, "compressor.release.value")
34 .beEqualTo(0.25);
35 should(typeof compressor.reduction, "typeof compressor.reduction")
36 .beEqualTo("number");
37 should(compressor.reduction, "compressor.reduction")
38 .beEqualTo(0);
39
40 task.done();
41 });
42
43 audit.run();
44
45 </script>
46
47 </body>
48 </html> 48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698