mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue