Skip to content

Commit a9cbe5f

Browse files
committed
WebDriver: add domains to server config in w3c tests
https://bugs.webkit.org/show_bug.cgi?id=182294 Reviewed by Carlos Alberto Lopez Perez. Several cookie tests expect server_config to have a domains key. Fixes: imported/w3c/webdriver/tests/cookies/add_cookie.py::test_add_domain_cookie imported/w3c/webdriver/tests/cookies/add_cookie.py::test_add_session_cookie_with_leading_dot_character_in_domain * Scripts/webkitpy/webdriver_tests/webdriver_w3c_executor.py: (WebDriverW3CExecutor.__init__): Canonical link: https://commits.webkit.org/198129@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@227881 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent d2abd95 commit a9cbe5f

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

Tools/ChangeLog

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
2018-01-31 Carlos Garcia Campos <cgarcia@igalia.com>
2+
3+
WebDriver: add domains to server config in w3c tests
4+
https://bugs.webkit.org/show_bug.cgi?id=182294
5+
6+
Reviewed by Carlos Alberto Lopez Perez.
7+
8+
Several cookie tests expect server_config to have a domains key.
9+
10+
Fixes: imported/w3c/webdriver/tests/cookies/add_cookie.py::test_add_domain_cookie
11+
imported/w3c/webdriver/tests/cookies/add_cookie.py::test_add_session_cookie_with_leading_dot_character_in_domain
12+
13+
* Scripts/webkitpy/webdriver_tests/webdriver_w3c_executor.py:
14+
(WebDriverW3CExecutor.__init__):
15+
116
2018-01-31 Carlos Garcia Campos <cgarcia@igalia.com>
217

318
Unreviewed. Update W3C WebDriver imported tests.

Tools/Scripts/webkitpy/webdriver_tests/webdriver_w3c_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class WebDriverW3CExecutor(WdspecExecutor):
133133
def __init__(self, driver, server, display_driver, timeout, expectations):
134134
WebKitDriverServer.test_env = display_driver._setup_environ_for_test()
135135
WebKitDriverServer.test_env.update(driver.browser_env())
136-
server_config = {'host': server.host(), 'ports': {'http': [str(server.port())]}}
136+
server_config = {'host': server.host(), 'domains': {'': server.host()}, 'ports': {'http': [str(server.port())]}}
137137
WdspecExecutor.__init__(self, driver.browser_name(), server_config, driver.binary_path(), None, capabilities=driver.capabilities())
138138

139139
self._timeout = timeout

0 commit comments

Comments
 (0)