%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
promise_test(() => fetch("resources/urltestdata.json").then(res => res.json()).then(runURLTests), "Loading data…"); function setBase(base) { document.getElementById("base").href = base } function bURL(url, base) { base = base || "about:blank" setBase(base) var a = document.createElement("a") a.setAttribute("href", url) return a } function runURLTests(urltests) { for(var i = 0, l = urltests.length; i < l; i++) { var expected = urltests[i] if (typeof expected === "string") continue // skip comments // skip without base because you cannot unset the baseURL of a document if (expected.base === null) continue; test(function() { var url = bURL(expected.input, expected.base) if(expected.failure) { if(url.protocol !== ':') { assert_unreached("Expected URL to fail parsing") } assert_equals(url.href, expected.input, "failure should set href to input") return } assert_equals(url.href, expected.href, "href") assert_equals(url.protocol, expected.protocol, "protocol") assert_equals(url.username, expected.username, "username") assert_equals(url.password, expected.password, "password") assert_equals(url.host, expected.host, "host") assert_equals(url.hostname, expected.hostname, "hostname") assert_equals(url.port, expected.port, "port") assert_equals(url.pathname, expected.pathname, "pathname") assert_equals(url.search, expected.search, "search") assert_equals(url.hash, expected.hash, "hash") }, "Parsing: <" + expected.input + "> against <" + expected.base + ">") } }