https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 886a7ba852430ff4b0449b232b934d865acf24f6 authored by Domenic Denicola on 15 October 2016, 00:00:07 UTC
Update javascript: URL return value tests
Tip revision: 886a7ba
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