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

Side by Side Diff: LayoutTests/storage/indexeddb/cursor-advance-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 IndexedDB cursor.advance(). 1 Test IndexedDB cursor.advance().
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 = "cursor-advance.html" 8 dbname = "cursor-advance.html"
9 indexedDB.deleteDatabase(dbname) 9 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 10 indexedDB.open(dbname)
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 prefetch(): 172 prefetch():
173 testBadAdvance() 173 testBadAdvance()
174 trans = db.transaction(objectStoreName, 'readwrite') 174 trans = db.transaction(objectStoreName, 'readwrite')
175 objectStore = trans.objectStore(objectStoreName) 175 objectStore = trans.objectStore(objectStoreName)
176 request = objectStore.openCursor() 176 request = objectStore.openCursor()
177 177
178 advanceBadly(): 178 advanceBadly():
179 Expecting TypeError exception from cursor.advance(0) 179 Expecting TypeError exception from cursor.advance(0)
180 PASS Exception was thrown. 180 PASS Exception was thrown.
181 PASS cursor.advance(0) threw TypeError: Type error 181 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.
182 Expecting TypeError exception from cursor.advance(-1) 182 Expecting TypeError exception from cursor.advance(-1)
183 PASS Exception was thrown. 183 PASS Exception was thrown.
184 PASS cursor.advance(-1) threw TypeError: Type error 184 PASS cursor.advance(-1) threw TypeError: Failed to execute 'advance' on 'IDBCurs or': Value is outside the 'unsigned long' value range.
185 Expecting TypeError exception from cursor.advance(0x100000000) 185 Expecting TypeError exception from cursor.advance(0x100000000)
186 PASS Exception was thrown. 186 PASS Exception was thrown.
187 PASS cursor.advance(0x100000000) threw TypeError: Type error 187 PASS cursor.advance(0x100000000) threw TypeError: Failed to execute 'advance' on 'IDBCursor': Value is outside the 'unsigned long' value range.
188 Expecting TypeError exception from cursor.advance(0x20000000000000) 188 Expecting TypeError exception from cursor.advance(0x20000000000000)
189 PASS Exception was thrown. 189 PASS Exception was thrown.
190 PASS cursor.advance(0x20000000000000) threw TypeError: Type error 190 PASS cursor.advance(0x20000000000000) threw TypeError: Failed to execute 'advanc e' on 'IDBCursor': Value is outside the 'unsigned long' value range.
191 191
192 testEdges(): 192 testEdges():
193 trans = db.transaction(objectStoreName, 'readonly') 193 trans = db.transaction(objectStoreName, 'readonly')
194 objectStore = trans.objectStore(objectStoreName) 194 objectStore = trans.objectStore(objectStoreName)
195 request = objectStore.openCursor() 195 request = objectStore.openCursor()
196 196
197 onSuccess(): 197 onSuccess():
198 cursor = event.target.result 198 cursor = event.target.result
199 PASS cursor is non-null. 199 PASS cursor is non-null.
200 cursor.advance(0xffffffff) 200 cursor.advance(0xffffffff)
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 245
246 deleteSecond(): 246 deleteSecond():
247 PASS expected is "{\"key\":\"237-23-7744\",\"value\":{\"name\":\"Pug\",\"height\ ":66,\"weight\":110},\"primaryKey\":\"237-23-7744\"}" 247 PASS expected is "{\"key\":\"237-23-7744\",\"value\":{\"name\":\"Pug\",\"height\ ":66,\"weight\":110},\"primaryKey\":\"237-23-7744\"}"
248 cursor.advance(1) 248 cursor.advance(1)
249 249
250 deleteSecond(): 250 deleteSecond():
251 PASS successfullyParsed is true 251 PASS successfullyParsed is true
252 252
253 TEST COMPLETE 253 TEST COMPLETE
254 254
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698