Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: LayoutTests/storage/indexeddb/version-change-abort-expected.txt

Issue 243523003: Fire window.onerror for uncaught IndexedDB errors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased and linkage fix Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 CONSOLE ERROR: line 52: Uncaught Error: This should *NOT* be caught! 1 CONSOLE ERROR: line 58: Uncaught Error: This should not be caught
2 CONSOLE ERROR: line 1: AbortError: Version change transaction was aborted in upg radeneeded event handler.
2 Ensure that aborted VERSION_CHANGE transactions are completely rolled back 3 Ensure that aborted VERSION_CHANGE transactions are completely rolled back
3 4
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
5 6
6 7
7 dbname = "version-change-abort.html" 8 dbname = "version-change-abort.html"
8 indexedDB.deleteDatabase(dbname) 9 indexedDB.deleteDatabase(dbname)
9 indexedDB.open(dbname) 10 indexedDB.open(dbname)
10 PASS trans instanceof IDBTransaction is true 11 PASS trans instanceof IDBTransaction is true
11 store = db.createObjectStore('store1') 12 db.createObjectStore('store1')
12 setVersion1 complete 13 openRequest1 complete
13 PASS db.version is 1 14 PASS db.version is 1
14 15
15 vcreq = indexedDB.open(dbname, 2) 16 vcreq = indexedDB.open(dbname, 2)
16 setVersion2() callback 17 openRequest2() callback
17 PASS db.version is 2 18 PASS db.version is 2
18 PASS vcreq.transaction instanceof IDBTransaction is true 19 PASS vcreq.transaction instanceof IDBTransaction is true
19 store = db.deleteObjectStore('store1') 20 db.deleteObjectStore('store1')
20 store = db.createObjectStore('store2') 21 db.createObjectStore('store2')
21 raising exception 22 raising exception
23 PASS Got expected error: 'Uncaught Error: This should not be caught'
24 PASS sawGlobalErrorUncaughtException is true
22 25
23 setVersion2Abort() callback 26 openRequest2Error() callback
27 PASS sawGlobalErrorUncaughtException is true
28 PASS sawTransactionAbort is true
29 PASS Got expected error: 'AbortError: Version change transaction was aborted in upgradeneeded event handler.'
30
31 Verify rollback:
24 request = indexedDB.open(dbname) 32 request = indexedDB.open(dbname)
25 PASS db.version is 1 33 PASS db.version is 1
26 PASS db.objectStoreNames.contains('store1') is true 34 PASS db.objectStoreNames.contains('store1') is true
27 PASS db.objectStoreNames.contains('store2') is false 35 PASS db.objectStoreNames.contains('store2') is false
28 PASS successfullyParsed is true 36 PASS successfullyParsed is true
29 37
30 TEST COMPLETE 38 TEST COMPLETE
31 39
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698