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

Side by Side Diff: LayoutTests/storage/indexeddb/aborted-versionchange-closes-expected.txt

Issue 19107003: IndexedDB: Log exception messages (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 Test that an aborted 'versionchange' transaction closes the connection. 1 Test that an aborted 'versionchange' transaction closes the connection.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self. msIndexedDB || self.OIndexedDB; 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self. msIndexedDB || self.OIndexedDB;
7 7
8 dbname = "aborted-versionchange-closes.html" 8 dbname = "aborted-versionchange-closes.html"
9 indexedDB.deleteDatabase(dbname) 9 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname, 1) 10 indexedDB.open(dbname, 1)
(...skipping 14 matching lines...) Expand all
25 transaction = event.target.transaction 25 transaction = event.target.transaction
26 sawTransactionAbort = false 26 sawTransactionAbort = false
27 27
28 onTransactionAbort(): 28 onTransactionAbort():
29 sawTransactionAbort = true 29 sawTransactionAbort = true
30 creating a transaction should fail because connection is closed: 30 creating a transaction should fail because connection is closed:
31 Expecting exception from db.transaction('store') 31 Expecting exception from db.transaction('store')
32 PASS Exception was thrown. 32 PASS Exception was thrown.
33 PASS code is DOMException.INVALID_STATE_ERR 33 PASS code is DOMException.INVALID_STATE_ERR
34 PASS ename is 'InvalidStateError' 34 PASS ename is 'InvalidStateError'
35 Exception message: The database connection is closing.
35 36
36 onOpenError(): 37 onOpenError():
37 PASS sawTransactionAbort is true 38 PASS sawTransactionAbort is true
38 creating a transaction should fail because connection is closed: 39 creating a transaction should fail because connection is closed:
39 Expecting exception from db.transaction('store') 40 Expecting exception from db.transaction('store')
40 PASS Exception was thrown. 41 PASS Exception was thrown.
41 PASS code is DOMException.INVALID_STATE_ERR 42 PASS code is DOMException.INVALID_STATE_ERR
42 PASS ename is 'InvalidStateError' 43 PASS ename is 'InvalidStateError'
44 Exception message: The database connection is closing.
43 PASS successfullyParsed is true 45 PASS successfullyParsed is true
44 46
45 TEST COMPLETE 47 TEST COMPLETE
46 48
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/storage/indexeddb/basics-expected.txt » ('j') | LayoutTests/storage/indexeddb/resources/shared.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698