1// META: global=window,worker 2// META: script=/resources/WebIDLParser.js 3// META: script=/resources/idlharness.js 4// META: timeout=long 5 6'use strict'; 7 8// https://w3c.github.io/hr-time/ 9 10idl_test( 11 ['hr-time'], 12 ['html', 'dom'], 13 async idl_array => { 14 if (self.GLOBAL.isWorker()) { 15 idl_array.add_objects({ WorkerGlobalScope: ['self'] }); 16 } else { 17 idl_array.add_objects({ Window: ['self'] }); 18 } 19 idl_array.add_objects({ 20 Performance: ['performance'], 21 }); 22 } 23); 24