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

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

Issue 121113004: Improve handling of failed integer type conversions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 11 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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 request = transaction.objectStore('store').openCursor(IDBKeyRange.lowerBound(-In finity), 'prev') 438 request = transaction.objectStore('store').openCursor(IDBKeyRange.lowerBound(-In finity), 'prev')
439 reverseCursor = request.result 439 reverseCursor = request.result
440 request = transaction.objectStore('inlineKeyStore').openCursor() 440 request = transaction.objectStore('inlineKeyStore').openCursor()
441 inlineCursor = request.result 441 inlineCursor = request.result
442 442
443 IDBCursor.advance() 443 IDBCursor.advance()
444 Calling this method more than once before new cursor data has been loaded is not allowed and results in a DOMException of type InvalidStateError being thrown. 444 Calling this method more than once before new cursor data has been loaded is not allowed and results in a DOMException of type InvalidStateError being thrown.
445 If the value for count is 0 (zero) or a negative number, this method must throw a JavaScript TypeError exception. 445 If the value for count is 0 (zero) or a negative number, this method must throw a JavaScript TypeError exception.
446 Expecting TypeError exception from cursor.advance(0) 446 Expecting TypeError exception from cursor.advance(0)
447 PASS Exception was thrown. 447 PASS Exception was thrown.
448 PASS cursor.advance(0) threw TypeError: Type error 448 PASS cursor.advance(0) threw TypeError: Failed to execute 'advance' on 'IDBCurso r': A count argument with value 0 (zero) was supplied, must be greater than 0.
449 cursor.advance(1) 449 cursor.advance(1)
450 Expecting exception from cursor.advance(1) 450 Expecting exception from cursor.advance(1)
451 PASS Exception was thrown. 451 PASS Exception was thrown.
452 PASS code is DOMException.INVALID_STATE_ERR 452 PASS code is DOMException.INVALID_STATE_ERR
453 PASS ename is 'InvalidStateError' 453 PASS ename is 'InvalidStateError'
454 Exception message: Failed to execute 'advance' on 'IDBCursor': The cursor is bei ng iterated or has iterated past its end. 454 Exception message: Failed to execute 'advance' on 'IDBCursor': The cursor is bei ng iterated or has iterated past its end.
455 The transaction this IDBCursor belongs to is not active. 455 The transaction this IDBCursor belongs to is not active.
456 Expecting exception from cursorFromInactiveTransaction.advance(1) 456 Expecting exception from cursorFromInactiveTransaction.advance(1)
457 PASS Exception was thrown. 457 PASS Exception was thrown.
458 PASS code is 0 458 PASS code is 0
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 If the requested object store is not in this transaction's scope. 562 If the requested object store is not in this transaction's scope.
563 Expecting exception from db.transaction('store').objectStore('otherStore') 563 Expecting exception from db.transaction('store').objectStore('otherStore')
564 PASS Exception was thrown. 564 PASS Exception was thrown.
565 PASS code is DOMException.NOT_FOUND_ERR 565 PASS code is DOMException.NOT_FOUND_ERR
566 PASS ename is 'NotFoundError' 566 PASS ename is 'NotFoundError'
567 Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The spec ified object store was not found. 567 Exception message: Failed to execute 'objectStore' on 'IDBTransaction': The spec ified object store was not found.
568 PASS successfullyParsed is true 568 PASS successfullyParsed is true
569 569
570 TEST COMPLETE 570 TEST COMPLETE
571 571
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698