Handle keypad while WebPage sets the focus automatically
[framework/web/webkit-efl.git] / LayoutTests / webaudio / biquad-highshelf.html
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css"/>
6 <script src="resources/audio-testing.js"></script>
7 <script src="../fast/js/resources/js-test-pre.js"></script>
8 <script src="resources/biquad-testing.js"></script>
9 </head>
10
11 <body>
12
13 <div id="description"></div>
14 <div id="console"></div>
15
16 <script>
17 description("Tests Biquad highshelf filter.");
18
19 function runTest() {
20     if (window.layoutTestController) {
21         layoutTestController.dumpAsText();
22         layoutTestController.waitUntilDone();
23     }
24     
25     window.jsTestIsAsync = true;
26         
27     // Create offline audio context.
28     var context = new webkitAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
29
30     // Dummy filter to get filter type constant
31     var f = context.createBiquadFilter();
32
33     // The filters we want to test.
34     var filterParameters = [{cutoff : 0,    q : 10, gain : 10 },
35                             {cutoff : 1,    q : 10, gain : 10 },
36                             {cutoff : 0.25, q : 10, gain : 10 },
37                            ];
38
39     createTestAndRun(context, f.HIGHSHELF, filterParameters);
40 }
41
42 runTest();
43 successfullyParsed = true;
44
45 </script>
46
47 <script src="../fast/js/resources/js-test-post.js"></script>
48 </body>
49 </html>