mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Update web-platform-tests to revision 66dc9c93f2c8ebd7c8fdc28fae20d92713c97806
This commit is contained in:
parent
e488ea750b
commit
12f4ae132e
1651 changed files with 8123 additions and 14152 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue