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