Update web-platform-tests to revision b8669365b81965f5400d6b13a7783415b44e679d

This commit is contained in:
WPT Sync Bot 2019-04-03 21:42:50 -04:00
parent 6fa1853bb1
commit bde105ca2e
42 changed files with 933 additions and 241 deletions

View file

@ -56,15 +56,29 @@ def executor_kwargs(test_type, server_config, cache_manager, run_info_data,
if test_type == "testharness":
capabilities["pageLoadStrategy"] = "none"
for (kwarg, capability) in [("binary", "binary"), ("binary_args", "args")]:
if kwargs[kwarg] is not None:
capabilities["goog:chromeOptions"][capability] = kwargs[kwarg]
chrome_options = capabilities["goog:chromeOptions"]
if kwargs["binary"] is not None:
chrome_options["binary"] = kwargs["binary"]
if kwargs["headless"]:
if "args" not in capabilities["goog:chromeOptions"]:
capabilities["goog:chromeOptions"]["args"] = []
if "--headless" not in capabilities["goog:chromeOptions"]["args"]:
capabilities["goog:chromeOptions"]["args"].append("--headless")
# Here we set a few Chrome flags that are always passed.
chrome_options["args"] = []
# Allow audio autoplay without a user gesture.
chrome_options["args"].append("--autoplay-policy=no-user-gesture-required")
# Allow WebRTC tests to call getUserMedia.
chrome_options["args"].append("--use-fake-ui-for-media-stream")
chrome_options["args"].append("--use-fake-device-for-media-stream")
# Shorten delay for Reporting <https://w3c.github.io/reporting/>.
chrome_options["args"].append("--short-reporting-delay")
# Point all .test domains to localhost for Chrome
chrome_options["args"].append("--host-resolver-rules=MAP nonexistent.*.test ~NOTFOUND, MAP *.test 127.0.0.1")
# Copy over any other flags that were passed in via --binary_args
if kwargs["binary_args"] is not None:
chrome_options["args"].extend(kwargs["binary_args"])
# Pass the --headless flag to Chrome if WPT's own --headless flag was set
if kwargs["headless"] and "--headless" not in chrome_options["args"]:
chrome_options["args"].append("--headless")
executor_kwargs["capabilities"] = capabilities
@ -76,7 +90,7 @@ def env_extras(**kwargs):
def env_options():
return {}
return {"server_host": "127.0.0.1"}
class ChromeBrowser(Browser):

View file

@ -102,8 +102,8 @@ class EdgeBrowser(Browser):
def run_info_extras(**kwargs):
osReleaseCommand = "(Get-ItemProperty 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion').ReleaseId"
osBuildCommand = "(Get-ItemProperty 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion').BuildLabEx"
osReleaseCommand = r"(Get-ItemProperty 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion').ReleaseId"
osBuildCommand = r"(Get-ItemProperty 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion').BuildLabEx"
try:
os_release = subprocess.check_output(["powershell.exe", osReleaseCommand]).strip()
os_build = subprocess.check_output(["powershell.exe", osBuildCommand]).strip()