summaryrefslogtreecommitdiffstats
path: root/test/wpt/tests/websockets/Create-valid-url-protocol-empty.any.js
blob: f18a9d89084955d4f50029c224fbed3e9e96dbba (plain)
1
2
3
4
5
6
7
8
9
10
// 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")