Regression test for http://webkit.org/b/102547

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 = "object-lookups-in-versionchange.html"
indexedDB.deleteDatabase(dbname)
indexedDB.open(dbname)
db = event.target.result
transaction = event.target.transaction
store = db.createObjectStore('store')

Expecting exception from transaction.objectStore('no-such-store')
PASS Exception was thrown.
PASS code is DOMException.NOT_FOUND_ERR
PASS ename is 'NotFoundError'

Expecting exception from store.index('no-such-index')
PASS Exception was thrown.
PASS code is DOMException.NOT_FOUND_ERR
PASS ename is 'NotFoundError'
PASS successfullyParsed is true

TEST COMPLETE

