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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbcursor-continue-exception-order.htm

Issue 2659513002: Upstream an assortment of IndexedDB tests to WPT. (Closed)
Patch Set: Rebased MANIFEST.json Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbcursor-delete-exception-order.htm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>IndexedDB: IDBCursor continue() Exception Ordering</title> 2 <title>IndexedDB: IDBCursor continue() Exception Ordering</title>
3 <meta charset=utf-8> 3 <meta charset=utf-8>
4 <link rel="help" href="https://w3c.github.io/IndexedDB/#dom-idbcursor-continue"> 4 <link rel="help" href="https://w3c.github.io/IndexedDB/#dom-idbcursor-continue">
5 <script src="../../resources/testharness.js"></script> 5 <script src="/resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script> 6 <script src="/resources/testharnessreport.js"></script>
7 <script src="resources/testharness-helpers.js"></script> 7 <script src="support.js"></script>
8 <script> 8 <script>
9 9
10 indexeddb_test( 10 indexeddb_test(
11 (t, db) => { 11 (t, db) => {
12 const s = db.createObjectStore('s'); 12 const s = db.createObjectStore('s');
13 s.put('value', 'key'); 13 s.put('value', 'key');
14 }, 14 },
15 (t, db) => { 15 (t, db) => {
16 const s = db.transaction('s', 'readonly').objectStore('s'); 16 const s = db.transaction('s', 'readonly').objectStore('s');
17 const r = s.openKeyCursor(); 17 const r = s.openKeyCursor();
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 cursor.continue({not: "a valid key"}); 72 cursor.continue({not: "a valid key"});
73 }, '"got value flag" check (InvalidStateError) should precede ' + 73 }, '"got value flag" check (InvalidStateError) should precede ' +
74 '"invalid key" check (DataError)'); 74 '"invalid key" check (DataError)');
75 t.done(); 75 t.done();
76 }); 76 });
77 }, 77 },
78 'IDBCursor.continue exception order: InvalidStateError vs. DataError' 78 'IDBCursor.continue exception order: InvalidStateError vs. DataError'
79 ); 79 );
80 80
81 </script> 81 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/external/wpt/IndexedDB/idbcursor-delete-exception-order.htm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698