Update web-platform-tests to revision 53f3408ffe1fd0e56a37aff4aaf1fa8441c41d6d

This commit is contained in:
Ms2ger 2016-07-12 09:30:50 +02:00
parent 9b01a4cc97
commit 0edf0ececb
59 changed files with 2247 additions and 1071 deletions

View 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();