Bug 1504367 [wpt PR 13863] - webkit: add support for the WPE port, a=testonly

Automatic update from web-platform-testswebkit: add support for the WPE port (#13863)

WPE port is closely related to the GTK port, using the same WebDriver
implementation as well as similar testing-purpose browser application.
Much of the capabilities dictionary construction can thus be the same.

--

wpt-commits: 89692eac0360247e56ba1ae4c32ea38cf1b6a9a0
wpt-pr: 13863
This commit is contained in:
Žan Doberšek 2018-11-13 11:54:32 +00:00 committed by moz-wptsync-bot
parent 45c7e2596b
commit 566aef3fc8

View File

@ -32,22 +32,22 @@ def browser_kwargs(test_type, run_info_data, config, **kwargs):
def capabilities_for_port(server_config, **kwargs):
if kwargs["webkit_port"] == "gtk":
capabilities = {
port_name = kwargs["webkit_port"]
if port_name in ["gtk", "wpe"]:
port_key_map = {"gtk": "webkitgtk"}
browser_options_port = port_key_map.get(port_name, port_name)
browser_options_key = "%s:browserOptions" % browser_options_port
return {
"browserName": "MiniBrowser",
"browserVersion": "2.20",
"platformName": "ANY",
"webkitgtk:browserOptions": {
browser_options_key: {
"binary": kwargs["binary"],
"args": kwargs.get("binary_args", []),
"certificates": [
{"host": server_config["browser_host"],
"certificateFile": kwargs["host_cert_path"]}
]
}
}
return capabilities
"certificateFile": kwargs["host_cert_path"]}]}}
return {}