diff options
Diffstat (limited to 'LayoutTests/storage/indexeddb/transaction-after-close-expected.txt')
-rw-r--r-- | LayoutTests/storage/indexeddb/transaction-after-close-expected.txt | 78 |
1 files changed, 8 insertions, 70 deletions
diff --git a/LayoutTests/storage/indexeddb/transaction-after-close-expected.txt b/LayoutTests/storage/indexeddb/transaction-after-close-expected.txt index 653bd87..6be5795 100644 --- a/LayoutTests/storage/indexeddb/transaction-after-close-expected.txt +++ b/LayoutTests/storage/indexeddb/transaction-after-close-expected.txt @@ -5,90 +5,28 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE PASS 'webkitIndexedDB' in window is true PASS webkitIndexedDB == null is false -webkitIndexedDB.open('some db name') -PASS 'onsuccess' in result is true -PASS 'onerror' in result is true -PASS 'readyState' in result is true -An event should fire shortly... - +webkitIndexedDB.open('transaction-after-close') openSuccess(): -Success event fired: -PASS 'result' in event is true -PASS 'code' in event is false -PASS 'message' in event is false -PASS 'source' in event is true -PASS event.source != null is true -PASS 'onsuccess' in event.target is true -PASS 'onerror' in event.target is true -PASS 'readyState' in event.target is true -PASS event.target.readyState is event.target.DONE - -db = event.result -result = db.setVersion('version 1') -Success event fired: -PASS 'result' in event is true -PASS 'code' in event is false -PASS 'message' in event is false -PASS 'source' in event is true -PASS event.source != null is true -PASS 'onsuccess' in event.target is true -PASS 'onerror' in event.target is true -PASS 'readyState' in event.target is true -PASS event.target.readyState is event.target.DONE - +db = event.target.result +request = db.setVersion('version 1') Deleted all object stores. store = db.createObjectStore('store') request = store.put('x', 'y') -Success event fired: -PASS 'result' in event is true -PASS 'code' in event is false -PASS 'message' in event is false -PASS 'source' in event is true -PASS event.source != null is true -PASS 'onsuccess' in event.target is true -PASS 'onerror' in event.target is true -PASS 'readyState' in event.target is true -PASS event.target.readyState is event.target.DONE - +PASS Put success running first transaction currentTransaction = db.transaction([], webkitIDBTransaction.READ_WRITE) objectStore.put('a', 'b') db.close() Expecting exception from db.transaction([], webkitIDBTransaction.READ_WRITE) +PASS Exception was thrown. PASS code is webkitIDBDatabaseException.NOT_ALLOWED_ERR verify that we can reopen the db after calling close -webkitIndexedDB.open('some db name') -PASS 'onsuccess' in result is true -PASS 'onerror' in result is true -PASS 'readyState' in result is true -An event should fire shortly... - -Success event fired: -PASS 'result' in event is true -PASS 'code' in event is false -PASS 'message' in event is false -PASS 'source' in event is true -PASS event.source != null is true -PASS 'onsuccess' in event.target is true -PASS 'onerror' in event.target is true -PASS 'readyState' in event.target is true -PASS event.target.readyState is event.target.DONE - -second_db = event.result +webkitIndexedDB.open('transaction-after-close') +second_db = event.target.result currentTransaction = second_db.transaction([], webkitIDBTransaction.READ_WRITE) request = store.put('1', '2') -Success event fired: -PASS 'result' in event is true -PASS 'code' in event is false -PASS 'message' in event is false -PASS 'source' in event is true -PASS event.source != null is true -PASS 'onsuccess' in event.target is true -PASS 'onerror' in event.target is true -PASS 'readyState' in event.target is true -PASS event.target.readyState is event.target.DONE - +PASS final put success PASS successfullyParsed is true TEST COMPLETE |