https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 04efd6e1335a95c91193bee07836e5788c79a0d7 authored by James Graham on 02 September 2015, 11:49:44 UTC
Fix script scheduling test and make it less timing sensitive
Tip revision: 04efd6e
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