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/002.worker.html - WPT Dashboard Interop Dashboard
importScripts("/resources/testharness.js");
var unexpected = [
"SharedWorker",
"CanvasPath",
"SharedWorkerGlobalScope",
"AbstractView",
"AbstractWorker",
"ApplicationCache",
"Location",
"Navigator",
"Audio",
"HTMLCanvasElement",
"Path",
"CanvasProxy",
"CanvasRenderingContext2D",
"DrawingStyle",
"BeforeUnloadEvent",
"PopStateEvent",
"HashChangeEvent",
"PageTransitionEvent",
"DOMImplementation",
"IDBEnvironment",
"Database",
"UIEvent",
"FocusEvent",
"MouseEvent",
"WheelEvent",
"InputEvent",
"KeyboardEvent",
"CompositionEvent",
"VTTCue",
"VTTRegion",
];
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.");
}
done();