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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-oversample-2x.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 waveshaper-oversample-2x.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 <script src="../resources/mix-testing.js"></script>
12 <script src="../resources/waveshaper-testing.js"></script>
13 </head>
14 <body>
15 <script id="layout-test-code">
16 let testParams = {
17 'sampleRate': 44100,
18 'oversample': '2x',
2 19
3 <html> 20 // Should generate harmonics at 9000, 18000, 27000, 36000
4 <head> 21 // The last two should be filtered out with the 2x oversampling.
5 <script src="../../resources/testharness.js"></script> 22 'fundamentalFrequency': 9000,
6 <script src="../../resources/testharnessreport.js"></script> 23 'acceptableAliasingThresholdDecibels': -75.3,
7 <script src="../resources/audit-util.js"></script> 24 description: '2x WaveShaperNode oversampling'
8 <script src="../resources/audit.js"></script> 25 };
9 <script type="text/javascript" src="../resources/mix-testing.js"></script> 26 runWaveShaperOversamplingTest(testParams);
10 <script type="text/javascript" src="../resources/waveshaper-testing.js"></script > 27 </script>
11 </head> 28 </body>
12
13 <body>
14 <script>
15 var testParams = {
16 "sampleRate": 44100,
17 "oversample": "2x",
18
19 // Should generate harmonics at 9000, 18000, 27000, 36000
20 // The last two should be filtered out with the 2x oversampling.
21 "fundamentalFrequency": 9000,
22 "acceptableAliasingThresholdDecibels": -75.3,
23 description: "2x WaveShaperNode oversampling"
24 };
25 runWaveShaperOversamplingTest(testParams);
26
27 </script>
28
29 </body>
30 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698