003.any.js (1725B)
1 // META: global=sharedworker 2 3 var expected = [ 4 // https://html.spec.whatwg.org/ 5 "WorkerGlobalScope", 6 "SharedWorkerGlobalScope", 7 "Worker", 8 "MessagePort", 9 "MessageEvent", 10 "WorkerNavigator", 11 "MessageChannel", 12 "WorkerLocation", 13 "ImageData", 14 "ImageBitmap", 15 "CanvasGradient", 16 "CanvasPattern", 17 "Path2D", 18 "PromiseRejectionEvent", 19 "EventSource", 20 "BroadcastChannel", 21 // https://websockets.spec.whatwg.org/ 22 "WebSocket", 23 "CloseEvent", 24 // https://tc39.github.io/ecma262/ 25 "ArrayBuffer", 26 "Int8Array", 27 "Uint8Array", 28 "Uint8ClampedArray", 29 "Int16Array", 30 "Uint16Array", 31 "Int32Array", 32 "Uint32Array", 33 "Float16Array", 34 "Float32Array", 35 "Float64Array", 36 "DataView", 37 // https://xhr.spec.whatwg.org/ 38 "XMLHttpRequestEventTarget", 39 "XMLHttpRequestUpload", 40 "XMLHttpRequest", 41 "ProgressEvent", 42 "FormData", 43 // https://url.spec.whatwg.org/ 44 "URL", 45 "URLSearchParams", 46 // https://w3c.github.io/FileAPI/ 47 "File", 48 "Blob", 49 "FileList", 50 "FileReader", 51 "FileReaderSync", 52 // https://dom.spec.whatwg.org/ 53 "EventTarget", 54 "ErrorEvent", 55 "Event", 56 "CustomEvent", 57 // https://webidl.spec.whatwg.org/ 58 "DOMException", 59 // https://streams.spec.whatwg.org/ 60 "ReadableStream", 61 "WritableStream", 62 "ByteLengthQueuingStrategy", 63 "CountQueuingStrategy", 64 // http://w3c.github.io/IndexedDB/ 65 "IDBRequest", 66 "IDBOpenDBRequest", 67 "IDBVersionChangeEvent", 68 "IDBFactory", 69 "IDBDatabase", 70 "IDBObjectStore", 71 "IDBIndex", 72 "IDBKeyRange", 73 "IDBCursor", 74 "IDBCursorWithValue", 75 "IDBTransaction", 76 ]; 77 78 for (var i = 0; i < expected.length; ++i) { 79 test(function() { 80 assert_true(expected[i] in self); 81 }, "The " + expected[i] + " interface object should be exposed"); 82 }