1CONSOLE MESSAGE: line 65: Uncaught this exception is expected 2CONSOLE MESSAGE: line 65: Uncaught this exception is expected 3Test exceptions in IDBRequest handlers cause aborts. 4 5On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 6 7 8webkitIndexedDB.open('exception-in-event-aborts') 9db = event.target.result 10db.setVersion('new version') 11setVersionSuccess(): 12trans = event.target.result 13PASS trans !== null is true 14trans.oncomplete = startTest 15Deleted all object stores. 16store = db.createObjectStore('storeName', null) 17store.add({x: 'value', y: 'zzz'}, 'key') 18 19trans = db.transaction([], webkitIDBTransaction.READ_WRITE) 20trans.onabort = transactionAborted1 21trans.oncomplete = unexpectedCompleteCallback 22store = trans.objectStore('storeName') 23store.add({x: 'value2', y: 'zzz2'}, 'key2') 24 25event.preventDefault() 26Throwing 27 28PASS The transaction was aborted. 29trans = db.transaction([], webkitIDBTransaction.READ_WRITE) 30trans.onabort = transactionAborted2 31trans.oncomplete = unexpectedCompleteCallback 32store = trans.objectStore('storeName') 33store.add({x: 'value', y: 'zzz'}, 'key') 34 35event.preventDefault() 36Throwing 37 38PASS The transaction was aborted. 39trans = db.transaction([], webkitIDBTransaction.READ_WRITE) 40trans.onabort = unexpectedAbortCallback 41trans.oncomplete = transactionCompleted1 42store = trans.objectStore('storeName') 43store.add({x: 'value3', y: 'zzz3'}, 'key3') 44 45event.preventDefault() 46Throwing within a try block 47 48PASS The transaction completed. 49trans = db.transaction([], webkitIDBTransaction.READ_WRITE) 50trans.onabort = unexpectedAbortCallback 51trans.oncomplete = transactionCompleted2 52store = trans.objectStore('storeName') 53store.add({x: 'value4', y: 'zzz4'}, 'key4') 54FAIL Success function called unexpectedly. 55 56PASS The transaction completed. 57 58PASS successfullyParsed is true 59 60TEST COMPLETE 61 62