https://github.com/web-platform-tests/wpt
Raw File
Tip revision: ef54841c892a555e99d0304a8924c77d2f5e4d5a authored by Simon Pieters on 05 June 2018, 08:49:15 UTC
HTML: fix joint session history test to not time out
Tip revision: ef54841
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