mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibURL: Make port state override return failure more for URLPattern
Corresponds to URL spec change:
cc8b776b
Note that the new test failure being introduced here is an unrelated
WPT test change bundled in the resources test file update that I am
not convinced is correct.
This commit is contained in:
parent
4e8f2e48c4
commit
a9777a3300
Notes:
github-actions[bot]
2025-04-06 12:26:15 +00:00
Author: https://github.com/shannonbooth
Commit: a9777a3300
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3847
Reviewed-by: https://github.com/trflynn89
3 changed files with 65 additions and 18 deletions
|
@ -1202,10 +1202,11 @@
|
|||
{
|
||||
"pattern": [{ "protocol": "http", "port": "80 " }],
|
||||
"inputs": [{ "protocol": "http", "port": "80" }],
|
||||
"exactly_empty_components": ["port"],
|
||||
"expected_match": {
|
||||
"protocol": { "input": "http", "groups": {} }
|
||||
}
|
||||
"expected_obj": {
|
||||
"protocol": "http",
|
||||
"port": "80"
|
||||
},
|
||||
"expected_match": null
|
||||
},
|
||||
{
|
||||
"pattern": [{ "protocol": "http", "port": "100000" }],
|
||||
|
@ -1229,6 +1230,34 @@
|
|||
"port": { "input": "80", "groups": {}}
|
||||
}
|
||||
},
|
||||
{
|
||||
"pattern": [{ "port": "80" }],
|
||||
"inputs": [{ "port": "8\t0" }],
|
||||
"expected_match": {
|
||||
"port": { "input": "80", "groups": {}}
|
||||
}
|
||||
},
|
||||
{
|
||||
"pattern": [{ "port": "80" }],
|
||||
"inputs": [{ "port": "80x" }],
|
||||
"expected_match": {
|
||||
"port": { "input": "80", "groups": {}}
|
||||
}
|
||||
},
|
||||
{
|
||||
"pattern": [{ "port": "80" }],
|
||||
"inputs": [{ "port": "80?x" }],
|
||||
"expected_match": {
|
||||
"port": { "input": "80", "groups": {}}
|
||||
}
|
||||
},
|
||||
{
|
||||
"pattern": [{ "port": "80" }],
|
||||
"inputs": [{ "port": "80\\x" }],
|
||||
"expected_match": {
|
||||
"port": { "input": "80", "groups": {}}
|
||||
}
|
||||
},
|
||||
{
|
||||
"pattern": [{ "port": "(.*)" }],
|
||||
"inputs": [{ "port": "invalid80" }],
|
||||
|
@ -1874,7 +1903,17 @@
|
|||
{
|
||||
"pattern": [ "https://{sub.}?example{.com/}foo" ],
|
||||
"inputs": [ "https://example.com/foo" ],
|
||||
"expected_obj": "error"
|
||||
"exactly_empty_components": [ "port" ],
|
||||
"expected_obj": {
|
||||
"protocol": "https",
|
||||
"hostname": "{sub.}?example.com",
|
||||
"pathname": "*"
|
||||
},
|
||||
"expected_match": {
|
||||
"protocol": { "input": "https", "groups": {} },
|
||||
"hostname": { "input": "example.com", "groups": {} },
|
||||
"pathname": { "input": "/foo", "groups": { "0": "/foo" } }
|
||||
}
|
||||
},
|
||||
{
|
||||
"pattern": [ "{https://}example.com/foo" ],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue