https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 7ea8a74ed7ad55fd3991e599c413cfcb3edb709c authored by Luke Bjerring on 09 April 2018, 21:41:12 UTC
Improve error message for failed wptserve
Tip revision: 7ea8a74
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