mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision 332b7c4e711d75ead4c0dfbf7f6f0b683206756d
This commit is contained in:
parent
46611b012e
commit
b60afa18f5
389 changed files with 7767 additions and 2421 deletions
|
@ -0,0 +1,83 @@
|
|||
// META: global=!default,sharedworker
|
||||
|
||||
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",
|
||||
];
|
||||
|
||||
for (var i = 0; i < unexpected.length; ++i) {
|
||||
test(function() {
|
||||
assert_true(unexpected[i] in self);
|
||||
}, "The " + unexpected[i] + " interface object should not be exposed");
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
<!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('003.js');
|
||||
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>
|
|
@ -1,82 +0,0 @@
|
|||
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);
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
// META: global=!default,sharedworker
|
||||
|
||||
var unexpected = [
|
||||
// https://html.spec.whatwg.org/
|
||||
"DedicatedWorkerGlobalScope",
|
||||
"AbstractView",
|
||||
"AbstractWorker",
|
||||
"Location",
|
||||
"Navigator",
|
||||
"DOMImplementation",
|
||||
"Audio",
|
||||
"HTMLCanvasElement",
|
||||
"Path",
|
||||
"TextMetrics",
|
||||
"CanvasProxy",
|
||||
"CanvasRenderingContext2D",
|
||||
"DrawingStyle",
|
||||
"PopStateEvent",
|
||||
"HashChangeEvent",
|
||||
"PageTransitionEvent",
|
||||
// https://streams.spec.whatwg.org/
|
||||
"ReadableStreamDefaultReader",
|
||||
"ReadableStreamBYOBReader",
|
||||
"ReadableStreamDefaultController",
|
||||
"ReadableByteStreamController",
|
||||
"WritableStreamDefaultWriter",
|
||||
"WritableStreamDefaultController",
|
||||
// http://w3c.github.io/IndexedDB/
|
||||
"IDBEnvironment",
|
||||
// https://www.w3.org/TR/2010/NOTE-webdatabase-20101118/
|
||||
"Database",
|
||||
// https://w3c.github.io/uievents/
|
||||
"UIEvent",
|
||||
"FocusEvent",
|
||||
"MouseEvent",
|
||||
"WheelEvent",
|
||||
"InputEvent",
|
||||
"KeyboardEvent",
|
||||
"CompositionEvent",
|
||||
];
|
||||
|
||||
for (var i = 0; i < unexpected.length; ++i) {
|
||||
test(function() {
|
||||
assert_false(unexpected[i] in self);
|
||||
}, "The " + unexpected[i] + " interface object should not be exposed");
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
<!doctype html>
|
||||
<title>unavailable 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('004.js');
|
||||
worker.port.onmessage = function(e) {
|
||||
var result = e.data;
|
||||
for (var i = 0; i < result.length; ++i) {
|
||||
test(function() {
|
||||
assert_false(result[i][1]);
|
||||
}, "The " + result[i][0] + " interface object should not be exposed");
|
||||
}
|
||||
done();
|
||||
}
|
||||
}, {explicit_done: true});
|
||||
</script>
|
|
@ -1,45 +0,0 @@
|
|||
onconnect = function(e) {
|
||||
var unexpected = [
|
||||
// https://html.spec.whatwg.org/
|
||||
"DedicatedWorkerGlobalScope",
|
||||
"AbstractView",
|
||||
"AbstractWorker",
|
||||
"Location",
|
||||
"Navigator",
|
||||
"DOMImplementation",
|
||||
"Audio",
|
||||
"HTMLCanvasElement",
|
||||
"Path",
|
||||
"TextMetrics",
|
||||
"CanvasProxy",
|
||||
"CanvasRenderingContext2D",
|
||||
"DrawingStyle",
|
||||
"PopStateEvent",
|
||||
"HashChangeEvent",
|
||||
"PageTransitionEvent",
|
||||
// https://streams.spec.whatwg.org/
|
||||
"ReadableStreamDefaultReader",
|
||||
"ReadableStreamBYOBReader",
|
||||
"ReadableStreamDefaultController",
|
||||
"ReadableByteStreamController",
|
||||
"WritableStreamDefaultWriter",
|
||||
"WritableStreamDefaultController",
|
||||
// http://w3c.github.io/IndexedDB/
|
||||
"IDBEnvironment",
|
||||
// https://www.w3.org/TR/2010/NOTE-webdatabase-20101118/
|
||||
"Database",
|
||||
// https://w3c.github.io/uievents/
|
||||
"UIEvent",
|
||||
"FocusEvent",
|
||||
"MouseEvent",
|
||||
"WheelEvent",
|
||||
"InputEvent",
|
||||
"KeyboardEvent",
|
||||
"CompositionEvent",
|
||||
];
|
||||
var result = [];
|
||||
for (var i = 0; i < unexpected.length; ++i) {
|
||||
result.push([unexpected[i], unexpected[i] in self]);
|
||||
}
|
||||
e.ports[0].postMessage(result);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue