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/003.any.sharedworker.html - WPT Dashboard Interop Dashboard
// META: global=sharedworker
var expected = [
"WorkerGlobalScope",
"SharedWorkerGlobalScope",
"Worker",
"MessagePort",
"MessageEvent",
"WorkerNavigator",
"MessageChannel",
"WorkerLocation",
"ImageData",
"ImageBitmap",
"CanvasGradient",
"CanvasPattern",
"Path2D",
"PromiseRejectionEvent",
"EventSource",
"BroadcastChannel",
"WebSocket",
"CloseEvent",
"ArrayBuffer",
"Int8Array",
"Uint8Array",
"Uint8ClampedArray",
"Int16Array",
"Uint16Array",
"Int32Array",
"Uint32Array",
"Float16Array",
"Float32Array",
"Float64Array",
"DataView",
"XMLHttpRequestEventTarget",
"XMLHttpRequestUpload",
"XMLHttpRequest",
"ProgressEvent",
"FormData",
"URL",
"URLSearchParams",
"File",
"Blob",
"FileList",
"FileReader",
"FileReaderSync",
"EventTarget",
"ErrorEvent",
"Event",
"CustomEvent",
"DOMException",
"ReadableStream",
"WritableStream",
"ByteLengthQueuingStrategy",
"CountQueuingStrategy",
"IDBRequest",
"IDBOpenDBRequest",
"IDBVersionChangeEvent",
"IDBFactory",
"IDBDatabase",
"IDBObjectStore",
"IDBIndex",
"IDBKeyRange",
"IDBCursor",
"IDBCursorWithValue",
"IDBTransaction",
];
for (var i = 0; i < expected.length; ++i) {
test(function() {
assert_true(expected[i] in self);
}, "The " + expected[i] + " interface object should be exposed");
}