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

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

Issue 1158973007: IndexedDB: Rely on bindings for enum validation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/storage/indexeddb/objectstore-cursor-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The param eter is not a valid key. 265 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The param eter is not a valid key.
266 The transaction this IDBObjectStore belongs to is not active. 266 The transaction this IDBObjectStore belongs to is not active.
267 Expecting exception from storeFromInactiveTransaction.openCursor() 267 Expecting exception from storeFromInactiveTransaction.openCursor()
268 PASS Exception was thrown. 268 PASS Exception was thrown.
269 PASS code is 0 269 PASS code is 0
270 PASS ename is 'TransactionInactiveError' 270 PASS ename is 'TransactionInactiveError'
271 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The trans action has finished. 271 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The trans action has finished.
272 The value for the direction parameter is invalid. 272 The value for the direction parameter is invalid.
273 Expecting TypeError exception from store.openCursor(0, 'invalid-direction') 273 Expecting TypeError exception from store.openCursor(0, 'invalid-direction')
274 PASS Exception was thrown. 274 PASS Exception was thrown.
275 PASS store.openCursor(0, 'invalid-direction') threw TypeError: Failed to execute 'openCursor' on 'IDBObjectStore': The direction provided ('invalid-direction') is not one of 'next', 'nextunique', 'prev', or 'prevunique'. 275 PASS store.openCursor(0, 'invalid-direction') threw TypeError: Failed to execute 'openCursor' on 'IDBObjectStore': The provided value 'invalid-direction' is not a valid enum value of type IDBCursorDirection.
276 276
277 IDBObjectStore.openKeyCursor() 277 IDBObjectStore.openKeyCursor()
278 If the range parameter is specified but is not a valid key or a key range, this method throws a DOMException of type DataError. 278 If the range parameter is specified but is not a valid key or a key range, this method throws a DOMException of type DataError.
279 Expecting exception from store.openKeyCursor({}) 279 Expecting exception from store.openKeyCursor({})
280 PASS Exception was thrown. 280 PASS Exception was thrown.
281 PASS code is 0 281 PASS code is 0
282 PASS ename is 'DataError' 282 PASS ename is 'DataError'
283 Exception message: Failed to execute 'openKeyCursor' on 'IDBObjectStore': The pa rameter is not a valid key. 283 Exception message: Failed to execute 'openKeyCursor' on 'IDBObjectStore': The pa rameter is not a valid key.
284 The transaction this IDBObjectStore belongs to is not active. 284 The transaction this IDBObjectStore belongs to is not active.
285 Expecting exception from storeFromInactiveTransaction.openKeyCursor() 285 Expecting exception from storeFromInactiveTransaction.openKeyCursor()
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 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.
609 Expecting exception from db.transaction('store').objectStore('otherStore') 609 Expecting exception from db.transaction('store').objectStore('otherStore')
610 PASS Exception was thrown. 610 PASS Exception was thrown.
611 PASS code is DOMException.NOT_FOUND_ERR 611 PASS code is DOMException.NOT_FOUND_ERR
612 PASS ename is 'NotFoundError' 612 PASS ename is 'NotFoundError'
613 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.
614 PASS successfullyParsed is true 614 PASS successfullyParsed is true
615 615
616 TEST COMPLETE 616 TEST COMPLETE
617 617
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/storage/indexeddb/objectstore-cursor-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698