mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255
This commit is contained in:
parent
b2a5225831
commit
1a81b18b9f
12321 changed files with 544385 additions and 6 deletions
18
tests/wpt/web-platform-tests/websockets/constants.js
Normal file
18
tests/wpt/web-platform-tests/websockets/constants.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
//This file requires server-side substitutions and must be included as constants.js?pipe=config
|
||||
var DOMAIN_FOR_WS_TESTS = "{{host}}";
|
||||
var DOMAIN_FOR_WSS_TESTS = "{{host}}";
|
||||
|
||||
var PORT = "{{ports[ws][0]}}";
|
||||
//FIXME: Add support for wss
|
||||
var PORT_SSL = "{{ports[ws][0]}}";
|
||||
|
||||
// logic for using wss URLs instead of ws
|
||||
var SCHEME_AND_DOMAIN;
|
||||
var SCHEME_DOMAIN_PORT;
|
||||
if (location.search == '?wss') {
|
||||
SCHEME_AND_DOMAIN = 'wss://'+DOMAIN_FOR_WSS_TESTS;
|
||||
SCHEME_DOMAIN_PORT = SCHEME_AND_DOMAIN + ":" + PORT_SSL;
|
||||
} else {
|
||||
SCHEME_AND_DOMAIN = 'ws://'+DOMAIN_FOR_WS_TESTS;
|
||||
SCHEME_DOMAIN_PORT = SCHEME_AND_DOMAIN + ":" + PORT;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue