summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/semantics/interface-objects/004.any.js
blob: 822379e2c90767ff8c37dde68d5419ef42927a51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// META: global=sharedworker

var unexpected = [
  // https://html.spec.whatwg.org/
  "DedicatedWorkerGlobalScope",
  "AbstractView",
  "AbstractWorker",
  "Location",
  "Navigator",
  "DOMImplementation",
  "Audio",
  "HTMLCanvasElement",
  "Path",
  "CanvasProxy",
  "CanvasRenderingContext2D",
  "DrawingStyle",
  "PopStateEvent",
  "HashChangeEvent",
  "PageTransitionEvent",
  // http://w3c.github.io/IndexedDB/
  "IDBEnvironment",
  // https://www.w3.org/TR/2010/NOTE-webdatabase-20101118/
  "Database",
  // https://w3c.github.io/uievents/
  "UIEvent",
  "FocusEvent",
  "MouseEvent",
  "WheelEvent",
  "InputEvent",
  "KeyboardEvent",
  "CompositionEvent",
];

for (var i = 0; i < unexpected.length; ++i) {
  test(function() {
    assert_false(unexpected[i] in self);
  }, "The " + unexpected[i] + " interface object should not be exposed");
}