mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +01:00
Update web-platform-tests to revision 7f2f85a88f434798e9d643427b34b05fab8278c6
This commit is contained in:
parent
6b1a08c051
commit
73bc5cf1b8
180 changed files with 5807 additions and 169 deletions
|
@ -0,0 +1,19 @@
|
|||
if (this.document === undefined) {
|
||||
importScripts("/resources/testharness.js");
|
||||
importScripts("../resources/utils.js");
|
||||
}
|
||||
|
||||
var fetchedUrl = RESOURCES_DIR + "inspect-headers.py?headers=origin";
|
||||
|
||||
promise_test(function(test) {
|
||||
return fetch(fetchedUrl).then(function(resp) {
|
||||
assert_equals(resp.status, 200, "HTTP status is 200");
|
||||
assert_equals(resp.type , "basic", "Response's type is basic");
|
||||
var referrer = resp.headers.get("x-request-referer");
|
||||
//Either no referrer header is sent or it is empty
|
||||
if (referrer)
|
||||
assert_equals(referrer, "", "request's referrer is empty");
|
||||
});
|
||||
}, "Request's referrer is empty");
|
||||
|
||||
done();
|
Loading…
Add table
Add a link
Reference in a new issue