Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /fetch/api/basic/response-url.sub.any.html - WPT Dashboard Interop Dashboard
- /fetch/api/basic/response-url.sub.any.worker.html - WPT Dashboard Interop Dashboard
function checkResponseURL(fetchedURL, expectedURL)
{
promise_test(function() {
return fetch(fetchedURL).then(function(response) {
assert_equals(response.url, expectedURL);
});
}, "Testing response url getter with " +fetchedURL);
}
checkResponseURL(baseURL + "/ada", baseURL + "/ada");
checkResponseURL(baseURL + "/#", baseURL + "/");
checkResponseURL(baseURL + "/#ada", baseURL + "/");
checkResponseURL(baseURL + "#ada", baseURL + "/");
done();