https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 17b2ba52a63e251eea16b419bcd31846f4aebb0f authored by Domenic Denicola on 13 October 2017, 20:36:23 UTC
Test customized built-in elements createElement/createElementNS
Tip revision: 17b2ba5
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