[WebIDL] Enable strict type checking for nullable attribute setters of wrapper types
[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-pre.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           if (window.testRunner) {
18               testRunner.dumpAsText();
19               testRunner.waitUntilDone();
20           }
21
22           window.jsTestIsAsync = true;
23
24           // Create offline audio context.
25           context = new webkitOfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
26
27           // Create temp panner to get LINEAR_DISTANCE value for testing.
28           var pannerModel = context.createPanner();
29           createTestAndRun(context, pannerModel.LINEAR_DISTANCE, 0);
30       }
31
32       runTest();
33       successfullyParsed = true;
34
35     </script>
36
37 <script src="../resources/js-test-post.js"></script>
38   </body>
39 </html>