https://github.com/web-platform-tests/wpt
Raw File
Tip revision: d59f66bb3cb484d4253d2509e9a8c3a2575438d4 authored by Raymond Toy on 06 April 2018, 17:48:00 UTC
Move AudioNode tests to WPT
Tip revision: d59f66b
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