| OLD | NEW |
| 1 Test features of IndexedDB's multiEntry indices. | 1 Test features of IndexedDB's multiEntry indices. |
| 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 = "index-multientry.html" | 6 dbname = "index-multientry.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 store = db.createObjectStore('store') | 9 store = db.createObjectStore('store') |
| 12 store.createIndex('index', 'x', {multiEntry: true}) | 10 store.createIndex('index', 'x', {multiEntry: true}) |
| 13 store2 = db.createObjectStore('store-unique') | 11 store2 = db.createObjectStore('store-unique') |
| 14 store2.createIndex('index-unique', 'x', {multiEntry: true, unique: true}) | 12 store2.createIndex('index-unique', 'x', {multiEntry: true, unique: true}) |
| 15 | 13 |
| 16 Populating stores (and indexes) | 14 Populating stores (and indexes) |
| 17 transaction = db.transaction(['store'], 'readwrite') | 15 transaction = db.transaction(['store'], 'readwrite') |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 transaction = db.transaction(['store']) | 171 transaction = db.transaction(['store']) |
| 174 transaction.objectStore('store').index('index') | 172 transaction.objectStore('store').index('index') |
| 175 index.count() | 173 index.count() |
| 176 PASS event.target.result is 9 | 174 PASS event.target.result is 9 |
| 177 index.count(7) | 175 index.count(7) |
| 178 PASS event.target.result is 1 | 176 PASS event.target.result is 1 |
| 179 PASS successfullyParsed is true | 177 PASS successfullyParsed is true |
| 180 | 178 |
| 181 TEST COMPLETE | 179 TEST COMPLETE |
| 182 | 180 |
| OLD | NEW |