mirror of
https://github.com/servo/servo
synced 2026-05-12 18:06:32 +02:00
39 lines
852 B
JavaScript
39 lines
852 B
JavaScript
// 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");
|
|
}
|