mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision b'1d9b01e2fad6af3a057d571b1e088e15fa9bc8e6'
This commit is contained in:
parent
cfef75c99b
commit
bb34f95b33
1683 changed files with 37170 additions and 4252 deletions
|
@ -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");
|
||||
|
|
|
@ -9,6 +9,7 @@ var validRequestHeaders = [
|
|||
["sec", "OK"],
|
||||
["secb", "OK"],
|
||||
["Set-Cookie2", "OK"],
|
||||
["User-Agent", "OK"],
|
||||
];
|
||||
var invalidRequestHeaders = [
|
||||
["Accept-Charset", "KO"],
|
||||
|
|
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue