-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IndexedDB: Speed up and refactor IDBObjectStore get all WPTs
Updates test setup to only create the object store used by the test. Prior to this change, test setup always created all object stores, but each test only used a single object store. The `IDBObjectStore::getAllRecords()` change (https://chromium-review.googlesource.com/c/chromium/src/+/5911615) introduced a large value test, which caused timeouts when running in slow test environments. Skipping setup of the large value object store improves test runtimes. The change also adds `META: timeout=long` since the `IDBObjectStore` get all WPTs include many test cases. This should also help prevent future timeouts. The change refactors the `IDBObjectStore` get all WPTs to run the same test code. The change introduces the `get_all_test()` helper function that includes a `getAllFunctionName` argument to select which get all function to run: `getAllKeys()`, `getAll()` or `getAllRecords()`. `getAllFunctionName` also selects which output verification to perform, which either verifies an array of keys, values, or `IDBRecords`. This refactoring eliminates code duplicated across the `IDBObjectStore` get all WPTs. Bug: 378869818,383706488,382575666,380653805 Change-Id: I8c3351f6d19ac1bf016c7f478d64dbe4b415c7b8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6098322 Reviewed-by: Evan Stade <estade@chromium.org> Reviewed-by: Rahul Singh <rahsin@microsoft.com> Commit-Queue: Steve Becker <stevebe@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1397443}
- Loading branch information
1 parent
81fc365
commit 810cb30
Showing
4 changed files
with
386 additions
and
433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.