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

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

Issue 2581463002: Refactor WebAudio test directory (Closed)
Patch Set: Use correct path for wav result files Created 4 years 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
(Empty)
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <script src="../resources/js-test.js"></script>
6 <script src="resources/compatibility.js"></script>
7 <script src="resources/audit-util.js"></script>
8 <script src="resources/audio-testing.js"></script>
9 <script src="resources/biquad-filters.js"></script>
10 <script src="resources/biquad-testing.js"></script>
11 </head>
12
13 <body>
14
15 <div id="description"></div>
16 <div id="console"></div>
17
18 <script>
19 description("Tests Biquad peaking filter.");
20
21 function runTest() {
22 if (window.testRunner) {
23 testRunner.dumpAsText();
24 testRunner.waitUntilDone();
25 }
26
27 window.jsTestIsAsync = true;
28
29 // Create offline audio context.
30 var context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, s ampleRate);
31
32 // The filters we want to test.
33 var filterParameters = [{cutoff : 0, q : 10, gain : 10 },
34 {cutoff : 1, q : 10, gain : 10 },
35 {cutoff : .5, q : 0, gain : 10 },
36 {cutoff : 0.25, q : 10, gain : 10 },
37 ];
38
39 createTestAndRun(context, "peaking", {
40 threshold: 5.8234e-8,
41 filterParameters: filterParameters
42 });
43 }
44
45 runTest();
46 successfullyParsed = true;
47
48 </script>
49
50 </body>
51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698