-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IDB WPTs: Extend idbtransaction-objectStore related tests to workers
The update modifies idbtransaction-objectStore related WPTs to run not only in window environments but also on dedicated, service, and shared workers. Bug: 41455766 Change-Id: I78c3ac5bece152c71343b7ca01618ca9789e3ab1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5913117 Auto-Submit: Garima Chadha <[email protected]> Reviewed-by: Steve Becker <[email protected]> Reviewed-by: Rahul Singh <[email protected]> Commit-Queue: Garima Chadha <[email protected]> Cr-Commit-Position: refs/heads/main@{#1409462}
- Loading branch information
1 parent
b0074f3
commit 719c62b
Showing
3 changed files
with
30 additions
and
36 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
IndexedDB/idbtransaction-objectStore-exception-order.any.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// META: global=window,worker | ||
// META: title=IndexedDB: IDBTransaction objectStore() Exception Ordering | ||
// META: script=resources/support.js | ||
|
||
// Spec: https://w3c.github.io/IndexedDB/#dom-idbtransaction-objectstore | ||
|
||
'use strict'; | ||
|
||
indexeddb_test( | ||
(t, db) => { | ||
const store = db.createObjectStore('s'); | ||
}, | ||
(t, db) => { | ||
const tx = db.transaction('s', 'readonly'); | ||
tx.oncomplete = t.step_func(() => { | ||
assert_throws_dom('InvalidStateError', () => { tx.objectStore('nope'); }, | ||
'"finished" check (InvalidStateError) should precede ' + | ||
'"name in scope" check (NotFoundError)'); | ||
t.done(); | ||
}); | ||
}, | ||
'IDBTransaction.objectStore exception order: InvalidStateError vs. NotFoundError' | ||
); |
This file was deleted.
Oops, something went wrong.
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