OLD | NEW |
| 1 CONSOLE ERROR: line 1: Unable to add key to index 'index-unique': at least one k
ey does not satisfy the uniqueness requirements. |
1 Test features of IndexedDB's multiEntry indices. | 2 Test features of IndexedDB's multiEntry indices. |
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 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; | 7 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; |
7 | 8 |
8 dbname = "index-multientry.html" | 9 dbname = "index-multientry.html" |
9 indexedDB.deleteDatabase(dbname) | 10 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 11 indexedDB.open(dbname) |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 transaction = db.transaction(['store']) | 172 transaction = db.transaction(['store']) |
172 transaction.objectStore('store').index('index') | 173 transaction.objectStore('store').index('index') |
173 index.count() | 174 index.count() |
174 PASS event.target.result is 9 | 175 PASS event.target.result is 9 |
175 index.count(7) | 176 index.count(7) |
176 PASS event.target.result is 1 | 177 PASS event.target.result is 1 |
177 PASS successfullyParsed is true | 178 PASS successfullyParsed is true |
178 | 179 |
179 TEST COMPLETE | 180 TEST COMPLETE |
180 | 181 |
OLD | NEW |