| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>IndexedDB: IDBCursor update() Exception Ordering</title> | 2 <title>IndexedDB: IDBCursor update() 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-update"> | 4 <link rel="help" href="https://w3c.github.io/IndexedDB/#dom-idbcursor-update"> |
| 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.openCursor(); | 17 const r = s.openCursor(); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 cursor.update({id: 123, data: 'value2'}); | 89 cursor.update({id: 123, data: 'value2'}); |
| 90 }, '"Got value flag" check (InvalidStateError) should precede ' + | 90 }, '"Got value flag" check (InvalidStateError) should precede ' + |
| 91 '"modified key" check (DataError)'); | 91 '"modified key" check (DataError)'); |
| 92 t.done(); | 92 t.done(); |
| 93 }); | 93 }); |
| 94 }, | 94 }, |
| 95 'IDBCursor.update exception order: InvalidStateError vs. DataError' | 95 'IDBCursor.update exception order: InvalidStateError vs. DataError' |
| 96 ); | 96 ); |
| 97 | 97 |
| 98 </script> | 98 </script> |
| OLD | NEW |