https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 4f4d4245a44a8fd575c71492b9bc943ab5463a8d authored by Anne van Kesteren on 28 May 2018, 14:47:32 UTC
HTML: remove autofocused element before its task runs
Tip revision: 4f4d424
interfaces.worker.js
'use strict';

importScripts('/resources/testharness.js');
importScripts('/resources/WebIDLParser.js', '/resources/idlharness.js');

promise_test(async function() {
  const idls = await fetch('/interfaces/background-fetch.idl').then(r => r.text());
  const dom = await fetch('/interfaces/dom.idl').then(r => r.text());

  var idlArray = new IdlArray();
  idlArray.add_untested_idls('interface ServiceWorkerRegistration {};');
  idlArray.add_untested_idls('[SecureContext, Exposed = (Window, Worker)] interface ServiceWorkerGlobalScope {};');
  idlArray.add_untested_idls('interface ExtendableEvent{};');
  idlArray.add_untested_idls('dictionary ExtendableEventInit{};');
  idlArray.add_untested_idls(dom, { only: ['EventTarget'] });
  idlArray.add_idls(idls);
  idlArray.test();
}, 'Exposed interfaces in a Service Worker.');

done();
back to top