summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/dom/idlharness.worker.js
blob: 88942ddfea13a10a14c4ceed360c9a7a9963e62e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"use strict";

importScripts("/resources/testharness.js");
importScripts("/resources/WebIDLParser.js", "/resources/idlharness.js");

idl_test(
  ["html"],
  ["wai-aria", "dom", "cssom", "touch-events", "uievents", "performance-timeline"],
  idlArray => {
    idlArray.add_untested_idls('typedef Window WindowProxy;');
    idlArray.add_objects({
      WorkerLocation: ['self.location'],
      WorkerNavigator: ['self.navigator'],
      EventSource: ['new EventSource("http://invalid")'],
      Worker: [],
      MessageEvent: ['new MessageEvent("message", { data: 5 })'],
      DedicatedWorkerGlobalScope: ['self'],
    });
  }
);

done();