Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / webaudio / panner-equalpower.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/panner-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 equal-power panner model of AudioPannerNode.");
15
16       // To test the panner, we create a number of panner nodes
17       // equally spaced on a semicircle at unit distance.  The
18       // semicircle covers the azimuth range from -90 to 90 deg,
19       // covering full left to full right.  Each source is an impulse
20       // turning at a different time and we check that the rendered
21       // impulse has the expected gain.
22       function runTest() {
23           window.jsTestIsAsync = true;
24
25           // Create offline audio context.
26           context = new webkitOfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
27
28           createTestAndRun(context, nodesToCreate, 1);
29       }
30
31       runTest();
32     </script>
33   </body>
34 </html>