tree: 49ec49e43d6416c5df43b37f7d6374e28a29f8ce [path history] [tgz]
  1. a-element-origin-xhtml.xhtml
  2. a-element-origin.html
  3. a-element-origin.js
  4. a-element-xhtml.xhtml
  5. a-element.html
  6. a-element.js
  7. data-uri-fragment-expected.txt
  8. data-uri-fragment.html
  9. failure.html
  10. historical.any-expected.txt
  11. historical.any.js
  12. historical.any.worker-expected.txt
  13. interfaces.any-expected.txt
  14. interfaces.any.js
  15. interfaces.any.worker-expected.txt
  16. OWNERS
  17. README.md
  18. setters_tests.json
  19. toascii.json
  20. toascii.window-expected.txt
  21. toascii.window.js
  22. url-constructor.html
  23. url-origin.html
  24. url-setters.html
  25. url-tojson-expected.txt
  26. url-tojson.html
  27. urlencoded-parser-expected.txt
  28. urlencoded-parser.html
  29. urlsearchparams-append.html
  30. urlsearchparams-constructor.html
  31. urlsearchparams-delete.html
  32. urlsearchparams-foreach-expected.txt
  33. urlsearchparams-foreach.html
  34. urlsearchparams-get.html
  35. urlsearchparams-getall.html
  36. urlsearchparams-has.html
  37. urlsearchparams-set.html
  38. urlsearchparams-sort.html
  39. urlsearchparams-stringifier.html
  40. urltestdata.json
third_party/WebKit/LayoutTests/external/wpt/url/README.md

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" when input is an absolute URL.
  • input: an URL as a string to be parsed with base as its base URL.
  • Either:
    • failure with the value true, indicating that parsing input should return failure,

    • or href, origin, protocol, username, password, host, hostname, port, pathname, search, and hash with string values; indicating that parsing input should return an URL record and that the getters of each corresponding attribute in that URL’s API should return the corresponding value.

      The origin key may be missing. In that case, the API’s origin attribute is not tested.