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

Side by Side Diff: LayoutTests/storage/indexeddb/database-basics-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 the basics of IndexedDB's IDBDatabase. 1 Test the basics of IndexedDB's IDBDatabase.
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 = "database-basics.html" 8 dbname = "database-basics.html"
9 indexedDB.deleteDatabase(dbname) 9 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 10 indexedDB.open(dbname)
11 Test that you can't open a transaction while in a versionchange transaction 11 Test that you can't open a transaction while in a versionchange transaction
12 Expecting exception from db.transaction("doesntExist") 12 Expecting exception from db.transaction("doesntExist")
13 PASS Exception was thrown. 13 PASS Exception was thrown.
14 PASS code is DOMException.INVALID_STATE_ERR 14 PASS code is DOMException.INVALID_STATE_ERR
15 PASS ename is 'InvalidStateError' 15 PASS ename is 'InvalidStateError'
16 Exception message: A version change transaction is running.
16 PASS db.version is 1 17 PASS db.version is 1
17 PASS db.name is "database-basics.html" 18 PASS db.name is "database-basics.html"
18 PASS db.objectStoreNames is [] 19 PASS db.objectStoreNames is []
19 PASS db.objectStoreNames.length is 0 20 PASS db.objectStoreNames.length is 0
20 PASS db.objectStoreNames.contains('') is false 21 PASS db.objectStoreNames.contains('') is false
21 PASS db.objectStoreNames[0] is undefined. 22 PASS db.objectStoreNames[0] is undefined.
22 PASS db.objectStoreNames.item(0) is null 23 PASS db.objectStoreNames.item(0) is null
23 db.createObjectStore("test123") 24 db.createObjectStore("test123")
24 PASS db.objectStoreNames is ['test123'] 25 PASS db.objectStoreNames is ['test123']
25 PASS db.objectStoreNames.length is 1 26 PASS db.objectStoreNames.length is 1
(...skipping 19 matching lines...) Expand all
45 PASS db.objectStoreNames.length is 1 46 PASS db.objectStoreNames.length is 1
46 PASS db.objectStoreNames.contains('') is false 47 PASS db.objectStoreNames.contains('') is false
47 PASS db.objectStoreNames.contains('test456') is false 48 PASS db.objectStoreNames.contains('test456') is false
48 PASS db.objectStoreNames.contains('test123') is true 49 PASS db.objectStoreNames.contains('test123') is true
49 db.close() 50 db.close()
50 Now that the connection is closed, transaction creation should fail 51 Now that the connection is closed, transaction creation should fail
51 Expecting exception from db.transaction('test123') 52 Expecting exception from db.transaction('test123')
52 PASS Exception was thrown. 53 PASS Exception was thrown.
53 PASS code is DOMException.INVALID_STATE_ERR 54 PASS code is DOMException.INVALID_STATE_ERR
54 PASS ename is 'InvalidStateError' 55 PASS ename is 'InvalidStateError'
56 Exception message: The database connection is closing.
55 Call twice, make sure it's harmless 57 Call twice, make sure it's harmless
56 db.close() 58 db.close()
57 PASS successfullyParsed is true 59 PASS successfullyParsed is true
58 60
59 TEST COMPLETE 61 TEST COMPLETE
60 62
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698