mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Update web-platform-tests to revision 4f397167b4ed552a02201c92d363cfaecfe2c7f0
This commit is contained in:
parent
73b5bf201f
commit
84b40513c3
182 changed files with 4779 additions and 1937 deletions
|
@ -1,21 +0,0 @@
|
|||
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