OLD | NEW |
| 1 CONSOLE WARNING: 'DOMStringList.contains()' is deprecated, and will be removed. |
1 Test IndexedDB's indexedDB.deleteDatabase(). | 2 Test IndexedDB's indexedDB.deleteDatabase(). |
2 | 3 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 5 |
5 | 6 |
6 dbname = "factory-deletedatabase.html" | 7 dbname = "factory-deletedatabase.html" |
7 indexedDB.deleteDatabase(dbname) | 8 indexedDB.deleteDatabase(dbname) |
8 indexedDB.open(dbname) | 9 indexedDB.open(dbname) |
9 store = db.createObjectStore('storeName', null) | 10 store = db.createObjectStore('storeName', null) |
10 store.createIndex('indexName', '') | 11 store.createIndex('indexName', '') |
11 PASS store.indexNames.contains('indexName') is true | 12 PASS store.indexNames.contains('indexName') is true |
12 store.add('value', 'key') | 13 store.add('value', 'key') |
13 db.transaction('storeName', 'readwrite') | 14 db.transaction('storeName', 'readwrite') |
14 store = transaction.objectStore('storeName') | 15 store = transaction.objectStore('storeName') |
15 store.get('key') | 16 store.get('key') |
16 PASS event.target.result is "value" | 17 PASS event.target.result is "value" |
17 db.close() | 18 db.close() |
18 indexedDB.open(dbname, 2) | 19 indexedDB.open(dbname, 2) |
19 db = event.target.result | 20 db = event.target.result |
20 request = indexedDB.deleteDatabase(dbname) | 21 request = indexedDB.deleteDatabase(dbname) |
21 db.close() | 22 db.close() |
22 PASS request.result is undefined. | 23 PASS request.result is undefined. |
23 indexedDB.open(dbname, 3) | 24 indexedDB.open(dbname, 3) |
24 db = event.target.result | 25 db = event.target.result |
25 PASS db.objectStoreNames.length is 0 | 26 PASS db.objectStoreNames.length is 0 |
26 PASS successfullyParsed is true | 27 PASS successfullyParsed is true |
27 | 28 |
28 TEST COMPLETE | 29 TEST COMPLETE |
29 | 30 |
OLD | NEW |