| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <title>Testing AudioContext.getOutputTimestamp() method</title> | |
| 5 <script src="../resources/testharness.js"></script> | |
| 6 <script src="../resources/testharnessreport.js"></script> | |
| 7 <script src="resources/audio-testing.js"></script> | |
| 8 </head> | |
| 9 <body> | |
| 10 <script> | |
| 11 var audit = Audit.createTaskRunner(); | |
| 12 | |
| 13 audit.defineTask('getoutputtimestamp-initial-values', function (taskDone) { | |
| 14 let context = new AudioContext; | |
| 15 let timestamp = context.getOutputTimestamp(); | |
| 16 | |
| 17 Should('timestamp.contextTime', timestamp.contextTime).exist(); | |
| 18 Should('timestamp.performanceTime', timestamp.performanceTime).exist(); | |
| 19 | |
| 20 Should('timestamp.contextTime', timestamp.contextTime).beEqualTo(0); | |
| 21 Should('timestamp.performanceTime', timestamp.performanceTime).beEqualTo(0
); | |
| 22 | |
| 23 taskDone(); | |
| 24 }); | |
| 25 | |
| 26 audit.runTasks(); | |
| 27 </script> | |
| 28 </body> | |
| 29 </html> | |
| OLD | NEW |