Update web-platform-tests to revision 7f2f85a88f434798e9d643427b34b05fab8278c6

This commit is contained in:
Ms2ger 2016-02-01 09:19:46 +01:00
parent 6b1a08c051
commit 73bc5cf1b8
180 changed files with 5807 additions and 169 deletions

View file

@ -0,0 +1,14 @@
if (this.document === undefined) {
importScripts("/resources/testharness.js");
importScripts("../resources/utils.js");
}
promise_test(function() {
return fetch(RESOURCES_DIR + "inspect-headers.py?headers=Accept").then(function(response) {
assert_equals(response.status, 200, "HTTP status is 200");
assert_equals(response.type , "basic", "Response's type is basic");
assert_equals(response.headers.get("x-request-accept"), "*/*", "Request has accept header with value '*/*'");
});
}, "Request through fetch should have 'accept' header with value '*/*'");
done();