1 Regression test for http://webkit.org/b/102547
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "object-lookups-in-versionchange.html"
7 indexedDB.deleteDatabase(dbname)
9 db = event.target.result
10 transaction = event.target.transaction
11 store = db.createObjectStore('store')
13 Expecting exception from transaction.objectStore('no-such-store')
14 PASS Exception was thrown.
15 PASS code is DOMException.NOT_FOUND_ERR
16 PASS ename is 'NotFoundError'
17 Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The specified object store was not found.
19 Expecting exception from store.index('no-such-index')
20 PASS Exception was thrown.
21 PASS code is DOMException.NOT_FOUND_ERR
22 PASS ename is 'NotFoundError'
23 Exception message: Failed to execute 'index' on 'IDBObjectStore': The specified index was not found.
24 PASS successfullyParsed is true