https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 0823b532c7cb750c90e8353fda3824a531a96c64 authored by Michael[tm] Smith on 17 August 2015, 02:09:28 UTC
Replaced some simple assert_object_equals cases.
Tip revision: 0823b53
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