servo/tests/wpt/web-platform-tests/url
2017-11-15 12:47:30 -05:00
..
a-element-origin-xhtml.xhtml Update web-platform-tests and CSS tests. 2017-02-06 22:38:29 +01:00
a-element-origin.html Update web-platform-tests and CSS tests. 2017-02-06 22:38:29 +01:00
a-element-origin.js Update web-platform-tests to revision 3137d1d2d7757366a69f8a449b458b5057e0e81e 2016-12-28 11:34:21 +01:00
a-element-xhtml.xhtml Update web-platform-tests and CSS tests. 2017-02-06 22:38:29 +01:00
a-element.html Update web-platform-tests and CSS tests. 2017-02-06 22:38:29 +01:00
a-element.js Update web-platform-tests to revision 3137d1d2d7757366a69f8a449b458b5057e0e81e 2016-12-28 11:34:21 +01:00
data-uri-fragment.html Update web-platform-tests to revision 44702f2bc8ea98bc32b5b244f2fe63c6ce66d49d 2017-11-15 12:47:30 -05:00
failure.html Update web-platform-tests to revision a46616a5b18e83587ddbbed756c7b96cbb4b015d 2017-10-05 00:42:13 +02:00
historical.any.js Update web-platform-tests to revision a46616a5b18e83587ddbbed756c7b96cbb4b015d 2017-10-05 00:42:13 +02:00
interfaces.any.js Update web-platform-tests to revision a46616a5b18e83587ddbbed756c7b96cbb4b015d 2017-10-05 00:42:13 +02:00
OWNERS Update web-platform-tests to revision 44702f2bc8ea98bc32b5b244f2fe63c6ce66d49d 2017-11-15 12:47:30 -05:00
README.md Update web-platform-tests to revision a46616a5b18e83587ddbbed756c7b96cbb4b015d 2017-10-05 00:42:13 +02:00
setters_tests.json Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326 2017-10-12 12:36:21 -04:00
toascii.json Update web-platform-tests to revision a46616a5b18e83587ddbbed756c7b96cbb4b015d 2017-10-05 00:42:13 +02:00
toascii.window.js Update web-platform-tests to revision a46616a5b18e83587ddbbed756c7b96cbb4b015d 2017-10-05 00:42:13 +02:00
url-constructor.html Update web-platform-tests to revision 3137d1d2d7757366a69f8a449b458b5057e0e81e 2016-12-28 11:34:21 +01:00
url-origin.html Update web-platform-tests to revision 3137d1d2d7757366a69f8a449b458b5057e0e81e 2016-12-28 11:34:21 +01:00
url-setters.html Update web-platform-tests to revision e8bfc205e36ad699601212cd50083870bad9a75d 2016-11-15 09:35:34 +01:00
url-tojson.html Update web-platform-tests to revision 7a767a52741f628430ffbbed46e7f3df68ba3534 2017-02-20 13:52:41 +01:00
urlencoded-parser.html Update web-platform-tests and CSS tests. 2017-02-06 22:38:29 +01:00
urlsearchparams-append.html Update web-platform-tests and CSS tests. 2017-02-06 22:38:29 +01:00
urlsearchparams-constructor.html Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326 2017-10-12 12:36:21 -04:00
urlsearchparams-delete.html Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326 2017-10-12 12:36:21 -04:00
urlsearchparams-foreach.html Make URLSearchParams iterable. 2016-10-07 17:35:54 +02:00
urlsearchparams-get.html Update web-platform-tests and CSS tests. 2017-02-06 22:38:29 +01:00
urlsearchparams-getall.html Update web-platform-tests and CSS tests. 2017-02-06 22:38:29 +01:00
urlsearchparams-has.html Update web-platform-tests and CSS tests. 2017-02-06 22:38:29 +01:00
urlsearchparams-set.html Update web-platform-tests and CSS tests. 2017-02-06 22:38:29 +01:00
urlsearchparams-sort.html Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326 2017-10-12 12:36:21 -04:00
urlsearchparams-stringifier.html Update web-platform-tests to revision 44702f2bc8ea98bc32b5b244f2fe63c6ce66d49d 2017-11-15 12:47:30 -05:00
urltestdata.json Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326 2017-10-12 12:36:21 -04:00

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 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 URLs API should return the corresponding value.

      The origin key may be missing. In that case, the APIs origin attribute is not tested.