mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
test: update wpt test for webmessaging/broadcastchannel
PR-URL: https://github.com/nodejs/node/pull/55205 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
cc775d314a
commit
94e863cdb7
5 files changed
+14
-3
No files matched your search
Vendored
+1
-1
@@ -34,7 +34,7 @@ Last update:
|
||||
- wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi
|
||||
- WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/bef6fa3566/WebCryptoAPI
|
||||
- webidl/ecmascript-binding/es-exceptions: https://github.com/web-platform-tests/wpt/tree/a370aad338/webidl/ecmascript-binding/es-exceptions
|
||||
- webmessaging/broadcastchannel: https://github.com/web-platform-tests/wpt/tree/e97fac4791/webmessaging/broadcastchannel
|
||||
- webmessaging/broadcastchannel: https://github.com/web-platform-tests/wpt/tree/6495c91853/webmessaging/broadcastchannel
|
||||
- webstorage: https://github.com/web-platform-tests/wpt/tree/9dafa89214/webstorage
|
||||
|
||||
[Web Platform Tests]: https://github.com/web-platform-tests/wpt
|
||||
|
||||
Vendored
+1
-1
@@ -96,7 +96,7 @@
|
||||
"path": "webidl/ecmascript-binding/es-exceptions"
|
||||
},
|
||||
"webmessaging/broadcastchannel": {
|
||||
"commit": "e97fac4791931fb7455ba3fad759d362c7108b09",
|
||||
"commit": "6495c91853a3cf028a401cf4d228fc0b6a5465e4",
|
||||
"path": "webmessaging/broadcastchannel"
|
||||
},
|
||||
"webstorage": {
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
features:
|
||||
- name: broadcast-channel
|
||||
files: "**"
|
||||
@@ -1,3 +1,11 @@
|
||||
test(function() {
|
||||
assert_throws_js(
|
||||
TypeError,
|
||||
() => BroadcastChannel(""),
|
||||
"Calling BroadcastChannel constructor without 'new' must throw"
|
||||
);
|
||||
}, "BroadcastChannel constructor called as normal function");
|
||||
|
||||
async_test(t => {
|
||||
let c1 = new BroadcastChannel('eventType');
|
||||
let c2 = new BroadcastChannel('eventType');
|
||||
|
||||
@@ -256,7 +256,7 @@ function postMessageToWorkerWorkerCode(workerName, channelName) {
|
||||
// Since the worker has closed, it's not expected that the
|
||||
// BroadcastChannel will receive messages (there's a separate test for
|
||||
// that), so just indicate directly that it's ready to test receiving
|
||||
// a message from the parent despite the possibility of a race condition.
|
||||
// a message from the parent dispite the possibility of a race condition.
|
||||
postMessage('ready');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user