https://github.com/web-platform-tests/wpt
Raw File
Tip revision: ad4489b5132d14d65cdb52845d1c1f8694b9d4cc authored by Ms2ger on 13 March 2018, 16:12:19 UTC
Add tests for transferring ImageBitmap objects.
Tip revision: ad4489b
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