Update web-platform-tests to revision ac4274136e9a034628a3a469890c8e37babbc902

This commit is contained in:
WPT Sync Bot 2018-12-14 20:35:55 -05:00
parent c9229f3f99
commit b0862d9cc1
68 changed files with 2064 additions and 135 deletions

View file

@ -7,6 +7,10 @@ const longValue = "s".repeat(127);
"headers": ["accept", "accept-language", "content-language"],
"values": [longValue, "", longValue]
},
{
"headers": ["accept", "accept-language", "content-language"],
"values": ["", longValue]
},
{
"headers": ["content-type"],
"values": ["text/plain;" + "s".repeat(116), "text/plain"]
@ -17,10 +21,10 @@ const longValue = "s".repeat(127);
const noCorsHeaders = new Request("about:blank", { mode: "no-cors" }).headers;
testItem.values.forEach((value) => {
noCorsHeaders.append(header, value);
assert_equals(noCorsHeaders.get(header), testItem.values[0]);
assert_equals(noCorsHeaders.get(header), testItem.values[0], '1');
});
noCorsHeaders.set(header, values.join(", "));
assert_equals(noCorsHeaders.get(header), testItem.values[0]);
noCorsHeaders.set(header, testItem.values.join(", "));
assert_equals(noCorsHeaders.get(header), testItem.values[0], '2');
noCorsHeaders.delete(header);
assert_false(noCorsHeaders.has(header));
}, "\"no-cors\" Headers object cannot have " + header + " set to " + testItem.values.join(", "));