Files
firefox/testing/web-platform/tests/workers/semantics/interface-objects/003.html
T
Nate Chapin fd2de76181 Bug 1501887 [wpt PR 13712] - Expect CanvasGradient and CanvasPattern to be exposed in workers in workers/semantics/interface-objects, a=testonly
Automatic update from web-platform-testsExpect CanvasGradient and CanvasPattern to be exposed in workers in workers/semantics/interface-objects

The spec has had them exposed on workers since
https://github.com/whatwg/html/commit/aedc72daef50aa472b36f158633eb339e7d5ca20

Bug: 655458
Change-Id: Ibb9c161d430cbdfeeb3afde1922bf96494c218f6
Reviewed-on: https://chromium-review.googlesource.com/c/1297284
Commit-Queue: Hiroki Nakagawa <[email protected]>
Reviewed-by: Hiroki Nakagawa <[email protected]>
Cr-Commit-Position: refs/heads/master@{#602576}

--

wpt-commits: 4613b84eacad8937f5d55d2bc8d9f7dce3d6df5d
wpt-pr: 13712
2018-11-10 09:02:06 +00:00

109 lines
2.4 KiB
HTML

<!--
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);
}
/*
-->
<!doctype html>
<title>available interface objects in shared worker</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
setup(function() {
window.worker = new SharedWorker('#');
worker.port.onmessage = function(e) {
var result = e.data;
for (var i = 0; i < result.length; ++i) {
test(function() {
assert_true(result[i][1]);
}, "The " + result[i][0] + " interface object should be exposed");
}
done();
}
}, {explicit_done: true});
</script>
<!--
*/
//-->