https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 1503470039390008dc011a55ce82f41aa52fa8aa authored by Mikhail Pozdnyakov on 16 March 2018, 12:55:10 UTC
[Sensor] Add feature detection
Tip revision: 1503470
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