mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005'
This commit is contained in:
parent
ace9b32b1c
commit
df68c4e5d1
15632 changed files with 514865 additions and 155000 deletions
|
@ -7,8 +7,9 @@
|
|||
// if perform_gc is true.
|
||||
async function read_and_gc(reader, perform_gc) {
|
||||
const read_promise = reader.read();
|
||||
if (perform_gc)
|
||||
garbageCollect();
|
||||
if (perform_gc) {
|
||||
await garbageCollect();
|
||||
}
|
||||
return read_promise;
|
||||
}
|
||||
|
||||
|
@ -65,7 +66,7 @@ promise_test(async() => {
|
|||
let blob = new Blob([typed_arr]);
|
||||
const stream = blob.stream();
|
||||
blob = null;
|
||||
garbageCollect();
|
||||
await garbageCollect();
|
||||
const chunks = await read_all_chunks(stream, /*perform_gc=*/true);
|
||||
assert_array_equals(chunks, input_arr);
|
||||
}, "Blob.stream() garbage collection of blob shouldn't break stream" +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue