| This tests using Date objects as keys and values. |
| |
| 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) |
| Initial upgrade needed: Old version - 0 New version - 1 |
| Initial upgrade versionchange transaction complete |
| Success getting key 'Fri Nov 04 1955 16:00:00 GMT-0800 (Pacific Standard Time)' of type object, result is 'Flux capacitor' of type string |
| Key is a Date object, btw |
| Success getting key 'Sat Nov 12 1955 10:00:00 GMT-0800 (Pacific Standard Time)' of type object, result is 'Fish under the sea' of type string |
| Key is a Date object, btw |
| Success getting key 'Wed Oct 21 2015 09:00:00 GMT-0700 (Pacific Daylight Time)' of type object, result is 'Hoverboards' of type string |
| Key is a Date object, btw |
| Success getting key 'a' of type string, result is 'Fri Nov 04 1955 16:00:00 GMT-0800 (Pacific Standard Time)' of type object |
| Result is a Date object, btw |
| Success getting key 'b' of type string, result is 'Sat Nov 12 1955 10:00:00 GMT-0800 (Pacific Standard Time)' of type object |
| Result is a Date object, btw |
| Success getting key 'c' of type string, result is 'Wed Oct 21 2015 09:00:00 GMT-0700 (Pacific Daylight Time)' of type object |
| Result is a Date object, btw |
| readonly transaction complete |
| PASS successfullyParsed is true |
| |
| TEST COMPLETE |
| |