| <title>Request URL handling</title> |
| <meta name="help" href="https://fetch.spec.whatwg.org/#request"> |
| <script src="../resources/testharness.js"></script> |
| <script src="../resources/testharnessreport.js"></script> |
| function executeTests(urls) |
| document.getElementById("base").setAttribute("href", url.base); |
| if (url.username || url.password || url.failure) |
| assert_throws(new TypeError(), function() { new Request(url.input); }); |
| var request = new Request(url.input); |
| assert_equals(request.url, url.href); |
| }, "Testing Request url '" + url.input + "' with base '" + url.base + "'"); |
| <script src="fetch-urls.json"></script> |