Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /hr-time/idlharness.any.html - WPT Dashboard Interop Dashboard
- /hr-time/idlharness.any.serviceworker.html - WPT Dashboard Interop Dashboard
- /hr-time/idlharness.any.shadowrealm-in-window.html - WPT Dashboard Interop Dashboard
- /hr-time/idlharness.any.sharedworker.html - WPT Dashboard Interop Dashboard
- /hr-time/idlharness.any.worker.html - WPT Dashboard Interop Dashboard
// META: global=window,worker,shadowrealm-in-window
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// META: timeout=long
'use strict';
idl_test(
['hr-time'],
['html', 'dom'],
async idl_array => {
if (self.GLOBAL.isShadowRealm()) {
return;
}
if (self.GLOBAL.isWorker()) {
idl_array.add_objects({ WorkerGlobalScope: ['self'] });
} else {
idl_array.add_objects({ Window: ['self'] });
}
idl_array.add_objects({
Performance: ['performance'],
});
}
);