Set input method state when webpage move by history
[framework/web/webkit-efl.git] / LayoutTests / webaudio / biquad-allpass.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 allpass filter.");
18
19 function runTest() {
20     if (window.testRunner) {
21         testRunner.dumpAsText();
22         testRunner.waitUntilDone();
23     }
24     
25     window.jsTestIsAsync = true;
26         
27     // Create offline audio context.
28     var context = new webkitOfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
29
30     // Dummy filter to get filter type constant
31     var f = context.createBiquadFilter();
32
33     var filterParameters = [{cutoff : 0,    q : 10, gain : 1 },
34                             {cutoff : 1,    q : 10, gain : 1 },
35                             {cutoff : .5,   q :  0, gain : 1 },
36                             {cutoff : 0.25, q : 10, gain : 1 },
37                            ];
38     createTestAndRun(context, f.ALLPASS, filterParameters);
39 }
40
41 runTest();
42 successfullyParsed = true;
43
44 </script>
45
46 <script src="../fast/js/resources/js-test-post.js"></script>
47 </body>
48 </html>