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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/biquad-highpass.html

Issue 1885723003: Implement Biquad lowpass and highpass filters according to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <script src="resources/compatibility.js"></script> 5 <script src="resources/compatibility.js"></script>
6 <script src="resources/audio-testing.js"></script> 6 <script src="resources/audio-testing.js"></script>
7 <script src="../resources/js-test.js"></script> 7 <script src="../resources/js-test.js"></script>
8 <script src="resources/biquad-filters.js"></script> 8 <script src="resources/biquad-filters.js"></script>
9 <script src="resources/biquad-testing.js"></script> 9 <script src="resources/biquad-testing.js"></script>
10 </head> 10 </head>
(...skipping 16 matching lines...) Expand all
27 27
28 // Create offline audio context. 28 // Create offline audio context.
29 var context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, s ampleRate); 29 var context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, s ampleRate);
30 30
31 // The filters we want to test. 31 // The filters we want to test.
32 var filterParameters = [{cutoff : 0, q : 1, gain : 1 }, 32 var filterParameters = [{cutoff : 0, q : 1, gain : 1 },
33 {cutoff : 1, q : 1, gain : 1 }, 33 {cutoff : 1, q : 1, gain : 1 },
34 {cutoff : 0.25, q : 1, gain : 1 }, 34 {cutoff : 0.25, q : 1, gain : 1 },
35 ]; 35 ];
36 36
37 createTestAndRun(context, "highpass", filterParameters); 37 createTestAndRun(context, "highpass", {
38 threshold: 1.5487e-8,
39 filterParameters: filterParameters
40 });
38 } 41 }
39 42
40 runTest(); 43 runTest();
41 successfullyParsed = true; 44 successfullyParsed = true;
42 45
43 </script> 46 </script>
44 47
45 </body> 48 </body>
46 </html> 49 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698