Many WebAudio js-tests use waitUntilDone
[WebKit-https.git] / LayoutTests / webaudio / distance-inverse.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 inverse 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           // Temp panner node so we can get the inverse value.
23           var tempPanner = context.createPanner();
24           createTestAndRun(context, "inverse");
25       }
26
27       runTest();
28     </script>
29   </body>
30 </html>