| Index: third_party/WebKit/LayoutTests/storage/indexeddb/version-change-abort-expected.txt
|
| diff --git a/third_party/WebKit/LayoutTests/storage/indexeddb/version-change-abort-expected.txt b/third_party/WebKit/LayoutTests/storage/indexeddb/version-change-abort-expected.txt
|
| index 72ad97435f6c36203729cccb9675cad400f2d3d1..b29b0f8e3e2781c5b947aba847b3bb913ea692ac 100644
|
| --- a/third_party/WebKit/LayoutTests/storage/indexeddb/version-change-abort-expected.txt
|
| +++ b/third_party/WebKit/LayoutTests/storage/indexeddb/version-change-abort-expected.txt
|
| @@ -1,4 +1,5 @@
|
| -CONSOLE ERROR: line 52: Uncaught Error: This should *NOT* be caught!
|
| +CONSOLE ERROR: line 58: Uncaught Error: This should not be caught
|
| +CONSOLE ERROR: line 1: AbortError: Version change transaction was aborted in upgradeneeded event handler.
|
| Ensure that aborted VERSION_CHANGE transactions are completely rolled back
|
|
|
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
| @@ -8,19 +9,26 @@ dbname = "version-change-abort.html"
|
| indexedDB.deleteDatabase(dbname)
|
| indexedDB.open(dbname)
|
| PASS trans instanceof IDBTransaction is true
|
| -store = db.createObjectStore('store1')
|
| -setVersion1 complete
|
| +db.createObjectStore('store1')
|
| +openRequest1 complete
|
| PASS db.version is 1
|
|
|
| vcreq = indexedDB.open(dbname, 2)
|
| -setVersion2() callback
|
| +openRequest2() callback
|
| PASS db.version is 2
|
| PASS vcreq.transaction instanceof IDBTransaction is true
|
| -store = db.deleteObjectStore('store1')
|
| -store = db.createObjectStore('store2')
|
| +db.deleteObjectStore('store1')
|
| +db.createObjectStore('store2')
|
| raising exception
|
| +PASS Got expected error: 'Uncaught Error: This should not be caught'
|
| +PASS sawGlobalErrorUncaughtException is true
|
|
|
| -setVersion2Abort() callback
|
| +openRequest2Error() callback
|
| +PASS sawGlobalErrorUncaughtException is true
|
| +PASS sawTransactionAbort is true
|
| +PASS Got expected error: 'AbortError: Version change transaction was aborted in upgradeneeded event handler.'
|
| +
|
| +Verify rollback:
|
| request = indexedDB.open(dbname)
|
| PASS db.version is 1
|
| PASS db.objectStoreNames.contains('store1') is true
|
|
|