https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 3782ba249bb838c02509fea8158ff99be704c3c9 authored by Philip Jägenstedt on 20 October 2016, 12:03:00 UTC
Write more tests for HTMLAllCollection (document.all)
Tip revision: 3782ba2
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