OLD | NEW |
1 Test IndexedDB's creating object store and updating properties | 1 Test IndexedDB's creating object store and updating properties |
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 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; | |
7 | |
8 dbname = "create-objectstore-basics.html" | 6 dbname = "create-objectstore-basics.html" |
9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
11 objectStore = db.createObjectStore(info.name, info.options); | 9 objectStore = db.createObjectStore(info.name, info.options); |
12 PASS objectStore.name is info.name | 10 PASS objectStore.name is info.name |
13 PASS objectStore.indexNames.length is 0 | 11 PASS objectStore.indexNames.length is 0 |
14 PASS event.target.transaction.db is db | 12 PASS event.target.transaction.db is db |
15 PASS event.target.transaction.mode is "versionchange" | 13 PASS event.target.transaction.mode is "versionchange" |
16 objectStore = db.createObjectStore(info.name, info.options); | 14 objectStore = db.createObjectStore(info.name, info.options); |
17 PASS objectStore.name is info.name | 15 PASS objectStore.name is info.name |
(...skipping 29 matching lines...) Expand all Loading... |
47 objectStore = db.createObjectStore(info.name, info.options); | 45 objectStore = db.createObjectStore(info.name, info.options); |
48 PASS objectStore.name is info.name | 46 PASS objectStore.name is info.name |
49 PASS objectStore.keyPath is info.options.keyPath | 47 PASS objectStore.keyPath is info.options.keyPath |
50 PASS objectStore.indexNames.length is 0 | 48 PASS objectStore.indexNames.length is 0 |
51 PASS event.target.transaction.db is db | 49 PASS event.target.transaction.db is db |
52 PASS event.target.transaction.mode is "versionchange" | 50 PASS event.target.transaction.mode is "versionchange" |
53 PASS successfullyParsed is true | 51 PASS successfullyParsed is true |
54 | 52 |
55 TEST COMPLETE | 53 TEST COMPLETE |
56 | 54 |
OLD | NEW |