https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 9f7520e98307e7c61ad3a39b6dc1a2d1ecf96b75 authored by Anne van Kesteren on 13 September 2016, 09:05:52 UTC
Test for specific cross-origin object exceptions
Tip revision: 9f7520e
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