mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 53f3408ffe1fd0e56a37aff4aaf1fa8441c41d6d
This commit is contained in:
parent
9b01a4cc97
commit
0edf0ececb
59 changed files with 2247 additions and 1071 deletions
21
tests/wpt/web-platform-tests/fetch/api/basic/response-url.js
Normal file
21
tests/wpt/web-platform-tests/fetch/api/basic/response-url.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
if (this.document === undefined) {
|
||||
importScripts("/resources/testharness.js");
|
||||
}
|
||||
|
||||
function checkResponseURL(fetchedURL, expectedURL)
|
||||
{
|
||||
promise_test(function() {
|
||||
return fetch(fetchedURL).then(function(response) {
|
||||
assert_equals(response.url, expectedURL);
|
||||
});
|
||||
}, "Testing response url getter with " +fetchedURL);
|
||||
}
|
||||
|
||||
var baseURL = "http://{{host}}:{{ports[http][0]}}";
|
||||
checkResponseURL(baseURL + "/ada", baseURL + "/ada");
|
||||
checkResponseURL(baseURL + "/#", baseURL + "/");
|
||||
checkResponseURL(baseURL + "/#ada", baseURL + "/");
|
||||
checkResponseURL(baseURL + "#ada", baseURL + "/");
|
||||
|
||||
done();
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue