https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 53d7c8f7c348cc8b463b584f94df10600f939fd4 authored by Robert Ma on 16 March 2018, 16:18:07 UTC
Try to fix a WebDriver error
Tip revision: 53d7c8f
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