https://github.com/web-platform-tests/wpt
Raw File
Tip revision: dd79be3ee575503e4e9595dfe8ce8141d8aedb72 authored by Hiroki Nakagawa on 22 March 2018, 05:53:36 UTC
Worker: Support ES Modules on DedicatedWorker behind the runtime flag
Tip revision: dd79be3
interfaces.any.js
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js

promise_test(async() => {
  const text = await fetch('/interfaces/url.idl')
    .then(response => response.text());
  const idlArray = new IdlArray();
  idlArray.add_idls(text);
  idlArray.add_objects({
    URL: ['new URL("http://foo")'],
    URLSearchParams: ['new URLSearchParams("hi=there&thank=you")']
  });
  idlArray.test();
  done();
}, 'Test driver');
back to top