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

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

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

Powered by Google App Engine
This is Rietveld 408576698