summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/websockets/Create-valid-url-protocol-empty.any.js
blob: 9e1de6dab46c5d7e3bc8bcaf2a49bb227e7c2411 (plain)
1
2
3
4
5
6
7
8
9
10
// META: script=constants.sub.js
// META: variant=
// 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")