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