https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d7971f8bb6faedcb2b39c0b964f62add100b0df1 authored by Hiroki Nakagawa on 08 January 2018, 15:21:17 UTC
Worker: Upstream fast/workers/worker-timeout.html to WPT
Tip revision: d7971f8
interfaces.worker.js
'use strict';

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

promise_test(function() {
  return fetch('interfaces.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