https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 4073c528708a2e2bfe6fe0ff9c948b3cc2ed3121 authored by Nicolás Peña on 21 March 2018, 23:20:26 UTC
Move remaining Intel/resource-timing/ tests to WPT
Tip revision: 4073c52
constants.js
//This file requires server-side substitutions and must be included as constants.js?pipe=sub

var PORT = "{{ports[ws][0]}}";
var PORT_SSL = "{{ports[wss][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