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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-oversample-4x.html

Issue 2677453005: Convert WaveShaper tests to testharness (Closed)
Patch Set: Address review comments Created 3 years, 9 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 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <script src="../../resources/js-test.js"></script> 5 <script src="../../resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script>
6 <script src="../resources/audit-util.js"></script> 7 <script src="../resources/audit-util.js"></script>
7 <script src="../resources/audio-testing.js"></script> 8 <script src="../resources/audit.js"></script>
8 <script type="text/javascript" src="../resources/mix-testing.js"></script> 9 <script type="text/javascript" src="../resources/mix-testing.js"></script>
9 <script type="text/javascript" src="../resources/waveshaper-testing.js"></script > 10 <script type="text/javascript" src="../resources/waveshaper-testing.js"></script >
10 </head> 11 </head>
11 12
12 <body> 13 <body>
13
14 <div id="description"></div>
15 <div id="console"></div>
16
17 <script> 14 <script>
18 description("Tests 4x WaveShaperNode oversampling.");
19
20 var testParams = { 15 var testParams = {
21 "sampleRate": 44100, 16 "sampleRate": 44100,
22 "oversample": "4x", 17 "oversample": "4x",
23 18
24 // Should generate harmonics at 18000, 36000, 54000, 72000 19 // Should generate harmonics at 18000, 36000, 54000, 72000
25 // All except for 18000 should be filtered out with the 4x oversampling. 20 // All except for 18000 should be filtered out with the 4x oversampling.
26 "fundamentalFrequency": 18000, 21 "fundamentalFrequency": 18000,
27 "acceptableAliasingThresholdDecibels": -79.9 22 "acceptableAliasingThresholdDecibels": -79.9,
23 description: "4x WaveShaperNode oversampling"
28 }; 24 };
29 runWaveShaperOversamplingTest(testParams); 25 runWaveShaperOversamplingTest(testParams);
30 26
31 </script> 27 </script>
32 28
33 </body> 29 </body>
34 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698