зеркало из https://github.com/mozilla/gecko-dev.git
174983d7b3
--HG-- rename : testing/web-platform/tests/dom/nodes/Document-createComment.html => testing/web-platform/tests/dom/nodes/Document-createTextNode.html rename : testing/web-platform/tests/selectors-api/tests/submissions/Opera/level2-baseline.html => testing/web-platform/tests/selectors-api/tests/submissions/Opera/Element-matches.html rename : testing/web-platform/tests/selectors-api/tests/submissions/Opera/level2-baseline.html => testing/web-platform/tests/selectors-api/tests/submissions/Opera/ParentNode-find-findAll.html rename : testing/web-platform/tests/selectors-api/tests/submissions/Opera/level2-lib.js => testing/web-platform/tests/selectors-api/tests/submissions/Opera/ParentNode-find-findAll.js |
||
---|---|---|
.. | ||
README.md | ||
a-element.html | ||
a-element.xhtml | ||
interfaces.html | ||
urltestdata.txt | ||
urltestparser.js |
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
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