Update web-platform-tests to revision b'1d9b01e2fad6af3a057d571b1e088e15fa9bc8e6'

This commit is contained in:
WPT Sync Bot 2023-04-07 01:27:34 +00:00
parent cfef75c99b
commit bb34f95b33
1683 changed files with 37170 additions and 4252 deletions

View file

@ -29,3 +29,10 @@ promise_test(async () => {
const text = await resp.text();
assert_equals(text, "", "null bodies result in empty text");
}, `Response.body is null for responses with method=HEAD`);
promise_test(async (t) => {
const integrity = "sha384-UT6f7WCFp32YJnp1is4l/ZYnOeQKpE8xjmdkLOwZ3nIP+tmT2aMRFQGJomjVf5cE";
const url = `${RESOURCES_DIR}status.py?code=204&content=hello-world`;
const promise = fetch(url, { method: "GET", integrity });
promise_rejects_js(t, TypeError, promise);
}, "Null body status with subresource integrity should abort");

View file

@ -9,6 +9,7 @@ var validRequestHeaders = [
["sec", "OK"],
["secb", "OK"],
["Set-Cookie2", "OK"],
["User-Agent", "OK"],
];
var invalidRequestHeaders = [
["Accept-Charset", "KO"],

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script>
new Response(new ReadableStream({
start(c) {
for (const i of new Array(40000).fill()) {
c.enqueue(new Uint8Array(0));
}
c.close();
}
})).text();
</script>