aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/websockets/Create-Secure-verify-url-set-non-default-port.any.js
blob: 8ed985b58e2bd9fb33bfd39683a9f0504084fd62 (plain) (blame)
1
2
3
4
5
6
7
// META: script=websocket.sub.js

test(function() {
  var urlNonDefaultPort = "wss://" + __SERVER__NAME + ":" + __NEW__SECURE__PORT + "/" + __PATH;
  var wsocket = new WebSocket(urlNonDefaultPort);
  assert_equals(wsocket.url, urlNonDefaultPort, "wsocket.url is set correctly");
}, "Create Secure WebSocket - wsocket.url should be set correctly")