Lines Matching defs:url
13 fixtures.path('wpt', 'url', 'resources', 'toascii.json')
19 // Refs: https://github.com/w3c/web-platform-tests/blob/4839a0a804/url/toascii.window.js
35 if(type === "url") {
38 const url = document.createElement(type)
39 url.href = input
40 return url
50 const typeName = { "url": "URL", "a": "<a>", "area": "<area>" }
51 // ;["url", "a", "area"].forEach((type) => {
52 ;["url"].forEach((type) => {
55 const url = makeURL("url", hostTest.input)
56 assert_equals(url.host, hostTest.output)
57 assert_equals(url.hostname, hostTest.output)
58 assert_equals(url.pathname, "/x")
59 assert_equals(url.href, "https://" + hostTest.output + "/x")
61 if(type === "url") {
62 assert_throws(new TypeError, () => makeURL("url", hostTest.input))
64 const url = makeURL(type, hostTest.input)
65 assert_equals(url.host, "")
66 assert_equals(url.hostname, "")
67 assert_equals(url.pathname, "")
68 assert_equals(url.href, "https://" + hostTest.input + "/x")
74 const url = makeURL(type, "x")
75 url[val] = hostTest.input
77 assert_equals(url[val], hostTest.output)
79 assert_equals(url[val], "x")