-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: synchronize WPT url setters tests data
Synchronize url-setter-test to upstream. Refs: web-platform-tests/wpt#5112 PR-URL: #11887 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
- Loading branch information
1 parent
c51d925
commit 169f187
Showing
1 changed file
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,6 +111,55 @@ | |
"protocol": "http:" | ||
} | ||
}, | ||
{ | ||
"href": "gopher://example.net:1234", | ||
"new_value": "file", | ||
"expected": { | ||
"href": "gopher://example.net:1234/", | ||
"protocol": "gopher:" | ||
} | ||
}, | ||
{ | ||
"href": "wss://x:[email protected]:1234", | ||
"new_value": "file", | ||
"expected": { | ||
"href": "wss://x:[email protected]:1234/", | ||
"protocol": "wss:" | ||
} | ||
}, | ||
{ | ||
"comment": "Can’t switch from file URL with no host", | ||
"href": "file://localhost/", | ||
"new_value": "http", | ||
"expected": { | ||
"href": "file:///", | ||
"protocol": "file:" | ||
} | ||
}, | ||
{ | ||
"href": "file:///test", | ||
"new_value": "gopher", | ||
"expected": { | ||
"href": "file:///test", | ||
"protocol": "file:" | ||
} | ||
}, | ||
{ | ||
"href": "file:", | ||
"new_value": "wss", | ||
"expected": { | ||
"href": "file:///", | ||
"protocol": "file:" | ||
} | ||
}, | ||
{ | ||
"href": "file://hi/path", | ||
"new_value": "s", | ||
"expected": { | ||
"href": "file://hi/path", | ||
"protocol": "file:" | ||
} | ||
}, | ||
{ | ||
"href": "https://example.net", | ||
"new_value": "s", | ||
|
@@ -1177,4 +1226,4 @@ | |
} | ||
} | ||
] | ||
} | ||
} |