Add memory space check routine before saving web storage data
[framework/web/webkit-efl.git] / LayoutTests / webaudio / distance-inverse.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3   <head>
4     <link rel="stylesheet" href="../fast/js/resources/js-test-style.css"/>
5     <script src="resources/audio-testing.js"></script>
6     <script src="../fast/js/resources/js-test-pre.js"></script>
7     <script src="resources/distance-model-testing.js"></script>
8   </head>
9
10   <body>
11     <div id="description"></div>
12     <div id="console"></div>
13
14     <script>
15       description("Test inverse distance model of AudioPannerNode.");
16
17       function runTest() {
18           if (window.testRunner) {
19               testRunner.dumpAsText();
20               testRunner.waitUntilDone();
21           }
22
23           window.jsTestIsAsync = true;
24
25           // Create offline audio context.
26           context = new webkitOfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
27
28           // Temp panner node so we can get the INVERSE_DISTANCE value.
29           var tempPanner = context.createPanner();
30           createTestAndRun(context, tempPanner.INVERSE_DISTANCE, 1);
31       }
32
33       runTest();
34       successfullyParsed = true;
35
36     </script>
37
38 <script src="../fast/js/resources/js-test-post.js"></script>
39   </body>
40 </html>