Bug 1811780 [wpt PR 38102] - WPT: Update IDB WPT helper to avoid duplicate object...
commit67a142769910e33392529109fb5cb018eb1ae141
authorBlink WPT Bot <blink-w3c-test-autoroller@chromium.org>
Mon, 6 Mar 2023 13:52:52 +0000 (6 13:52 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Tue, 7 Mar 2023 00:23:59 +0000 (7 00:23 +0000)
tree3ea191fa32c43682c5a4c591ef86a5cb76b06d2f
parent0e5eedd7cdad84bd4e74a8e4903beef6c1a5ccb6
Bug 1811780 [wpt PR 38102] - WPT: Update IDB WPT helper to avoid duplicate object store creation, a=testonly

Automatic update from web-platform-tests
WPT: Update IDB WPT helper to avoid duplicate object store creation (#38102)

In the WPT that requires creating IDB connection with different version,
we should not create the same object store for multiple times. This CL adds
a version check to ensure that it's only created when version equals to 1.

Bug: 1331187
Change-Id: I4d52cc0e2c56493db5bad59705822c3550fa886c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4178503
Reviewed-by: Fergal Daly <fergal@chromium.org>
Commit-Queue: Fergal Daly <fergal@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1107329}

Co-authored-by: Mingyu Lei <leimy@chromium.org>
--

wpt-commits: b49f71e8ec16c3818a8fa7852594a6ff4159e577
wpt-pr: 38102
testing/web-platform/tests/IndexedDB/resources/support.js