https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 4073c528708a2e2bfe6fe0ff9c948b3cc2ed3121 authored by Nicolás Peña on 21 March 2018, 23:20:26 UTC
Move remaining Intel/resource-timing/ tests to WPT
Tip revision: 4073c52
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