Bug 1868414 [wpt PR 43520] - IndexedDB: fix structured-clone.any.html, a=testonly

Automatic update from web-platform-tests
IndexedDB: fix structured-clone.any.html

There was a race between setting up the transaction event watcher and
the transaction auto-committing.

Unfortunately I don't see a great way to make this testing pattern more
full-proof, e.g. by checking whether the transaction is already finished
at the time of setting up the observer, since there's no way to check
the transaction's current state.

This is a good example of the pain of mixing IDB's unique flavor of
async with promises.

Bug: 1506270
Change-Id: I9cd630f9e2732532471c04841d4fbf8ddd722d66
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5086039
Commit-Queue: Evan Stade <estade@chromium.org>
Reviewed-by: Nathan Memmott <memmott@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1233503}

--

wpt-commits: c0fdc0225d2294c8a5002f5684f00012609eb9ae
wpt-pr: 43520
This commit is contained in:
moz-wptsync-bot 2023-12-05 20:42:15 +00:00
parent dcb948938d
commit 6d22c3a963

View File

@ -1,4 +1,5 @@
[image-lcp-before-detection.tentative.html]
expected: TIMEOUT
expected: [TIMEOUT, ERROR]
[image-lcp-before-detection]
expected: TIMEOUT