mirror of
https://github.com/servo/servo.git
synced 2025-07-12 09:53:40 +01:00
22 lines
477 B
JavaScript
22 lines
477 B
JavaScript
// META: global=window,worker
|
|
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
|
|
'use strict';
|
|
|
|
// https://w3c.github.io/hr-time/
|
|
|
|
idl_test(
|
|
['hr-time'],
|
|
['html', 'dom'],
|
|
async idl_array => {
|
|
if (self.GLOBAL.isWorker()) {
|
|
idl_array.add_objects({ WorkerGlobalScope: ['self'] });
|
|
} else {
|
|
idl_array.add_objects({ Window: ['self'] });
|
|
}
|
|
idl_array.add_objects({
|
|
Performance: ['performance'],
|
|
});
|
|
}
|
|
);
|