diff options
Diffstat (limited to 'LayoutTests/storage/indexeddb/transaction-read-only-expected.txt')
-rw-r--r-- | LayoutTests/storage/indexeddb/transaction-read-only-expected.txt | 38 |
1 files changed, 7 insertions, 31 deletions
diff --git a/LayoutTests/storage/indexeddb/transaction-read-only-expected.txt b/LayoutTests/storage/indexeddb/transaction-read-only-expected.txt index 9d3d668..a5a2b7e 100644 --- a/LayoutTests/storage/indexeddb/transaction-read-only-expected.txt +++ b/LayoutTests/storage/indexeddb/transaction-read-only-expected.txt @@ -5,50 +5,26 @@ 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('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-read-only') 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 +db = event.target.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 - Deleted all object stores. store = db.createObjectStore('store') store.put('x', 'y') trans = db.transaction() Expecting exception from trans.objectStore('store').put('a', 'b') +PASS Exception was thrown. PASS code is webkitIDBDatabaseException.READ_ONLY_ERR trans = db.transaction() Expecting exception from trans.objectStore('store').delete('x') +PASS Exception was thrown. PASS code is webkitIDBDatabaseException.READ_ONLY_ERR trans = db.transaction() cur = trans.objectStore('store').openCursor() -PASS !event.result is false -Expecting exception from event.result.delete() +PASS !event.target.result is false +Expecting exception from event.target.result.delete() +PASS Exception was thrown. PASS code is webkitIDBDatabaseException.READ_ONLY_ERR PASS successfullyParsed is true |