gecko/testing/web-platform/tests/url
2015-01-23 20:06:44 +00:00
..
a-element.html
a-element.xhtml
interfaces.html Bug 1124311 - Update web-platform-tests to revision 412773b71c81d7356636f698e86d7b544cf48fcb, a=testonly 2015-01-23 20:06:44 +00: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