https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 0ebe89edfb1677112c9db968e7fa5e6b755326d1 authored by Anne van Kesteren on 28 May 2018, 13:26:49 UTC
Use the The 3-Clause BSD License from opensource.org
Tip revision: 0ebe89e
Create-verify-url-set-non-default-port.any.js
// META: script=websocket.sub.js

test(function() {
  var urlNonDefaultPort = "ws://" + __SERVER__NAME + ":" + __NEW__PORT + "/" + __PATH;
  var wsocket = new WebSocket(urlNonDefaultPort);
  assert_equals(wsocket.url, urlNonDefaultPort, "wsocket.url is set correctly");
}, "W3C WebSocket API - Create WebSocket - wsocket.url should be set correctly");
back to top