| Test IndexedDB index .get() required argument |
| |
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| |
| |
| indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB; |
| |
| indexedDB.deleteDatabase(dbname) |
| indexedDB.open(dbname) |
| objectStore = db.createObjectStore('foo', { keyPath: 'id', autoIncrement: true }); |
| index = objectStore.createIndex('first', 'first'); |
| PASS index.get(); threw exception TypeError: Not enough arguments. |
| PASS index.getKey(); threw exception TypeError: Not enough arguments. |
| PASS successfullyParsed is true |
| |
| TEST COMPLETE |
| |