| Test IndexedDB's basics. |
| |
| 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; |
| |
| dbname = "createIndex-after-failure.html" |
| indexedDB.deleteDatabase(dbname) |
| indexedDB.open(dbname) |
| objectStore.createIndex('index', 'key', {unique: true}) |
| objectStore.deleteIndex('index') |
| Expecting exception from objectStore.deleteIndex('index') |
| PASS Exception was thrown. |
| PASS code is DOMException.NOT_FOUND_ERR |
| PASS ename is 'NotFoundError' |
| Exception message: The specified index was not found. |
| Now requesting object2 |
| now we wait. |
| deleteIndexAfterGet() |
| Expecting exception from objectStore.deleteIndex('index') |
| PASS Exception was thrown. |
| PASS code is DOMException.NOT_FOUND_ERR |
| PASS ename is 'NotFoundError' |
| Exception message: The specified index was not found. |
| Expecting exception from objectStore.deleteIndex('index') |
| PASS Exception was thrown. |
| PASS code is DOMException.NOT_FOUND_ERR |
| PASS ename is 'NotFoundError' |
| Exception message: The specified index was not found. |
| PASS successfullyParsed is true |
| |
| TEST COMPLETE |
| |