mirror of
https://github.com/servo/servo.git
synced 2025-08-23 22:35:33 +01:00
Update web-platform-tests to revision 95aad3bd9b82b5c65d84d53517b65ba084de9394
This commit is contained in:
parent
5942e9e3cb
commit
e8ed816728
145 changed files with 2024 additions and 578 deletions
8
tests/wpt/web-platform-tests/url/OWNERS
Normal file
8
tests/wpt/web-platform-tests/url/OWNERS
Normal file
|
@ -0,0 +1,8 @@
|
|||
@mikewest
|
||||
@frewsxcv
|
||||
@tomalec
|
||||
@rubys
|
||||
@sideshowbarker
|
||||
@zcorpan
|
||||
@xiaojunwu
|
||||
@smola
|
|
@ -1,6 +1,23 @@
|
|||
The test for browsers is `a-element.html`. The reusable format is `urltestdata.txt`, which
|
||||
is not documented in detail. Reverse engineering through `urltestparser.js` should not be
|
||||
too hard. Documentation welcome!
|
||||
These tests are for browsers, but the data for
|
||||
`a-element.html`, `url-constructor.html`, and `a-element-xhtml.xhtml`
|
||||
is in `urltestdata.json` and can be re-used by non-browser implementations.
|
||||
This file contains a JSON array of comments as strings and test cases as objects.
|
||||
The keys for each test case are:
|
||||
|
||||
* `base`: an absolute URL as a string whose [parsing] without a base of its own should succeed.
|
||||
This key is always present,
|
||||
and may have a value like `"about:blank"` when `input` is an absolute URL.
|
||||
* `input`: an URL as a string to be [parsed][parsing] with `base` as its base URL.
|
||||
* Either:
|
||||
* `failure` with the value `true`, indicating that parsing `input` should return failure,
|
||||
* or `href`, `origin`, `protocol`, `username`, `password`, `host`, `hostname`, `port`,
|
||||
`pathname`, `search`, and `hash` with string values;
|
||||
indicating that parsing `input` should return an URL record
|
||||
and that the getters of each corresponding attribute in that URL’s [API]
|
||||
should return the corresponding value.
|
||||
|
||||
[parsing]: https://url.spec.whatwg.org/#concept-basic-url-parser
|
||||
[API]: https://url.spec.whatwg.org/#api
|
||||
|
||||
[`annevk/url`](https://github.com/annevk/url) hosts some other files that might be of
|
||||
interest if you want to create additional tests.
|
||||
|
|
|
@ -1938,7 +1938,7 @@
|
|||
"hash": ""
|
||||
},
|
||||
{
|
||||
"input": "http://example.com/foo\t%91",
|
||||
"input": "http://example.com/foo\t\u0091%91",
|
||||
"base": "about:blank",
|
||||
"href": "http://example.com/foo%C2%91%91",
|
||||
"origin": "http://example.com",
|
||||
|
@ -2201,7 +2201,7 @@
|
|||
{
|
||||
"input": "http://www/foo%2Ehtml",
|
||||
"base": "about:blank",
|
||||
"href": "http://www/foo%2Ehtml",
|
||||
"href": "http://www/foo.html",
|
||||
"origin": "http://www",
|
||||
"protocol": "http:",
|
||||
"username": "",
|
||||
|
@ -2209,7 +2209,7 @@
|
|||
"host": "www",
|
||||
"hostname": "www",
|
||||
"port": "",
|
||||
"pathname": "/foo%2Ehtml",
|
||||
"pathname": "/foo.html",
|
||||
"search": "",
|
||||
"hash": ""
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue