| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 86d4f07 commit 4739c45
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,7 +28,7 @@ Last update: | |||
| 28 | 28 | - resource-timing: https://github.com/web-platform-tests/wpt/tree/22d38586d0/resource-timing | |
| 29 | 29 | - resources: https://github.com/web-platform-tests/wpt/tree/1d2c5fb36a/resources | |
| 30 | 30 | - streams: https://github.com/web-platform-tests/wpt/tree/bc9dcbbf1a/streams | |
| 31 | - - url: https://github.com/web-platform-tests/wpt/tree/fc3e651593/url | ||
| 31 | + - url: https://github.com/web-platform-tests/wpt/tree/7a3645b79a/url | ||
| 32 | 32 | - urlpattern: https://github.com/web-platform-tests/wpt/tree/a2e15ad405/urlpattern | |
| 33 | 33 | - user-timing: https://github.com/web-platform-tests/wpt/tree/5ae85bf826/user-timing | |
| 34 | 34 | - wasm/jsapi: https://github.com/web-platform-tests/wpt/tree/cde25e7e3c/wasm/jsapi | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,5 @@ | |||
| 1 | + // META: global=window | ||
| 2 | + | ||
| 1 | 3 | promise_test(() => fetch("resources/IdnaTestV2-removed.json").then(res => res.json()).then(runTests), "Loading data…"); | |
| 2 | 4 | ||
| 3 | 5 | function runTests(idnaTests) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,5 @@ | |||
| 1 | + // META: global=window | ||
| 2 | + | ||
| 1 | 3 | promise_test(() => fetch("resources/IdnaTestV2.json").then(res => res.json()).then(runTests), "Loading data…"); | |
| 2 | 4 | ||
| 3 | 5 | function runTests(idnaTests) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1044,6 +1044,21 @@ | |||
| 1044 | 1044 | "search": "", | |
| 1045 | 1045 | "hash": "" | |
| 1046 | 1046 | }, | |
| 1047 | + { | ||
| 1048 | + "input": "http:/", | ||
| 1049 | + "base": "http://example.com/", | ||
| 1050 | + "href": "http://example.com/", | ||
| 1051 | + "origin": "http://example.com", | ||
| 1052 | + "protocol": "http:", | ||
| 1053 | + "username": "", | ||
| 1054 | + "password": "", | ||
| 1055 | + "host": "example.com", | ||
| 1056 | + "hostname": "example.com", | ||
| 1057 | + "port": "", | ||
| 1058 | + "pathname": "/", | ||
| 1059 | + "search": "", | ||
| 1060 | + "hash": "" | ||
| 1061 | + }, | ||
| 1047 | 1062 | { | |
| 1048 | 1063 | "input": "ftp:/example.com/", | |
| 1049 | 1064 | "base": "http://example.org/foo/bar", | |
@@ -10342,6 +10357,52 @@ | |||
| 10342 | 10357 | "search": "", | |
| 10343 | 10358 | "hash": "" | |
| 10344 | 10359 | }, | |
| 10360 | + "# Non-special relative URL and backslashes", | ||
| 10361 | + { | ||
| 10362 | + "comment": "Non-special relative: \\ should not enter RelativeSlash state", | ||
| 10363 | + "input": "\\a", | ||
| 10364 | + "base": "foo://foo/a", | ||
| 10365 | + "href": "foo://foo/\\a", | ||
| 10366 | + "protocol": "foo:", | ||
| 10367 | + "username": "", | ||
| 10368 | + "password": "", | ||
| 10369 | + "host": "foo", | ||
| 10370 | + "hostname": "foo", | ||
| 10371 | + "port": "", | ||
| 10372 | + "pathname": "/\\a", | ||
| 10373 | + "search": "", | ||
| 10374 | + "hash": "" | ||
| 10375 | + }, | ||
| 10376 | + { | ||
| 10377 | + "comment": "Non-special relative: \\ should not enter RelativeSlash, so / is a path separator", | ||
| 10378 | + "input": "\\/a", | ||
| 10379 | + "base": "foo://foo/a", | ||
| 10380 | + "href": "foo://foo/\\/a", | ||
| 10381 | + "protocol": "foo:", | ||
| 10382 | + "username": "", | ||
| 10383 | + "password": "", | ||
| 10384 | + "host": "foo", | ||
| 10385 | + "hostname": "foo", | ||
| 10386 | + "port": "", | ||
| 10387 | + "pathname": "/\\/a", | ||
| 10388 | + "search": "", | ||
| 10389 | + "hash": "" | ||
| 10390 | + }, | ||
| 10391 | + { | ||
| 10392 | + "comment": "Non-special relative: \\\\ should not trigger authority parsing", | ||
| 10393 | + "input": "\\\\a", | ||
| 10394 | + "base": "foo://foo/a", | ||
| 10395 | + "href": "foo://foo/\\\\a", | ||
| 10396 | + "protocol": "foo:", | ||
| 10397 | + "username": "", | ||
| 10398 | + "password": "", | ||
| 10399 | + "host": "foo", | ||
| 10400 | + "hostname": "foo", | ||
| 10401 | + "port": "", | ||
| 10402 | + "pathname": "/\\\\a", | ||
| 10403 | + "search": "", | ||
| 10404 | + "hash": "" | ||
| 10405 | + }, | ||
| 10345 | 10406 | { | |
| 10346 | 10407 | "comment": "Fragment with <> on data: URI", | |
| 10347 | 10408 | "input": "data:text/plain,test#<foo> <bar>", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -72,7 +72,7 @@ | |||
| 72 | 72 | "path": "streams" | |
| 73 | 73 | }, | |
| 74 | 74 | "url": { | |
| 75 | - "commit": "fc3e651593fab938433613eb5ad0b4dbd5a4e167", | ||
| 75 | + "commit": "7a3645b79ade98a05066a09ce88e143daac31535", | ||
| 76 | 76 | "path": "url" | |
| 77 | 77 | }, | |
| 78 | 78 | "urlpattern": { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments