diff options
author | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2022-11-10 01:22:36 +0000 |
---|---|---|
committer | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2022-11-10 01:27:28 +0000 |
commit | df68c4e5d155bdca6f787268bb266fd7979347f0 (patch) | |
tree | d1a2e89454b0ba282bca143acd7616fdcc86c4e3 /tests/wpt/web-platform-tests/FileAPI/blob | |
parent | ace9b32b1c18fb5a2fa3118f47aea98e9965ed67 (diff) | |
download | servo-df68c4e5d155bdca6f787268bb266fd7979347f0.tar.gz servo-df68c4e5d155bdca6f787268bb266fd7979347f0.zip |
Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005'
Diffstat (limited to 'tests/wpt/web-platform-tests/FileAPI/blob')
-rw-r--r-- | tests/wpt/web-platform-tests/FileAPI/blob/Blob-stream.any.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/wpt/web-platform-tests/FileAPI/blob/Blob-stream.any.js b/tests/wpt/web-platform-tests/FileAPI/blob/Blob-stream.any.js index 792b6639c35..08cca8dbe68 100644 --- a/tests/wpt/web-platform-tests/FileAPI/blob/Blob-stream.any.js +++ b/tests/wpt/web-platform-tests/FileAPI/blob/Blob-stream.any.js @@ -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" + |