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

Side by Side Diff: LayoutTests/storage/indexeddb/key-type-array-expected.txt

Issue 19107003: IndexedDB: Log exception messages (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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
OLDNEW
1 Test IndexedDB key types 1 Test IndexedDB key types
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 = "key-type-array.html" 8 dbname = "key-type-array.html"
9 indexedDB.deleteDatabase(dbname) 9 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 10 indexedDB.open(dbname)
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 array that contains itself, not as first element: array = [1, 'b', [], array] 163 array that contains itself, not as first element: array = [1, 'b', [], array]
164 cyclic_array3 = [1, 'b', []]; cyclic_array3.push(cyclic_array3) 164 cyclic_array3 = [1, 'b', []]; cyclic_array3.push(cyclic_array3)
165 array that contains array that contains itself 165 array that contains array that contains itself
166 cyclic_array4 = [cyclic_array]; 166 cyclic_array4 = [cyclic_array];
167 167
168 testing invalid array key: [ void 0 ] 168 testing invalid array key: [ void 0 ]
169 Expecting exception from store.put('value', [ void 0 ]); 169 Expecting exception from store.put('value', [ void 0 ]);
170 PASS Exception was thrown. 170 PASS Exception was thrown.
171 PASS code is 0 171 PASS code is 0
172 PASS ename is 'DataError' 172 PASS ename is 'DataError'
173 Exception message: The parameter is not a valid key.
173 174
174 testing invalid array key: [ true ] 175 testing invalid array key: [ true ]
175 Expecting exception from store.put('value', [ true ]); 176 Expecting exception from store.put('value', [ true ]);
176 PASS Exception was thrown. 177 PASS Exception was thrown.
177 PASS code is 0 178 PASS code is 0
178 PASS ename is 'DataError' 179 PASS ename is 'DataError'
180 Exception message: The parameter is not a valid key.
179 181
180 testing invalid array key: [ false ] 182 testing invalid array key: [ false ]
181 Expecting exception from store.put('value', [ false ]); 183 Expecting exception from store.put('value', [ false ]);
182 PASS Exception was thrown. 184 PASS Exception was thrown.
183 PASS code is 0 185 PASS code is 0
184 PASS ename is 'DataError' 186 PASS ename is 'DataError'
187 Exception message: The parameter is not a valid key.
185 188
186 testing invalid array key: [ NaN ] 189 testing invalid array key: [ NaN ]
187 Expecting exception from store.put('value', [ NaN ]); 190 Expecting exception from store.put('value', [ NaN ]);
188 PASS Exception was thrown. 191 PASS Exception was thrown.
189 PASS code is 0 192 PASS code is 0
190 PASS ename is 'DataError' 193 PASS ename is 'DataError'
194 Exception message: The parameter is not a valid key.
191 195
192 testing invalid array key: [ null ] 196 testing invalid array key: [ null ]
193 Expecting exception from store.put('value', [ null ]); 197 Expecting exception from store.put('value', [ null ]);
194 PASS Exception was thrown. 198 PASS Exception was thrown.
195 PASS code is 0 199 PASS code is 0
196 PASS ename is 'DataError' 200 PASS ename is 'DataError'
201 Exception message: The parameter is not a valid key.
197 202
198 testing invalid array key: [ {} ] 203 testing invalid array key: [ {} ]
199 Expecting exception from store.put('value', [ {} ]); 204 Expecting exception from store.put('value', [ {} ]);
200 PASS Exception was thrown. 205 PASS Exception was thrown.
201 PASS code is 0 206 PASS code is 0
202 PASS ename is 'DataError' 207 PASS ename is 'DataError'
208 Exception message: The parameter is not a valid key.
203 209
204 testing invalid array key: [ function () {} ] 210 testing invalid array key: [ function () {} ]
205 Expecting exception from store.put('value', [ function () {} ]); 211 Expecting exception from store.put('value', [ function () {} ]);
206 PASS Exception was thrown. 212 PASS Exception was thrown.
207 PASS code is 0 213 PASS code is 0
208 PASS ename is 'DataError' 214 PASS ename is 'DataError'
215 Exception message: The parameter is not a valid key.
209 216
210 testing invalid array key: [ /regex/ ] 217 testing invalid array key: [ /regex/ ]
211 Expecting exception from store.put('value', [ /regex/ ]); 218 Expecting exception from store.put('value', [ /regex/ ]);
212 PASS Exception was thrown. 219 PASS Exception was thrown.
213 PASS code is 0 220 PASS code is 0
214 PASS ename is 'DataError' 221 PASS ename is 'DataError'
222 Exception message: The parameter is not a valid key.
215 223
216 testing invalid array key: [ self ] 224 testing invalid array key: [ self ]
217 Expecting exception from store.put('value', [ self ]); 225 Expecting exception from store.put('value', [ self ]);
218 PASS Exception was thrown. 226 PASS Exception was thrown.
219 PASS code is 0 227 PASS code is 0
220 PASS ename is 'DataError' 228 PASS ename is 'DataError'
229 Exception message: The parameter is not a valid key.
221 230
222 testing invalid array key: [ self.document ] 231 testing invalid array key: [ self.document ]
223 Expecting exception from store.put('value', [ self.document ]); 232 Expecting exception from store.put('value', [ self.document ]);
224 PASS Exception was thrown. 233 PASS Exception was thrown.
225 PASS code is 0 234 PASS code is 0
226 PASS ename is 'DataError' 235 PASS ename is 'DataError'
236 Exception message: The parameter is not a valid key.
227 237
228 testing invalid array key: [ self.document.body ] 238 testing invalid array key: [ self.document.body ]
229 Expecting exception from store.put('value', [ self.document.body ]); 239 Expecting exception from store.put('value', [ self.document.body ]);
230 PASS Exception was thrown. 240 PASS Exception was thrown.
231 PASS code is 0 241 PASS code is 0
232 PASS ename is 'DataError' 242 PASS ename is 'DataError'
243 Exception message: The parameter is not a valid key.
233 244
234 testing invalid array key: cyclic_array 245 testing invalid array key: cyclic_array
235 Expecting exception from store.put('value', cyclic_array); 246 Expecting exception from store.put('value', cyclic_array);
236 PASS Exception was thrown. 247 PASS Exception was thrown.
237 PASS code is 0 248 PASS code is 0
238 PASS ename is 'DataError' 249 PASS ename is 'DataError'
250 Exception message: The parameter is not a valid key.
239 251
240 testing invalid array key: cyclic_array2 252 testing invalid array key: cyclic_array2
241 Expecting exception from store.put('value', cyclic_array2); 253 Expecting exception from store.put('value', cyclic_array2);
242 PASS Exception was thrown. 254 PASS Exception was thrown.
243 PASS code is 0 255 PASS code is 0
244 PASS ename is 'DataError' 256 PASS ename is 'DataError'
257 Exception message: The parameter is not a valid key.
245 258
246 testing invalid array key: cyclic_array3 259 testing invalid array key: cyclic_array3
247 Expecting exception from store.put('value', cyclic_array3); 260 Expecting exception from store.put('value', cyclic_array3);
248 PASS Exception was thrown. 261 PASS Exception was thrown.
249 PASS code is 0 262 PASS code is 0
250 PASS ename is 'DataError' 263 PASS ename is 'DataError'
264 Exception message: The parameter is not a valid key.
251 265
252 testing invalid array key: cyclic_array4 266 testing invalid array key: cyclic_array4
253 Expecting exception from store.put('value', cyclic_array4); 267 Expecting exception from store.put('value', cyclic_array4);
254 PASS Exception was thrown. 268 PASS Exception was thrown.
255 PASS code is 0 269 PASS code is 0
256 PASS ename is 'DataError' 270 PASS ename is 'DataError'
271 Exception message: The parameter is not a valid key.
257 272
258 testing invalid array key: Array(1000) 273 testing invalid array key: Array(1000)
259 Expecting exception from store.put('value', Array(1000)); 274 Expecting exception from store.put('value', Array(1000));
260 PASS Exception was thrown. 275 PASS Exception was thrown.
261 PASS code is 0 276 PASS code is 0
262 PASS ename is 'DataError' 277 PASS ename is 'DataError'
278 Exception message: The parameter is not a valid key.
263 279
264 PASS indexedDB.cmp(makeArrayOfDepth(25), 0) is 1 280 PASS indexedDB.cmp(makeArrayOfDepth(25), 0) is 1
265 PASS indexedDB.cmp(makeArrayOfDepth(250), 0) is 1 281 PASS indexedDB.cmp(makeArrayOfDepth(250), 0) is 1
266 Expecting exception from indexedDB.cmp(makeArrayOfDepth(2500), 0) 282 Expecting exception from indexedDB.cmp(makeArrayOfDepth(2500), 0)
267 PASS Exception was thrown. 283 PASS Exception was thrown.
268 PASS code is 0 284 PASS code is 0
269 PASS ename is 'DataError' 285 PASS ename is 'DataError'
286 Exception message: The parameter is not a valid key.
270 287
271 PASS successfullyParsed is true 288 PASS successfullyParsed is true
272 289
273 TEST COMPLETE 290 TEST COMPLETE
274 291
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698