Revision ea1a9c736686a73256cd23b5531cd10f123ad468 authored by kritisingh1 on 15 March 2018, 16:30:55 UTC, committed by kritisingh1 on 15 March 2018, 16:33:58 UTC
2 parent s 1ef8ee1 + a27620c
Raw File
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