mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 12:15:33 +00:00
Bug 1561196 - [wdspec] Fix number of slashes for file:// url tests. r=webdriver-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D35778 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
a105e5d2c9
commit
c24c642552
@ -46,8 +46,9 @@ def test_get_current_url_file_protocol(session, server_config):
|
||||
# when navigated privileged documents
|
||||
path = server_config["doc_root"]
|
||||
if platform_name == "windows":
|
||||
path = path.replace("\\", "/")
|
||||
url = u"file:///{}".format(path)
|
||||
# Convert the path into the format eg. /c:/foo/bar
|
||||
path = "/{}".format(path.replace("\\", "/"))
|
||||
url = u"file://{}".format(path)
|
||||
session.url = url
|
||||
|
||||
response = get_current_url(session)
|
||||
|
@ -33,8 +33,9 @@ def test_file_protocol(session, server_config):
|
||||
# when navigated privileged documents
|
||||
path = server_config["doc_root"]
|
||||
if platform_name == "windows":
|
||||
path = path.replace("\\", "/")
|
||||
url = u"file:///{}".format(path)
|
||||
# Convert the path into the format eg. /c:/foo/bar
|
||||
path = "/{}".format(path.replace("\\", "/"))
|
||||
url = u"file://{}".format(path)
|
||||
|
||||
response = navigate_to(session, url)
|
||||
assert_success(response)
|
||||
|
Loading…
Reference in New Issue
Block a user