Skip to content

Commit 94e863c

Browse files
Nahee-Parkaduh95
authored andcommitted
test: update wpt test for webmessaging/broadcastchannel
PR-URL: #55205 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent cc775d3 commit 94e863c

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

test/fixtures/wpt/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Last update:
3434
- wasm/webapi: https://github.com/web-platform-tests/wpt/tree/fd1b23eeaa/wasm/webapi
3535
- WebCryptoAPI: https://github.com/web-platform-tests/wpt/tree/bef6fa3566/WebCryptoAPI
3636
- webidl/ecmascript-binding/es-exceptions: https://github.com/web-platform-tests/wpt/tree/a370aad338/webidl/ecmascript-binding/es-exceptions
37-
- webmessaging/broadcastchannel: https://github.com/web-platform-tests/wpt/tree/e97fac4791/webmessaging/broadcastchannel
37+
- webmessaging/broadcastchannel: https://github.com/web-platform-tests/wpt/tree/6495c91853/webmessaging/broadcastchannel
3838
- webstorage: https://github.com/web-platform-tests/wpt/tree/9dafa89214/webstorage
3939

4040
[Web Platform Tests]: https://github.com/web-platform-tests/wpt

test/fixtures/wpt/versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"path": "webidl/ecmascript-binding/es-exceptions"
9797
},
9898
"webmessaging/broadcastchannel": {
99-
"commit": "e97fac4791931fb7455ba3fad759d362c7108b09",
99+
"commit": "6495c91853a3cf028a401cf4d228fc0b6a5465e4",
100100
"path": "webmessaging/broadcastchannel"
101101
},
102102
"webstorage": {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
features:
2+
- name: broadcast-channel
3+
files: "**"

test/fixtures/wpt/webmessaging/broadcastchannel/basics.any.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
test(function() {
2+
assert_throws_js(
3+
TypeError,
4+
() => BroadcastChannel(""),
5+
"Calling BroadcastChannel constructor without 'new' must throw"
6+
);
7+
}, "BroadcastChannel constructor called as normal function");
8+
19
async_test(t => {
210
let c1 = new BroadcastChannel('eventType');
311
let c2 = new BroadcastChannel('eventType');

test/fixtures/wpt/webmessaging/broadcastchannel/workers.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@
256256
// Since the worker has closed, it's not expected that the
257257
// BroadcastChannel will receive messages (there's a separate test for
258258
// that), so just indicate directly that it's ready to test receiving
259-
// a message from the parent despite the possibility of a race condition.
259+
// a message from the parent dispite the possibility of a race condition.
260260
postMessage('ready');
261261
}
262262
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy