| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="resources/compatibility.js"></script> | 4 <script src="resources/compatibility.js"></script> |
| 5 <script src="resources/audio-testing.js"></script> | 5 <script src="resources/audio-testing.js"></script> |
| 6 <script src="../resources/js-test.js"></script> | 6 <script src="../resources/js-test.js"></script> |
| 7 <script src="resources/panner-model-testing.js"></script> | 7 <script src="resources/panner-model-testing.js"></script> |
| 8 </head> | 8 </head> |
| 9 | 9 |
| 10 <body> | 10 <body> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 if (window.testRunner) { | 24 if (window.testRunner) { |
| 25 testRunner.dumpAsText(); | 25 testRunner.dumpAsText(); |
| 26 testRunner.waitUntilDone(); | 26 testRunner.waitUntilDone(); |
| 27 } | 27 } |
| 28 | 28 |
| 29 window.jsTestIsAsync = true; | 29 window.jsTestIsAsync = true; |
| 30 | 30 |
| 31 // Create offline audio context. | 31 // Create offline audio context. |
| 32 context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds,
sampleRate); | 32 context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds,
sampleRate); |
| 33 | 33 |
| 34 createTestAndRun(context, nodesToCreate, 1); | 34 createTestAndRun(context, nodesToCreate, 1, function (panner, x, y, z)
{ |
| 35 panner.setPosition(x, y, z); |
| 36 }); |
| 35 } | 37 } |
| 36 | 38 |
| 37 runTest(); | 39 runTest(); |
| 38 successfullyParsed = true; | 40 successfullyParsed = true; |
| 39 | 41 |
| 40 </script> | 42 </script> |
| 41 | 43 |
| 42 </body> | 44 </body> |
| 43 </html> | 45 </html> |
| OLD | NEW |