https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 339894deeec26cfdb7e9d084298abe68c9cdb646 authored by Anthony Ramine on 07 April 2018, 11:47:48 UTC
Avoid async/await in /webstorage/idlharness.html
Tip revision: 339894d
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