Files
firefox/testing/web-platform/tests/workers/semantics/interface-objects/003.js
T
Tom Schuster 5b4c4e2253 Bug 1557736 - Mechanical fix for polyglot HTML/JS tests. r=jgraham
This was done automatically by using the following script: https://gist.github.com/evilpie/50f63f485799c3ac9db3e93142562bca

Do note that this produces some buggy results, which I manually fixed in the next commit.

Differential Revision: https://phabricator.services.mozilla.com/D34840
2019-06-13 17:14:56 +00:00

82 lines
1.8 KiB
JavaScript

onconnect = function(e) {
var expected = [
// https://html.spec.whatwg.org/
"ApplicationCache",
"WorkerGlobalScope",
"SharedWorkerGlobalScope",
"Worker",
"SharedWorker",
"MessagePort",
"MessageEvent",
"WorkerNavigator",
"MessageChannel",
"WorkerLocation",
"ImageData",
"ImageBitmap",
"CanvasGradient",
"CanvasPattern",
"CanvasPath",
"Path2D",
"PromiseRejectionEvent",
"EventSource",
"WebSocket",
"CloseEvent",
"BroadcastChannel",
// https://tc39.github.io/ecma262/
"ArrayBuffer",
"Int8Array",
"Uint8Array",
"Uint8ClampedArray",
"Int16Array",
"Uint16Array",
"Int32Array",
"Uint32Array",
"Float32Array",
"Float64Array",
"DataView",
// https://xhr.spec.whatwg.org/
"XMLHttpRequestEventTarget",
"XMLHttpRequestUpload",
"XMLHttpRequest",
"ProgressEvent",
"FormData",
// https://url.spec.whatwg.org/
"URL",
"URLSearchParams",
// https://w3c.github.io/FileAPI/
"File",
"Blob",
"FileList",
"FileReader",
"FileReaderSync",
// https://dom.spec.whatwg.org/
"EventTarget",
"ErrorEvent",
"Event",
"CustomEvent",
// http://heycam.github.io/webidl/
"DOMException",
// https://streams.spec.whatwg.org/
"ReadableStream",
"WritableStream",
"ByteLengthQueuingStrategy",
"CountQueuingStrategy",
// http://w3c.github.io/IndexedDB/
"IDBRequest",
"IDBOpenDBRequest",
"IDBVersionChangeEvent",
"IDBFactory",
"IDBDatabase",
"IDBObjectStore",
"IDBIndex",
"IDBKeyRange",
"IDBCursor",
"IDBCursorWithValue",
"IDBTransaction",
];
var result = [];
for (var i = 0; i < expected.length; ++i) {
result.push([expected[i], expected[i] in self]);
}
e.ports[0].postMessage(result);
}