summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2021-06-21 19:53:52 +0200
committerGitHub <noreply@github.com>2021-06-21 19:53:52 +0200
commitf9ff981daf6931a01e1516db0b5714e7a94f145b (patch)
tree677a6e3f12c86210cc635e68b9afc06c4cb1d2f9 /tools
parenta2f939b99c43c6344f109144d7b01c95294a6f8b (diff)
feat: `MessageChannel` and `MessagePort` (#11051)
This commit introduces support for MessageChannel and MessagePort. MessagePorts can be transfered across other MessagePorts.
Diffstat (limited to 'tools')
-rw-r--r--tools/wpt/expectation.json40
-rw-r--r--tools/wpt/runner.ts2
2 files changed, 35 insertions, 7 deletions
diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json
index 962c12de6..3f30e9ca9 100644
--- a/tools/wpt/expectation.json
+++ b/tools/wpt/expectation.json
@@ -234,7 +234,9 @@
},
"hr-time": {
"monotonic-clock.any.html": true,
- "basic.any.html": ["Performance interface extends EventTarget."],
+ "basic.any.html": [
+ "Performance interface extends EventTarget."
+ ],
"idlharness.any.html": [
"Performance interface: existence and properties of interface object",
"Performance interface: existence and properties of interface prototype object",
@@ -587,6 +589,8 @@
],
"idlharness.any.html": true,
"url-constructor.any.html": [
+ "Parsing: <foo://ho|st/> against <about:blank>",
+ "Parsing: <http://ho%7Cst/> against <about:blank>",
"Parsing: <file://%43%7C> against <about:blank>",
"Parsing: <file://%43|> against <about:blank>",
"Parsing: <file://C%7C> against <about:blank>",
@@ -898,9 +902,7 @@
"FileAPI": {
"blob": {
"Blob-array-buffer.any.html": true,
- "Blob-constructor.any.html": [
- "Passing a FrozenArray as the blobParts array should work (FrozenArray<MessagePort>)."
- ],
+ "Blob-constructor.any.html": true,
"Blob-slice-overflow.any.html": true,
"Blob-slice.any.html": true,
"Blob-stream.any.html": true,
@@ -1010,7 +1012,33 @@
"postMessage results in correct event"
],
"interface.any.html": true
- }
+ },
+ "message-channels": {
+ "basics.any.html": true,
+ "close.any.html": true,
+ "dictionary-transferrable.any.html": false,
+ "implied-start.any.html": true,
+ "no-start.any.html": true,
+ "user-activation.tentative.any.html": false,
+ "worker-post-after-close.any.html": false,
+ "worker.any.html": false
+ },
+ "Channel_postMessage_Blob.any.html": false,
+ "Channel_postMessage_DataCloneErr.any.html": true,
+ "Channel_postMessage_clone_port.any.html": true,
+ "Channel_postMessage_clone_port_error.any.html": true,
+ "Channel_postMessage_event_properties.any.html": true,
+ "Channel_postMessage_ports_readonly_array.any.html": false,
+ "Channel_postMessage_target_source.any.html": true,
+ "Channel_postMessage_transfer_xsite_incoming_messages.window.html": false,
+ "Channel_postMessage_with_transfer_entangled.any.html": true,
+ "Channel_postMessage_with_transfer_incoming_messages.any.html": true,
+ "Channel_postMessage_with_transfer_outgoing_messages.any.html": true,
+ "MessageEvent-trusted.any.html": false,
+ "MessageEvent-trusted.window.html": false,
+ "MessageEvent.any.html": true,
+ "MessagePort_initial_disabled.any.html": true,
+ "MessagePort_onmessage_start.any.html": true
},
"xhr": {
"formdata": {
@@ -1209,4 +1237,4 @@
"eventhandlers.any.html?wss": false,
"referrer.any.html": true
}
-}
+} \ No newline at end of file
diff --git a/tools/wpt/runner.ts b/tools/wpt/runner.ts
index 3eb476fc9..3886d34d5 100644
--- a/tools/wpt/runner.ts
+++ b/tools/wpt/runner.ts
@@ -122,7 +122,7 @@ export async function runSingleTest(
harnessStatus = JSON.parse(line.slice(5));
} else {
stderr += line + "\n";
- console.error(stderr);
+ console.error(line);
}
}