https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 937e5a795fd890bf2d3925589ae87313b6500549 authored by Raymond Toy on 28 June 2018, 17:31:35 UTC
Enable analyser tests to run with Chrome
Tip revision: 937e5a7
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