blob: 1fc0dc5e9907e66b6cbfa48750134db3cfa9049e [file] [log] [blame]
beidson@apple.com4438e752015-11-05 20:23:02 +00001This tests some obvious failures that can happen while calling the IDBIndex methods get(), getKey(), and count().
beidson@apple.combb616842016-01-19 23:41:11 +00002
3On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
beidson@apple.comdea703e2016-01-20 22:27:08 +00006indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB;
7
8indexedDB.deleteDatabase(dbname)
9indexedDB.open(dbname)
beidson@apple.com4438e752015-11-05 20:23:02 +000010Initial upgrade needed: Old version - 0 New version - 1
11Failed to get with a null key
12Failed to getKey with a null key
beidson@apple.comefa4fab2015-11-19 19:57:18 +000013Failed to get with deleted IDBIndex
14Failed to getKey with deleted IDBIndex
15Failed to count with deleted IDBIndex
16Failed to delete a nonexistent IDBIndex
beidson@apple.com4438e752015-11-05 20:23:02 +000017Failed to get with deleted IDBObjectStore
18Failed to getKey with deleted IDBObjectStore
19Failed to count with deleted IDBObjectStore
20Initial upgrade versionchange transaction complete
21Failed to get while transaction inactive
22Failed to getKey while transaction inactive
23Failed to count while transaction inactive
24readonly transaction complete
beidson@apple.combb616842016-01-19 23:41:11 +000025PASS successfullyParsed is true
26
27TEST COMPLETE
beidson@apple.com4438e752015-11-05 20:23:02 +000028