Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

581 B
Raw Blame
// META: global=window,worker,shadowrealm-in-window
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// META: timeout=long

'use strict';

// https://w3c.github.io/hr-time/

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'],
    });
  }
);