tree: 8d92bc592f80b25faee1270142503a906d3d0293 [path history] [tgz]
  1. a-element-expected.txt
  2. a-element-origin-expected.txt
  3. a-element-origin-xhtml-expected.txt
  4. a-element-origin-xhtml.xhtml
  5. a-element-origin.html
  6. a-element-origin.js
  7. a-element-xhtml-expected.txt
  8. a-element-xhtml.xhtml
  9. a-element.html
  10. a-element.js
  11. failure-expected.txt
  12. failure.html
  13. historical-expected.txt
  14. historical.any-expected.txt
  15. historical.any.html
  16. historical.any.js
  17. historical.any.worker-expected.txt
  18. historical.any.worker.html
  19. interfaces-expected.txt
  20. interfaces.any-expected.txt
  21. interfaces.any.html
  22. interfaces.any.js
  23. interfaces.any.worker-expected.txt
  24. interfaces.any.worker.html
  25. OWNERS
  26. README.md
  27. setters_tests.json
  28. toascii.json
  29. toascii.window.js
  30. url-constructor-expected.txt
  31. url-constructor.html
  32. url-domainToUnicode-expected.txt
  33. url-domainToUnicode.html
  34. url-origin-expected.txt
  35. url-origin.html
  36. url-setters-expected.txt
  37. url-setters.html
  38. url-tojson-expected.txt
  39. url-tojson.html
  40. urlencoded-parser-expected.txt
  41. urlencoded-parser.html
  42. urlsearchparams-append-expected.txt
  43. urlsearchparams-append.html
  44. urlsearchparams-constructor-expected.txt
  45. urlsearchparams-constructor.html
  46. urlsearchparams-delete-expected.txt
  47. urlsearchparams-delete.html
  48. urlsearchparams-foreach-expected.txt
  49. urlsearchparams-foreach.html
  50. urlsearchparams-get-expected.txt
  51. urlsearchparams-get.html
  52. urlsearchparams-getall-expected.txt
  53. urlsearchparams-getall.html
  54. urlsearchparams-has-expected.txt
  55. urlsearchparams-has.html
  56. urlsearchparams-set-expected.txt
  57. urlsearchparams-set.html
  58. urlsearchparams-sort-expected.txt
  59. urlsearchparams-sort.html
  60. urlsearchparams-stringifier-expected.txt
  61. urlsearchparams-stringifier.html
  62. urltestdata.json
  63. w3c-import.log
LayoutTests/imported/w3c/web-platform-tests/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.