https://github.com/web-platform-tests/wpt
Raw File
Tip revision: bcb0c3b2a28cfcd91a767b683b39f4f990a91f90 authored by Matt Falkenhagen on 09 April 2018, 08:40:54 UTC
service worker: Add tests for inteception of workers after redirects.
Tip revision: bcb0c3b
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