1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
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>
11 <div id="description"></div>
12 <div id="console"></div>
15 description("Test inverse distance model of AudioPannerNode.");
18 if (window.testRunner) {
19 testRunner.dumpAsText();
20 testRunner.waitUntilDone();
23 window.jsTestIsAsync = true;
25 // Create offline audio context.
26 context = new webkitOfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
28 // Temp panner node so we can get the INVERSE_DISTANCE value.
29 var tempPanner = context.createPanner();
30 createTestAndRun(context, tempPanner.INVERSE_DISTANCE, 1);
34 successfullyParsed = true;
38 <script src="../fast/js/resources/js-test-post.js"></script>