OLD | NEW |
1 Test IndexedDB index .get() required argument | 1 Test IndexedDB index .get() required argument |
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-get-key-argument-required.html" | 6 dbname = "index-get-key-argument-required.html" |
9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
11 objectStore = db.createObjectStore('foo', { keyPath: 'id', autoIncrement: true }
); | 9 objectStore = db.createObjectStore('foo', { keyPath: 'id', autoIncrement: true }
); |
12 index = objectStore.createIndex('first', 'first'); | 10 index = objectStore.createIndex('first', 'first'); |
13 PASS index.get(); threw exception TypeError: Failed to execute 'get' on 'IDBInde
x': 1 argument required, but only 0 present.. | 11 PASS index.get(); threw exception TypeError: Failed to execute 'get' on 'IDBInde
x': 1 argument required, but only 0 present.. |
14 PASS index.getKey(); threw exception TypeError: Failed to execute 'getKey' on 'I
DBIndex': 1 argument required, but only 0 present.. | 12 PASS index.getKey(); threw exception TypeError: Failed to execute 'getKey' on 'I
DBIndex': 1 argument required, but only 0 present.. |
15 PASS successfullyParsed is true | 13 PASS successfullyParsed is true |
16 | 14 |
17 TEST COMPLETE | 15 TEST COMPLETE |
18 | 16 |
OLD | NEW |