| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!doctype html> |
| 2 <meta charset=utf-8> |
| 2 <title>IndexedDB: IDBObjectStore clear() Exception Ordering</title> | 3 <title>IndexedDB: IDBObjectStore clear() Exception Ordering</title> |
| 3 <meta charset=utf-8> | |
| 4 <link rel="help" href="https://w3c.github.io/IndexedDB/#dom-idbobjectstore-clear
"> | 4 <link rel="help" href="https://w3c.github.io/IndexedDB/#dom-idbobjectstore-clear
"> |
| 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 store = db.createObjectStore('s'); | 12 const store = db.createObjectStore('s'); |
| 13 const store2 = db.createObjectStore('s2'); | 13 const store2 = db.createObjectStore('s2'); |
| 14 | 14 |
| 15 db.deleteObjectStore('s2'); | 15 db.deleteObjectStore('s2'); |
| 16 | 16 |
| 17 setTimeout(t.step_func(() => { | 17 setTimeout(t.step_func(() => { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 42 '"read only" check (ReadOnlyError)'); | 42 '"read only" check (ReadOnlyError)'); |
| 43 t.done(); | 43 t.done(); |
| 44 }), 0); | 44 }), 0); |
| 45 }, | 45 }, |
| 46 | 46 |
| 47 'IDBObjectStore.clear exception order: ' + | 47 'IDBObjectStore.clear exception order: ' + |
| 48 'TransactionInactiveError vs. ReadOnlyError' | 48 'TransactionInactiveError vs. ReadOnlyError' |
| 49 ); | 49 ); |
| 50 | 50 |
| 51 </script> | 51 </script> |
| OLD | NEW |