OLD | NEW |
1 Test IndexedDB's creating and deleting indexes | 1 Test IndexedDB's creating and deleting indexes |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 dbname = "remove-index.html" | 6 dbname = "remove-index.html" |
7 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
8 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
9 objectStore = db.createObjectStore(objectStoreName, { keyPath: 'foo' }); | 9 objectStore = db.createObjectStore(objectStoreName, { keyPath: 'foo' }); |
10 PASS db.objectStoreNames.length is 1 | 10 PASS db.objectStoreNames.length is 1 |
11 PASS db.objectStoreNames.item(0) is objectStoreName | 11 PASS db.objectStoreNames[0] is objectStoreName |
12 PASS objectStore.indexNames.length is 0 | 12 PASS objectStore.indexNames.length is 0 |
13 index = objectStore.createIndex(indexName, 'foo'); | 13 index = objectStore.createIndex(indexName, 'foo'); |
14 PASS objectStore.indexNames.length is 1 | 14 PASS objectStore.indexNames.length is 1 |
15 PASS objectStore.indexNames.item(0) is indexName | 15 PASS objectStore.indexNames[0] is indexName |
16 objectStore.deleteIndex(indexName); | 16 objectStore.deleteIndex(indexName); |
17 PASS objectStore.indexNames.length is 0 | 17 PASS objectStore.indexNames.length is 0 |
18 PASS successfullyParsed is true | 18 PASS successfullyParsed is true |
19 | 19 |
20 TEST COMPLETE | 20 TEST COMPLETE |
21 | 21 |
OLD | NEW |