Update web-platform-tests to revision 3ec34e5a2c8cbeeb7fad521cce0daf923b272a92

This commit is contained in:
WPT Sync Bot 2018-03-19 21:30:49 -04:00
parent e9fdcdc785
commit d67bfb7ff8
58 changed files with 2014 additions and 848 deletions

View file

@ -646,7 +646,12 @@ def get_ports(config, ssl_environment):
def normalise_config(config, ports):
host = config["host"]
if "host" in config:
logger.warning("host in config is deprecated; use browser_host instead")
host = config["host"]
else:
host = config["browser_host"]
domains = get_subdomains(host)
not_domains = get_not_subdomains(host)
@ -675,6 +680,8 @@ def normalise_config(config, ports):
config_["not_domains"] = not_domains
config_["ports"] = ports_
config_["bind_address"] = bind_address
if config.get("server_host", None) is None:
config_["server_host"] = host
return config_
@ -692,7 +699,7 @@ def get_ssl_config(config, ssl_environment):
def start(config, ssl_environment, routes, **kwargs):
host = config.get("host_ip") or config["host"]
host = config["server_host"]
ports = get_ports(config, ssl_environment)
paths = get_paths(config)
bind_address = config["bind_address"]
@ -815,7 +822,7 @@ def run(**kwargs):
with get_ssl_environment(config) as ssl_env:
ports = get_ports(config, ssl_env)
config = normalise_config(config, ports)
host = config["host"]
host = config["browser_host"]
bind_address = config["bind_address"]
if config["check_subdomains"]: