https://github.com/web-platform-tests/wpt
Raw File
Tip revision: e2456a73dc68ea5276e733674d81b62b8ec6dd8c authored by Aryeh Gregor on 20 April 2016, 18:21:43 UTC
Add self to html/OWNERS
Tip revision: e2456a7
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.idl");
request.send();
back to top