| Test that continue() calls against cursors are validated by direction. |
| 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) |
| store = db.createObjectStore('store') |
| trans = db.transaction('store') |
| store = trans.objectStore('store') |
| request = store.openCursor(IDBKeyRange.bound(-Infinity, Infinity), 'next') |
| Expect DataError if: The parameter is less than or equal to this cursor's position and this cursor's direction is "next" or "nextunique". |
| Expecting exception from cursor.continue(-1) |
| PASS Exception was thrown. |
| PASS ename is 'DataError' |
| Exception message: Failed to execute 'continue' on 'IDBCursor': The parameter is less than or equal to this cursor's position. |
| request = store.openCursor(IDBKeyRange.bound(-Infinity, Infinity), 'prev') |
| Expect DataError if: The parameter is greater than or equal to this cursor's position and this cursor's direction is "prev" or "prevunique". |
| Expecting exception from cursor.continue(11) |
| PASS Exception was thrown. |
| PASS ename is 'DataError' |
| Exception message: Failed to execute 'continue' on 'IDBCursor': The parameter is greater than or equal to this cursor's position. |
| PASS successfullyParsed is true |