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

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

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Feedback. Created 7 years 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
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 Exception message: Failed to execute 'transaction' on 'IDBDatabase': The databas e connection is closing.
36 36
37 onOpenError(): 37 onOpenError():
38 PASS sawTransactionAbort is true 38 PASS sawTransactionAbort is true
39 creating a transaction should fail because connection is closed: 39 creating a transaction should fail because connection is closed:
40 Expecting exception from db.transaction('store') 40 Expecting exception from db.transaction('store')
41 PASS Exception was thrown. 41 PASS Exception was thrown.
42 PASS code is DOMException.INVALID_STATE_ERR 42 PASS code is DOMException.INVALID_STATE_ERR
43 PASS ename is 'InvalidStateError' 43 PASS ename is 'InvalidStateError'
44 Exception message: The database connection is closing. 44 Exception message: Failed to execute 'transaction' on 'IDBDatabase': The databas e connection is closing.
45 PASS successfullyParsed is true 45 PASS successfullyParsed is true
46 46
47 TEST COMPLETE 47 TEST COMPLETE
48 48
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698