Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / webaudio / distance-linear.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3   <head>
4     <script src="resources/audio-testing.js"></script>
5     <script src="../resources/js-test.js"></script>
6     <script src="resources/distance-model-testing.js"></script>
7   </head>
8
9   <body>
10     <div id="description"></div>
11     <div id="console"></div>
12
13     <script>
14       description("Test linear distance model of AudioPannerNode.");
15
16       function runTest() {
17           window.jsTestIsAsync = true;
18
19           // Create offline audio context.
20           context = new webkitOfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
21
22           // Create temp panner to get linear value for testing.
23           var pannerModel = context.createPanner();
24           createTestAndRun(context, "linear");
25       }
26
27       runTest();
28
29     </script>
30   </body>
31 </html>