Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /workers/semantics/interface-objects/004.any.sharedworker.html - WPT Dashboard Interop Dashboard
// META: global=sharedworker
var unexpected = [
"ApplicationCache",
"SharedWorker",
"CanvasPath",
"DedicatedWorkerGlobalScope",
"AbstractView",
"AbstractWorker",
"Location",
"Navigator",
"DOMImplementation",
"Audio",
"HTMLCanvasElement",
"Path",
"CanvasProxy",
"CanvasRenderingContext2D",
"DrawingStyle",
"PopStateEvent",
"HashChangeEvent",
"PageTransitionEvent",
"IDBEnvironment",
"Database",
"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");
}