1
0
Fork 0
firefox/testing/web-platform/tests/websockets/Create-valid-url-protocol-empty.any.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

10 lines
354 B
JavaScript

// META: script=constants.sub.js
// META: variant=?default
// META: variant=?wpt_flags=h2
// META: variant=?wss
test(function() {
var wsocket = CreateWebSocket(true, false);
assert_equals(wsocket.protocol, "", "protocol should be empty");
wsocket.close();
}, "Create WebSocket - wsocket.protocol should be empty before connection is established")