test: update wpt test for webmessaging/broadcastchannel · nodejs/node@73ab14f · GitHub
Skip to content

Commit 73ab14f

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

5 files changed

Lines changed: 14 additions & 3 deletions

File tree

test/fixtures/wpt/README.md

Lines changed: 1 addition & 1 deletion

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

0 commit comments

Comments
 (0)