| OLD | NEW |
| (Empty) |
| 1 <!-- | |
| 2 onconnect = function(e) { | |
| 3 var expected = [ | |
| 4 // https://html.spec.whatwg.org/ | |
| 5 "ApplicationCache", | |
| 6 "WorkerGlobalScope", | |
| 7 "SharedWorkerGlobalScope", | |
| 8 "Worker", | |
| 9 "SharedWorker", | |
| 10 "MessagePort", | |
| 11 "MessageEvent", | |
| 12 "WorkerNavigator", | |
| 13 "MessageChannel", | |
| 14 "WorkerLocation", | |
| 15 "ImageData", | |
| 16 "ImageBitmap", | |
| 17 "CanvasPath", | |
| 18 "Path2D", | |
| 19 "PromiseRejectionEvent", | |
| 20 "EventSource", | |
| 21 "WebSocket", | |
| 22 "CloseEvent", | |
| 23 "BroadcastChannel", | |
| 24 // https://tc39.github.io/ecma262/ | |
| 25 "ArrayBuffer", | |
| 26 "Int8Array", | |
| 27 "Uint8Array", | |
| 28 "Uint8ClampedArray", | |
| 29 "Int16Array", | |
| 30 "Uint16Array", | |
| 31 "Int32Array", | |
| 32 "Uint32Array", | |
| 33 "Float32Array", | |
| 34 "Float64Array", | |
| 35 "DataView", | |
| 36 // https://xhr.spec.whatwg.org/ | |
| 37 "XMLHttpRequestEventTarget", | |
| 38 "XMLHttpRequestUpload", | |
| 39 "XMLHttpRequest", | |
| 40 "ProgressEvent", | |
| 41 "FormData", | |
| 42 // https://url.spec.whatwg.org/ | |
| 43 "URL", | |
| 44 "URLSearchParams", | |
| 45 // https://w3c.github.io/FileAPI/ | |
| 46 "File", | |
| 47 "Blob", | |
| 48 "FileList", | |
| 49 "FileReader", | |
| 50 "FileReaderSync", | |
| 51 // https://dom.spec.whatwg.org/ | |
| 52 "EventTarget", | |
| 53 "ErrorEvent", | |
| 54 "Event", | |
| 55 "CustomEvent", | |
| 56 // http://heycam.github.io/webidl/ | |
| 57 "DOMException", | |
| 58 // https://streams.spec.whatwg.org/ | |
| 59 "ReadableStream", | |
| 60 "WritableStream", | |
| 61 "ByteLengthQueuingStrategy", | |
| 62 "CountQueuingStrategy", | |
| 63 // http://w3c.github.io/IndexedDB/ | |
| 64 "IDBRequest", | |
| 65 "IDBOpenDBRequest", | |
| 66 "IDBVersionChangeEvent", | |
| 67 "IDBFactory", | |
| 68 "IDBDatabase", | |
| 69 "IDBObjectStore", | |
| 70 "IDBIndex", | |
| 71 "IDBKeyRange", | |
| 72 "IDBCursor", | |
| 73 "IDBCursorWithValue", | |
| 74 "IDBTransaction", | |
| 75 ]; | |
| 76 var result = []; | |
| 77 for (var i = 0; i < expected.length; ++i) { | |
| 78 result.push([expected[i], expected[i] in self]); | |
| 79 } | |
| 80 e.ports[0].postMessage(result); | |
| 81 } | |
| 82 /* | |
| 83 --> | |
| 84 <!doctype html> | |
| 85 <title>available interface objects in shared worker</title> | |
| 86 <script src="/resources/testharness.js"></script> | |
| 87 <script src="/resources/testharnessreport.js"></script> | |
| 88 <div id=log></div> | |
| 89 <script> | |
| 90 setup(function() { | |
| 91 window.worker = new SharedWorker('#'); | |
| 92 worker.port.onmessage = function(e) { | |
| 93 var result = e.data; | |
| 94 for (var i = 0; i < result.length; ++i) { | |
| 95 test(function() { | |
| 96 assert_true(result[i][1]); | |
| 97 }, "The " + result[i][0] + " interface object should be exposed"); | |
| 98 } | |
| 99 done(); | |
| 100 } | |
| 101 }, {explicit_done: true}); | |
| 102 </script> | |
| 103 <!-- | |
| 104 */ | |
| 105 //--> | |
| 106 | |
| OLD | NEW |