beidson@apple.com | 4438e75 | 2015-11-05 20:23:02 +0000 | [diff] [blame] | 1 | This tests some obvious failures that can happen while calling the IDBIndex methods get(), getKey(), and count(). |
beidson@apple.com | bb61684 | 2016-01-19 23:41:11 +0000 | [diff] [blame] | 2 | |
| 3 | On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| 4 | |
| 5 | |
beidson@apple.com | dea703e | 2016-01-20 22:27:08 +0000 | [diff] [blame^] | 6 | indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB; |
| 7 | |
| 8 | indexedDB.deleteDatabase(dbname) |
| 9 | indexedDB.open(dbname) |
beidson@apple.com | 4438e75 | 2015-11-05 20:23:02 +0000 | [diff] [blame] | 10 | Initial upgrade needed: Old version - 0 New version - 1 |
| 11 | Failed to get with a null key |
| 12 | Failed to getKey with a null key |
beidson@apple.com | efa4fab | 2015-11-19 19:57:18 +0000 | [diff] [blame] | 13 | Failed to get with deleted IDBIndex |
| 14 | Failed to getKey with deleted IDBIndex |
| 15 | Failed to count with deleted IDBIndex |
| 16 | Failed to delete a nonexistent IDBIndex |
beidson@apple.com | 4438e75 | 2015-11-05 20:23:02 +0000 | [diff] [blame] | 17 | Failed to get with deleted IDBObjectStore |
| 18 | Failed to getKey with deleted IDBObjectStore |
| 19 | Failed to count with deleted IDBObjectStore |
| 20 | Initial upgrade versionchange transaction complete |
| 21 | Failed to get while transaction inactive |
| 22 | Failed to getKey while transaction inactive |
| 23 | Failed to count while transaction inactive |
| 24 | readonly transaction complete |
beidson@apple.com | bb61684 | 2016-01-19 23:41:11 +0000 | [diff] [blame] | 25 | PASS successfullyParsed is true |
| 26 | |
| 27 | TEST COMPLETE |
beidson@apple.com | 4438e75 | 2015-11-05 20:23:02 +0000 | [diff] [blame] | 28 | |