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

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

Issue 1157173002: IndexedDB: IDL and tests for IDBIndex.getAllKeys. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@idb-index-getallkeys
Patch Set: Rewound stable/virtual expected and made getAllKeys experimental Created 5 years, 6 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
OLDNEW
1 Test that expected exceptions are thrown per IndexedDB spec. 1 Test that expected exceptions are thrown per IndexedDB spec.
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 = "exceptions.html" 8 dbname = "exceptions.html"
9 indexedDB.deleteDatabase(dbname) 9 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 10 indexedDB.open(dbname)
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 PASS code is 0 418 PASS code is 0
419 PASS ename is 'DataError' 419 PASS ename is 'DataError'
420 Exception message: Failed to execute 'getKey' on 'IDBIndex': The parameter is no t a valid key. 420 Exception message: Failed to execute 'getKey' on 'IDBIndex': The parameter is no t a valid key.
421 The transaction this IDBIndex belongs to is not active. 421 The transaction this IDBIndex belongs to is not active.
422 Expecting exception from indexFromInactiveTransaction.getKey(0) 422 Expecting exception from indexFromInactiveTransaction.getKey(0)
423 PASS Exception was thrown. 423 PASS Exception was thrown.
424 PASS code is 0 424 PASS code is 0
425 PASS ename is 'TransactionInactiveError' 425 PASS ename is 'TransactionInactiveError'
426 Exception message: Failed to execute 'getKey' on 'IDBIndex': The transaction has finished. 426 Exception message: Failed to execute 'getKey' on 'IDBIndex': The transaction has finished.
427 427
428 IDBIndex.getAllKeys()
429 If the key parameter is not a valid key or a key range, this method throws a DOM Exception of type DataError.
430 Expecting exception from index.getAllKeys({})
431 PASS Exception was thrown.
432 PASS code is 0
433 PASS ename is 'DataError'
434 Exception message: Failed to execute 'getAllKeys' on 'IDBIndex': The parameter i s not a valid key.
435 The transaction this IDBIndex belongs to is not active.
436 Expecting exception from indexFromInactiveTransaction.getAllKeys(0)
437 PASS Exception was thrown.
438 PASS code is 0
439 PASS ename is 'TransactionInactiveError'
440 Exception message: Failed to execute 'getAllKeys' on 'IDBIndex': The transaction has finished.
441
428 IDBIndex.openCursor() 442 IDBIndex.openCursor()
429 If the range parameter is specified but is not a valid key or a key range, this method throws a DOMException of type DataError. 443 If the range parameter is specified but is not a valid key or a key range, this method throws a DOMException of type DataError.
430 Expecting exception from index.openCursor({}) 444 Expecting exception from index.openCursor({})
431 PASS Exception was thrown. 445 PASS Exception was thrown.
432 PASS code is 0 446 PASS code is 0
433 PASS ename is 'DataError' 447 PASS ename is 'DataError'
434 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The parameter i s not a valid key. 448 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The parameter i s not a valid key.
435 The transaction this IDBIndex belongs to is not active. 449 The transaction this IDBIndex belongs to is not active.
436 Expecting exception from indexFromInactiveTransaction.openCursor() 450 Expecting exception from indexFromInactiveTransaction.openCursor()
437 PASS Exception was thrown. 451 PASS Exception was thrown.
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 If the requested object store is not in this transaction's scope. 608 If the requested object store is not in this transaction's scope.
595 Expecting exception from db.transaction('store').objectStore('otherStore') 609 Expecting exception from db.transaction('store').objectStore('otherStore')
596 PASS Exception was thrown. 610 PASS Exception was thrown.
597 PASS code is DOMException.NOT_FOUND_ERR 611 PASS code is DOMException.NOT_FOUND_ERR
598 PASS ename is 'NotFoundError' 612 PASS ename is 'NotFoundError'
599 Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The spec ified object store was not found. 613 Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The spec ified object store was not found.
600 PASS successfullyParsed is true 614 PASS successfullyParsed is true
601 615
602 TEST COMPLETE 616 TEST COMPLETE
603 617
OLDNEW
« no previous file with comments | « LayoutTests/storage/indexeddb/deleted-objects-expected.txt ('k') | LayoutTests/storage/indexeddb/index-getallkeys.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698