| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../resources/js-test.js"></script> | 4 <script src="../resources/js-test.js"></script> |
| 5 <script src="resources/compatibility.js"></script> |
| 5 <script src="resources/audio-testing.js"></script> | 6 <script src="resources/audio-testing.js"></script> |
| 6 </head> | 7 </head> |
| 7 | 8 |
| 8 <body> | 9 <body> |
| 9 <div id="description"></div> | 10 <div id="description"></div> |
| 10 <div id="console"></div> | 11 <div id="console"></div> |
| 11 | 12 |
| 12 <script> | 13 <script> |
| 13 description("Basic tests for PannerNode."); | 14 description("Basic tests for PannerNode."); |
| 14 | 15 |
| 15 var context = 0; | 16 var context = 0; |
| 16 | 17 |
| 17 function runTest() { | 18 function runTest() { |
| 18 if (window.testRunner) { | 19 if (window.testRunner) { |
| 19 testRunner.dumpAsText(); | 20 testRunner.dumpAsText(); |
| 20 testRunner.waitUntilDone(); | 21 testRunner.waitUntilDone(); |
| 21 } | 22 } |
| 22 | 23 |
| 23 window.jsTestIsAsync = true; | 24 window.jsTestIsAsync = true; |
| 24 | 25 |
| 25 context = new webkitAudioContext(); | 26 context = new AudioContext(); |
| 26 var panner = context.createPanner(); | 27 var panner = context.createPanner(); |
| 27 | 28 |
| 28 if (panner.numberOfInputs === 1) | 29 if (panner.numberOfInputs === 1) |
| 29 testPassed("PannerNode has one input."); | 30 testPassed("PannerNode has one input."); |
| 30 else | 31 else |
| 31 testFailed("PannerNode should have one input."); | 32 testFailed("PannerNode should have one input."); |
| 32 | 33 |
| 33 if (panner.numberOfOutputs === 1) | 34 if (panner.numberOfOutputs === 1) |
| 34 testPassed("PannerNode has one output."); | 35 testPassed("PannerNode has one output."); |
| 35 else | 36 else |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 197 |
| 197 finishJSTest(); | 198 finishJSTest(); |
| 198 } | 199 } |
| 199 | 200 |
| 200 runTest(); | 201 runTest(); |
| 201 | 202 |
| 202 </script> | 203 </script> |
| 203 | 204 |
| 204 </body> | 205 </body> |
| 205 </html> | 206 </html> |
| OLD | NEW |