- add third_party src.
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / webaudio / distance-linear.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 linear 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           // Create temp panner to get LINEAR_DISTANCE value for testing.
29           var pannerModel = context.createPanner();
30           createTestAndRun(context, pannerModel.LINEAR_DISTANCE, 0);
31       }
32
33       runTest();
34       successfullyParsed = true;
35
36     </script>
37
38   </body>
39 </html>