https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d3cec900217a525b6da759c9194838632f0bf27d authored by Yutaka Hirano on 27 March 2018, 06:25:56 UTC
fix
Tip revision: d3cec90
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