https://github.com/web-platform-tests/wpt
Raw File
Tip revision: ffd8b73499f6099fb269344d81208743d1b9f54c authored by Hallvord R. M. Steen on 25 February 2016, 15:23:24 UTC
Reordering asserts to make failures easier to debug
Tip revision: ffd8b73
README.md
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`](https://github.com/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`
back to top