https://github.com/web-platform-tests/wpt
Raw File
Tip revision: af85af6a74cbe1cda0c18d5e554a1008bdc8c2a3 authored by Matt Wolenetz on 07 September 2016, 02:42:22 UTC
Update the exception expected to be TypeError
Tip revision: af85af6
constants.js
//This file requires server-side substitutions and must be included as constants.js?pipe=sub

var PORT = "{{ports[ws][0]}}";
//FIXME: Add support for wss
var PORT_SSL = "{{ports[ws][0]}}";

var SCHEME_DOMAIN_PORT;
if (location.search == '?wss') {
  SCHEME_DOMAIN_PORT = 'wss://{{host}}:' + PORT_SSL;
} else {
  SCHEME_DOMAIN_PORT = 'ws://{{host}}:' + PORT;
}
back to top