| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/testharness.js"></script> |
| 5 <script src="../../resources/testharnessreport.js"></script> |
| 5 <script src="../resources/audit-util.js"></script> | 6 <script src="../resources/audit-util.js"></script> |
| 6 <script src="../resources/audio-testing.js"></script> | 7 <script src="../resources/audit.js"></script> |
| 7 <script src="../resources/distance-model-testing.js"></script> | 8 <script src="../resources/distance-model-testing.js"></script> |
| 8 </head> | 9 </head> |
| 9 | 10 |
| 10 <body> | 11 <body> |
| 11 <div id="description"></div> | 12 <script> |
| 12 <div id="console"></div> | 13 let audit = Audit.createTaskRunner(); |
| 13 | 14 |
| 14 <script> | 15 audit.define("test", (task, should) => { |
| 15 description("Test inverse distance model of AudioPannerNode."); | |
| 16 | |
| 17 function runTest() { | |
| 18 if (window.testRunner) { | |
| 19 testRunner.dumpAsText(); | |
| 20 testRunner.waitUntilDone(); | |
| 21 } | |
| 22 | |
| 23 window.jsTestIsAsync = true; | |
| 24 | |
| 25 // Create offline audio context. | 16 // Create offline audio context. |
| 26 context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds,
sampleRate); | 17 context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds,
sampleRate); |
| 27 | 18 |
| 28 createTestAndRun(context, "inverse"); | 19 createTestAndRun(context, "inverse", should) |
| 29 } | 20 .then(() => task.done()); |
| 21 }); |
| 30 | 22 |
| 31 runTest(); | 23 audit.run(); |
| 32 successfullyParsed = true; | |
| 33 | |
| 34 </script> | 24 </script> |
| 35 | 25 |
| 36 </body> | 26 </body> |
| 37 </html> | 27 </html> |
| OLD | NEW |