idlharness.any.js (581B)
1 // META: global=window,worker,shadowrealm-in-window 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 10 idl_test( 11 ['hr-time'], 12 ['html', 'dom'], 13 async idl_array => { 14 if (self.GLOBAL.isShadowRealm()) { 15 return; 16 } 17 18 if (self.GLOBAL.isWorker()) { 19 idl_array.add_objects({ WorkerGlobalScope: ['self'] }); 20 } else { 21 idl_array.add_objects({ Window: ['self'] }); 22 } 23 idl_array.add_objects({ 24 Performance: ['performance'], 25 }); 26 } 27 );