diff options
author | Ben Murdoch <benm@google.com> | 2011-05-13 16:23:25 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2011-05-16 11:35:02 +0100 |
commit | 65f03d4f644ce73618e5f4f50dd694b26f55ae12 (patch) | |
tree | f478babb801e720de7bfaee23443ffe029f58731 /LayoutTests/storage/indexeddb/transaction-read-only-expected.txt | |
parent | 47de4a2fb7262c7ebdb9cd133ad2c54c187454d0 (diff) | |
download | external_webkit-65f03d4f644ce73618e5f4f50dd694b26f55ae12.zip external_webkit-65f03d4f644ce73618e5f4f50dd694b26f55ae12.tar.gz external_webkit-65f03d4f644ce73618e5f4f50dd694b26f55ae12.tar.bz2 |
Merge WebKit at r75993: Initial merge by git.
Change-Id: I602bbdc3974787a3b0450456a30a7868286921c3
Diffstat (limited to 'LayoutTests/storage/indexeddb/transaction-read-only-expected.txt')
-rw-r--r-- | LayoutTests/storage/indexeddb/transaction-read-only-expected.txt | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/LayoutTests/storage/indexeddb/transaction-read-only-expected.txt b/LayoutTests/storage/indexeddb/transaction-read-only-expected.txt new file mode 100644 index 0000000..9d3d668 --- /dev/null +++ b/LayoutTests/storage/indexeddb/transaction-read-only-expected.txt @@ -0,0 +1,56 @@ +Test read-only transactions in IndexedDB. + +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... + +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 + +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 code is webkitIDBDatabaseException.READ_ONLY_ERR +trans = db.transaction() +Expecting exception from trans.objectStore('store').delete('x') +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 code is webkitIDBDatabaseException.READ_ONLY_ERR +PASS successfullyParsed is true + +TEST COMPLETE + |