https://github.com/web-platform-tests/wpt
Raw File
Tip revision: e343b5de1627f1b1df5290254821ad1202bc11f0 authored by Marcos Cáceres on 28 March 2018, 03:52:58 UTC
Add @edenchuang again 🎊
Tip revision: e343b5d
interfaces.worker.js
'use strict';

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

promise_test(function() {
  return fetch('/interfaces/background-fetch.idl')
    .then(response => response.text())
    .then(idls => {
      var idlArray = new IdlArray();
      idlArray.add_untested_idls('interface ServiceWorkerRegistration {};');
      idlArray.add_untested_idls('[Exposed=ServiceWorker] interface ServiceWorkerGlobalScope {};');
      idlArray.add_idls(idls);
      idlArray.test();
    });
}, 'Exposed interfaces in a Service Worker.');

done();
back to top