mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 02:17:45 -10:00
1.2 KiB
1.2 KiB
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"wheninputis an absolute URL.input: an URL as a string to be parsed withbaseas its base URL.- Either:
-
failurewith the valuetrue, indicating that parsinginputshould return failure, -
or
href,origin,protocol,username,password,host,hostname,port,pathname,search, andhashwith string values; indicating that parsinginputshould return an URL record and that the getters of each corresponding attribute in that URL’s API should return the corresponding value.The
originkey may be missing. In that case, the API’soriginattribute is not tested.
-