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

Side by Side Diff: LayoutTests/storage/indexeddb/database-basics-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: Rebase. 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 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 Exception message: Failed to execute 'transaction' on 'IDBDatabase': A version c hange transaction is running.
17 PASS db.version is 1 17 PASS db.version is 1
18 PASS db.name is "database-basics.html" 18 PASS db.name is "database-basics.html"
19 PASS db.objectStoreNames is [] 19 PASS db.objectStoreNames is []
20 PASS db.objectStoreNames.length is 0 20 PASS db.objectStoreNames.length is 0
21 PASS db.objectStoreNames.contains('') is false 21 PASS db.objectStoreNames.contains('') is false
22 PASS db.objectStoreNames[0] is undefined. 22 PASS db.objectStoreNames[0] is undefined.
23 PASS db.objectStoreNames.item(0) is null 23 PASS db.objectStoreNames.item(0) is null
24 db.createObjectStore("test123") 24 db.createObjectStore("test123")
25 PASS db.objectStoreNames is ['test123'] 25 PASS db.objectStoreNames is ['test123']
26 PASS db.objectStoreNames.length is 1 26 PASS db.objectStoreNames.length is 1
(...skipping 19 matching lines...) Expand all
46 PASS db.objectStoreNames.length is 1 46 PASS db.objectStoreNames.length is 1
47 PASS db.objectStoreNames.contains('') is false 47 PASS db.objectStoreNames.contains('') is false
48 PASS db.objectStoreNames.contains('test456') is false 48 PASS db.objectStoreNames.contains('test456') is false
49 PASS db.objectStoreNames.contains('test123') is true 49 PASS db.objectStoreNames.contains('test123') is true
50 db.close() 50 db.close()
51 Now that the connection is closed, transaction creation should fail 51 Now that the connection is closed, transaction creation should fail
52 Expecting exception from db.transaction('test123') 52 Expecting exception from db.transaction('test123')
53 PASS Exception was thrown. 53 PASS Exception was thrown.
54 PASS code is DOMException.INVALID_STATE_ERR 54 PASS code is DOMException.INVALID_STATE_ERR
55 PASS ename is 'InvalidStateError' 55 PASS ename is 'InvalidStateError'
56 Exception message: The database connection is closing. 56 Exception message: Failed to execute 'transaction' on 'IDBDatabase': The databas e connection is closing.
57 Call twice, make sure it's harmless 57 Call twice, make sure it's harmless
58 db.close() 58 db.close()
59 PASS successfullyParsed is true 59 PASS successfullyParsed is true
60 60
61 TEST COMPLETE 61 TEST COMPLETE
62 62
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698