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

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

Issue 1149873008: IndexedDB: IDL and tests for IDBObjectStore.getAllKeys(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@idb-objectstore-getallkeys
Patch Set: Second patch update. 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 PASS code is 0 235 PASS code is 0
236 PASS ename is 'DataError' 236 PASS ename is 'DataError'
237 Exception message: Failed to execute 'getAll' on 'IDBObjectStore': The parameter is not a valid key. 237 Exception message: Failed to execute 'getAll' on 'IDBObjectStore': The parameter is not a valid key.
238 The transaction this IDBObjectStore belongs to is not active. 238 The transaction this IDBObjectStore belongs to is not active.
239 Expecting exception from storeFromInactiveTransaction.getAll(0) 239 Expecting exception from storeFromInactiveTransaction.getAll(0)
240 PASS Exception was thrown. 240 PASS Exception was thrown.
241 PASS code is 0 241 PASS code is 0
242 PASS ename is 'TransactionInactiveError' 242 PASS ename is 'TransactionInactiveError'
243 Exception message: Failed to execute 'getAll' on 'IDBObjectStore': The transacti on has finished. 243 Exception message: Failed to execute 'getAll' on 'IDBObjectStore': The transacti on has finished.
244 244
245 IDBObjectStore.getAllKeys()
246 If the key parameter is not a valid key or a key range, this method throws a DOM Exception of type DataError.
247 Expecting exception from store.getAllKeys({})
248 PASS Exception was thrown.
249 PASS code is 0
250 PASS ename is 'DataError'
251 Exception message: Failed to execute 'getAllKeys' on 'IDBObjectStore': The param eter is not a valid key.
252 The transaction this IDBObjectStore belongs to is not active.
253 Expecting exception from storeFromInactiveTransaction.getAllKeys(0)
254 PASS Exception was thrown.
255 PASS code is 0
256 PASS ename is 'TransactionInactiveError'
257 Exception message: Failed to execute 'getAllKeys' on 'IDBObjectStore': The trans action has finished.
258
245 IDBObjectStore.index() 259 IDBObjectStore.index()
246 There is no index with the given name, compared in a case-sensitive manner, in t he connected database. 260 There is no index with the given name, compared in a case-sensitive manner, in t he connected database.
247 Expecting exception from store.index('no-such-index') 261 Expecting exception from store.index('no-such-index')
248 PASS Exception was thrown. 262 PASS Exception was thrown.
249 PASS code is DOMException.NOT_FOUND_ERR 263 PASS code is DOMException.NOT_FOUND_ERR
250 PASS ename is 'NotFoundError' 264 PASS ename is 'NotFoundError'
251 Exception message: Failed to execute 'index' on 'IDBObjectStore': The specified index was not found. 265 Exception message: Failed to execute 'index' on 'IDBObjectStore': The specified index was not found.
252 Occurs if a request is made on a source object that has been deleted or removed, or if the transaction the object store belongs to has finished. 266 Occurs if a request is made on a source object that has been deleted or removed, or if the transaction the object store belongs to has finished.
253 Expecting exception from storeFromInactiveTransaction.index('index') 267 Expecting exception from storeFromInactiveTransaction.index('index')
254 PASS Exception was thrown. 268 PASS Exception was thrown.
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 If the requested object store is not in this transaction's scope. 622 If the requested object store is not in this transaction's scope.
609 Expecting exception from db.transaction('store').objectStore('otherStore') 623 Expecting exception from db.transaction('store').objectStore('otherStore')
610 PASS Exception was thrown. 624 PASS Exception was thrown.
611 PASS code is DOMException.NOT_FOUND_ERR 625 PASS code is DOMException.NOT_FOUND_ERR
612 PASS ename is 'NotFoundError' 626 PASS ename is 'NotFoundError'
613 Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The spec ified object store was not found. 627 Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The spec ified object store was not found.
614 PASS successfullyParsed is true 628 PASS successfullyParsed is true
615 629
616 TEST COMPLETE 630 TEST COMPLETE
617 631
OLDNEW
« no previous file with comments | « LayoutTests/storage/indexeddb/deleted-objects-expected.txt ('k') | LayoutTests/storage/indexeddb/resources/deleted-objects.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698