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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/biquad-allpass.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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/biquad-bandpass.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 15 matching lines...) Expand all
26 window.jsTestIsAsync = true; 26 window.jsTestIsAsync = true;
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 var filterParameters = [{cutoff : 0, q : 10, gain : 1 }, 31 var filterParameters = [{cutoff : 0, q : 10, gain : 1 },
32 {cutoff : 1, q : 10, gain : 1 }, 32 {cutoff : 1, q : 10, gain : 1 },
33 {cutoff : .5, q : 0, gain : 1 }, 33 {cutoff : .5, q : 0, gain : 1 },
34 {cutoff : 0.25, q : 10, gain : 1 }, 34 {cutoff : 0.25, q : 10, gain : 1 },
35 ]; 35 ];
36 createTestAndRun(context, "allpass", filterParameters); 36 createTestAndRun(context, "allpass", {
37 threshold: 3.9337e-8,
38 filterParameters: filterParameters
39 });
37 } 40 }
38 41
39 runTest(); 42 runTest();
40 successfullyParsed = true; 43 successfullyParsed = true;
41 44
42 </script> 45 </script>
43 46
44 </body> 47 </body>
45 </html> 48 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/biquad-bandpass.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698