https://github.com/web-platform-tests/wpt
Raw File
Tip revision: b71f2b352ffc54f46299931a1ada7b71e6c92877 authored by Mike Pennisi on 10 December 2018, 20:43:57 UTC
Explicitly fetch test manifest
Tip revision: b71f2b3
idlharness.any.js
// 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'],
    });
  }
);
back to top