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

Side by Side Diff: LayoutTests/storage/indexeddb/transaction-basics-expected.txt

Issue 1047993002: bindings: Add validation for enum Sequence or Array (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 IndexedDB transaction basics. 1 Test IndexedDB transaction basics.
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 = "transaction-basics.html" 8 dbname = "transaction-basics.html"
9 indexedDB.deleteDatabase(dbname) 9 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 10 indexedDB.open(dbname)
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 db.objectStoreNames is [object DOMStringList] 223 db.objectStoreNames is [object DOMStringList]
224 ... which contains: ["storeName"] 224 ... which contains: ["storeName"]
225 transaction = db.transaction(db.objectStoreNames) 225 transaction = db.transaction(db.objectStoreNames)
226 PASS no exception thrown 226 PASS no exception thrown
227 PASS transaction.objectStore("storeName") is non-null. 227 PASS transaction.objectStore("storeName") is non-null.
228 PASS all stores present in transaction 228 PASS all stores present in transaction
229 229
230 Verify that specifying an invalid mode raises an exception 230 Verify that specifying an invalid mode raises an exception
231 Expecting TypeError exception from db.transaction(['storeName'], 'lsakjdf') 231 Expecting TypeError exception from db.transaction(['storeName'], 'lsakjdf')
232 PASS Exception was thrown. 232 PASS Exception was thrown.
233 PASS db.transaction(['storeName'], 'lsakjdf') threw TypeError: Failed to execute 'transaction' on 'IDBDatabase': parameter 2 ('lsakjdf') is not a valid enum val ue. 233 PASS db.transaction(['storeName'], 'lsakjdf') threw TypeError: Failed to execute 'transaction' on 'IDBDatabase': The provided value 'lsakjdf' is not a valid enu m value.
234 234
235 Test that null and undefined are treated as strings 235 Test that null and undefined are treated as strings
236 Expecting exception from db.transaction(null) 236 Expecting exception from db.transaction(null)
237 PASS Exception was thrown. 237 PASS Exception was thrown.
238 PASS code is DOMException.NOT_FOUND_ERR 238 PASS code is DOMException.NOT_FOUND_ERR
239 PASS ename is 'NotFoundError' 239 PASS ename is 'NotFoundError'
240 Exception message: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found. 240 Exception message: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found.
241 Expecting exception from db.transaction(undefined) 241 Expecting exception from db.transaction(undefined)
242 PASS Exception was thrown. 242 PASS Exception was thrown.
243 PASS code is DOMException.NOT_FOUND_ERR 243 PASS code is DOMException.NOT_FOUND_ERR
244 PASS ename is 'NotFoundError' 244 PASS ename is 'NotFoundError'
245 Exception message: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found. 245 Exception message: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found.
246 request = newConnection() 246 request = newConnection()
247 indexedDB.open(dbname, 8) 247 indexedDB.open(dbname, 8)
248 db.createObjectStore('null') 248 db.createObjectStore('null')
249 db.createObjectStore('undefined') 249 db.createObjectStore('undefined')
250 PASS transaction = db.transaction(null) did not throw exception. 250 PASS transaction = db.transaction(null) did not throw exception.
251 PASS transaction.objectStore('null') is non-null. 251 PASS transaction.objectStore('null') is non-null.
252 PASS transaction = db.transaction(undefined) did not throw exception. 252 PASS transaction = db.transaction(undefined) did not throw exception.
253 PASS transaction.objectStore('undefined') is non-null. 253 PASS transaction.objectStore('undefined') is non-null.
254 PASS successfullyParsed is true 254 PASS successfullyParsed is true
255 255
256 TEST COMPLETE 256 TEST COMPLETE
257 257
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698