https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 11f336c3ea03dc50c125a6466da30070d3b57fb9 authored by Nikos Andronikos on 14 December 2016, 00:38:17 UTC
Fix whitespace errors
Tip revision: 11f336c
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