https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 2a0948b43d6af3d822f979a51179b4220e3d0864 authored by Robert Ma on 16 March 2018, 00:32:55 UTC
Pass the binary path of Chrome to wpt run in CI
Tip revision: 2a0948b
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