Update web-platform-tests to revision 66dc9c93f2c8ebd7c8fdc28fae20d92713c97806

This commit is contained in:
WPT Sync Bot 2019-06-26 10:22:48 +00:00
parent e488ea750b
commit 12f4ae132e
1651 changed files with 8123 additions and 14152 deletions

View file

@ -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)

View file

@ -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)