001.worker.js (1774B)
1 importScripts("/resources/testharness.js"); 2 var expected = [ 3 // https://html.spec.whatwg.org/ 4 "WorkerGlobalScope", 5 "DedicatedWorkerGlobalScope", 6 "Worker", 7 "MessagePort", 8 "MessageEvent", 9 "WorkerNavigator", 10 "MessageChannel", 11 "WorkerLocation", 12 "ImageData", 13 "ImageBitmap", 14 "CanvasGradient", 15 "CanvasPattern", 16 "TextMetrics", 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 for (var i = 0; i < expected.length; ++i) { 78 test(function () { 79 assert_own_property(self, expected[i]); 80 }, "The " + expected[i] + " interface object should be exposed."); 81 } 82 done();