gecko/testing/web-platform/tests/url
Wes Kocher 6e87b7a373 Backed out 2 changesets (bug 1124311) for breaking wpt-4 on a CLOSED TREE
Backed out changeset 9a9ab925893c (bug 1124311)
Backed out changeset 51ca8715e7fb (bug 1124311)
2015-01-22 12:46:45 -08:00
..
a-element.html
a-element.xhtml
interfaces.html Backed out 2 changesets (bug 1124311) for breaking wpt-4 on a CLOSED TREE 2015-01-22 12:46:45 -08:00
README.md Bug 1084367 - Upgrade wptrunner to 1.4 and web-platform-tests to 1b45197f111e5bb65607d89f7d385883849d005d, a=test-only 2014-10-21 14:21:57 +01:00
urltestdata.txt Bug 1118722 - Update web-platform-tests to revision a4f1782fd9e93746364ed219e60a8c2bafd0910e, a=testonly 2015-01-07 13:12:56 +00:00
urltestparser.js Bug 1097230 - Update web-platform-tests to revision 9840b559b10e05f659932a835c11832db9e01c42, a=testonly 2014-11-20 16:30:01 +00:00

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!

annevk/url hosts some other files that might be of interest if you want to create additional tests.

Similar to a-element.html it would be trivial to add more tests for other objects that expose links (e.g. URL and <area>). There's also room for enhancement and bits that require independent tests:

  • The encoding part of the URL parser
  • The state override part of the URL parser (setting individual properties of a URL)
  • Origin serialization
  • application/x-www-form-urlencoded