Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: third_party/WebKit/LayoutTests/storage/indexeddb/idbtransaction-objectStore-exception-order.html

Issue 2415203002: Indexed DB: More exception precedence tests (Closed)
Patch Set: Review feedback - no more tx pinning, tweaked store create/delete tests to satisfy FF Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>IndexedDB: IDBTransaction objectStore() Exception Ordering</title>
3 <meta charset=utf-8>
4 <link rel="help" href="https://w3c.github.io/IndexedDB/#dom-idbtransaction-objec tstore">
5 <script src="../../resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script>
7 <script src="resources/testharness-helpers.js"></script>
8 <script>
9
10 indexeddb_test(
11 (t, db) => {
12 const store = db.createObjectStore('s');
13 },
14 (t, db) => {
15 const tx = db.transaction('s');
16 tx.oncomplete = t.step_func(() => {
17 assert_throws('InvalidStateError', () => { tx.objectStore('nope'); },
18 '"finished" check (InvalidStateError) should precede ' +
19 '"name in scope" check (NotFoundError)');
20 t.done();
21 });
22 },
23 'IDBTransaction.objectStore exception order: InvalidStateError vs. NotFoundErr or'
24 );
25
26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698