test: update WPT for url to 67880a4eb83ca9aa732eec4b35a1971ff5bf37ff · nodejs/node@182be26
1-## urltestdata.json
1+## urltestdata.json / urltestdata-javascript-only.json
223-`resources/urltestdata.json` contains URL parsing tests suitable for any URL parser implementation.
3+[`resources/urltestdata.json`](resources/urltestdata.json) contains URL parsing tests suitable for any URL parser implementation.
4+[`resources/urltestdata-javascript-only.json`](resources/urltestdata-javascript-only.json) contains URL parsing tests specifically meant
5+for JavaScript's `URL()` class as well as other languages accepting non-scalar-value strings.
465-It's used as a source of tests by `a-element.html`, `failure.html`, `url-constructor.any.js`, and
6-other test files in this directory.
7+These files are used as a source of tests by `a-element.html`, `failure.html`, `url-constructor.any.js`,
8+and other test files in this directory.
798-The format of `resources/urltestdata.json` is a JSON array of comments as strings and test cases as
10+Both files share the same format. They consist of a JSON array of comments as strings and test cases as
911objects. The keys for each test case are:
10121113* `input`: a string to be parsed as URL.