| 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/audit.js"></script> |
| 8 </head> |
| 9 <body> |
| 10 <script> |
| 11 var audit = Audit.createTaskRunner(); |
| 12 |
| 13 audit.define('getoutputtimestamp-initial-values', function (task, should) { |
| 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( |
| 22 0); |
| 23 |
| 24 task.done(); |
| 25 }); |
| 26 |
| 27 audit.run(); |
| 28 </script> |
| 29 </body> |
| 30 </html> |
| OLD | NEW |