https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 9a6904deeb2b2ae3400cc348badbb86db6c2ddb4 authored by Joshua Bell on 13 March 2018, 18:06:21 UTC
HTTPS-ify other links
Tip revision: 9a6904d
interfaces.worker.js
"use strict";

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

var request = new XMLHttpRequest();
request.onload = function() {
  var idlArray = new IdlArray();
  var idls = request.responseText;
  idlArray.add_idls(idls);
  idlArray.add_objects({
    DedicatedWorkerGlobalScope: ['self'],
    WorkerNavigator: ['self.navigator'],
    WorkerLocation: ['self.location'],
  });
  idlArray.test();
  done();
};
request.open("GET", "/interfaces/dedicated-workers.idl");
request.send();
back to top