https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 9c95aa7415678f0324279be13821261f660b7c02 authored by James Graham on 10 April 2018, 18:36:46 UTC
Add an infrastructure test for wdspec.
Tip revision: 9c95aa7
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