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

Side by Side Diff: LayoutTests/fast/js/JSON-parse-expected.txt

Issue 14146002: Remove all generic expected results for which a generic Chromium expected result exists (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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
(Empty)
1 function (jsonObject) {
2 return jsonObject.parse();
3 }
4 PASS tests[i](nativeJSON) threw exception Error: JSON.parse requires at least on e parameter.
5 function (jsonObject) {
6 return jsonObject.parse('');
7 }
8 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Unexpec ted EOF.
9 function (jsonObject) {
10 return jsonObject.parse('1');
11 }
12 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
13 function (jsonObject) {
14 return jsonObject.parse('-1');
15 }
16 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
17 function (jsonObject) {
18 return jsonObject.parse('Infinity');
19 }
20 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Unexpec ted identifier "Infinity".
21 function (jsonObject) {
22 return jsonObject.parse('NaN');
23 }
24 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Unexpec ted identifier "NaN".
25 function (jsonObject) {
26 return jsonObject.parse('null');
27 }
28 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
29 function (jsonObject) {
30 return jsonObject.parse('undefined');
31 }
32 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Unexpec ted identifier "undefined".
33 function (jsonObject) {
34 return jsonObject.parse('{}');
35 }
36 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
37 function (jsonObject) {
38 return jsonObject.parse('({})');
39 }
40 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Unexpec ted token '('.
41 function (jsonObject) {
42 return jsonObject.parse('{a}');
43 }
44 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Expecte d '}'.
45 function (jsonObject) {
46 return jsonObject.parse('{a:}');
47 }
48 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Expecte d '}'.
49 function (jsonObject) {
50 return jsonObject.parse('{a:5}');
51 }
52 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Expecte d '}'.
53 function (jsonObject) {
54 return jsonObject.parse('{a:5,}');
55 }
56 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Expecte d '}'.
57 function (jsonObject) {
58 return jsonObject.parse('{"a"}');
59 }
60 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Expecte d ':' before value in object property definition.
61 function (jsonObject) {
62 return jsonObject.parse('{"a":}');
63 }
64 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Unexpec ted token '}'.
65 function (jsonObject) {
66 return jsonObject.parse('{"a":5}');
67 }
68 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
69 function (jsonObject) {
70 return jsonObject.parse('{"__proto__":5}');
71 }
72 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
73 function (jsonObject) {
74 return jsonObject.parse('{"a":5,}');
75 }
76 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Propert y name must be a string literal.
77 json2.js did not throw for a test we expect to throw.
78 function (jsonObject) {
79 return jsonObject.parse('{"a":5,,}');
80 }
81 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Propert y name must be a string literal.
82 function (jsonObject) {
83 return jsonObject.parse('{"a":5,"a",}');
84 }
85 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Expecte d ':'.
86 function (jsonObject) {
87 return jsonObject.parse('{"a":(5,"a"),}');
88 }
89 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Unexpec ted token '('.
90 function (jsonObject) {
91 return jsonObject.parse('[]');
92 }
93 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
94 function (jsonObject) {
95 return jsonObject.parse('[1]');
96 }
97 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
98 function (jsonObject) {
99 return jsonObject.parse('[1,]');
100 }
101 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Unexpec ted comma at the end of array expression.
102 json2.js did not throw for a test we expect to throw.
103 function (jsonObject) {
104 return jsonObject.parse('[1,2]');
105 }
106 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
107 function (jsonObject) {
108 return jsonObject.parse('[1,2,,]');
109 }
110 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Unexpec ted token ','.
111 json2.js did not throw for a test we expect to throw.
112 function (jsonObject) {
113 return jsonObject.parse('[1,2,,4]');
114 }
115 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Unexpec ted token ','.
116 json2.js did not throw for a test we expect to throw.
117 function (jsonObject) {
118 return jsonObject.parse('""');
119 }
120 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
121 function (jsonObject) {
122 return jsonObject.parse('"\'"');
123 }
124 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
125 function (jsonObject) {
126 return jsonObject.parse('"a\"');
127 }
128 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
129 function (jsonObject) {
130 return jsonObject.parse('"a\\"');
131 }
132 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Untermi nated string.
133 function (jsonObject) {
134 return jsonObject.parse('"a\\z"');
135 }
136 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Invalid escape character z.
137 function (jsonObject) {
138 return jsonObject.parse('"a\\\z"');
139 }
140 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Invalid escape character z.
141 function (jsonObject) {
142 return jsonObject.parse('"a\\\\z"');
143 }
144 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
145 function (jsonObject) {
146 return jsonObject.parse('"a\tz"');
147 }
148 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Untermi nated string.
149 json2.js did not throw for a test we expect to throw.
150 function (jsonObject) {
151 return jsonObject.parse('"a\\tz"');
152 }
153 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
154 function (jsonObject) {
155 return jsonObject.parse('"a\nz"');
156 }
157 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Untermi nated string.
158 function (jsonObject) {
159 return jsonObject.parse('"a\\nz"');
160 }
161 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
162 function (jsonObject) {
163 return jsonObject.parse('"a\rz"');
164 }
165 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Untermi nated string.
166 function (jsonObject) {
167 return jsonObject.parse('"a\\rz"');
168 }
169 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
170 function (jsonObject) {
171 return jsonObject.parse('"a\/z"');
172 }
173 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
174 function (jsonObject) {
175 return jsonObject.parse('"a\\/z"');
176 }
177 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
178 function (jsonObject) {
179 return jsonObject.parse('"a\bz"');
180 }
181 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Untermi nated string.
182 json2.js did not throw for a test we expect to throw.
183 function (jsonObject) {
184 return jsonObject.parse('"a\\bz"');
185 }
186 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
187 function (jsonObject) {
188 return jsonObject.parse('"a\rz"');
189 }
190 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Untermi nated string.
191 function (jsonObject) {
192 return jsonObject.parse('"a\\rz"');
193 }
194 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
195 function (jsonObject) {
196 return jsonObject.parse('"a\\uz" ');
197 }
198 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: "\uz" " is not a valid unicode escape.
199 function (jsonObject) {
200 return jsonObject.parse('"a\\u0z" ');
201 }
202 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: "\u0z" " is not a valid unicode escape.
203 function (jsonObject) {
204 return jsonObject.parse('"a\\u00z" ');
205 }
206 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: "\u00z" " is not a valid unicode escape.
207 function (jsonObject) {
208 return jsonObject.parse('"a\\u000z" ');
209 }
210 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: "\u000z " is not a valid unicode escape.
211 function (jsonObject) {
212 return jsonObject.parse('"a\\u0000z" ');
213 }
214 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
215 function (jsonObject) {
216 return jsonObject.parse('"a\\u000Az" ');
217 }
218 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
219 function (jsonObject) {
220 return jsonObject.parse('"a\\u000az" ');
221 }
222 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
223 function (jsonObject) {
224 return jsonObject.parse('"a\\u000Gz" ');
225 }
226 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: "\u000G " is not a valid unicode escape.
227 function (jsonObject) {
228 return jsonObject.parse('"a\\u000gz" ');
229 }
230 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: "\u000g " is not a valid unicode escape.
231 function (jsonObject) {
232 return jsonObject.parse('"a\\u00A0z" ');
233 }
234 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
235 function (jsonObject) {
236 return jsonObject.parse('"a\\u00a0z" ');
237 }
238 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
239 function (jsonObject) {
240 return jsonObject.parse('"a\\u00G0z" ');
241 }
242 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: "\u00G0 " is not a valid unicode escape.
243 function (jsonObject) {
244 return jsonObject.parse('"a\\u00g0z" ');
245 }
246 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: "\u00g0 " is not a valid unicode escape.
247 function (jsonObject) {
248 return jsonObject.parse('"a\\u0A00z" ');
249 }
250 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
251 function (jsonObject) {
252 return jsonObject.parse('"a\\u0a00z" ');
253 }
254 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
255 function (jsonObject) {
256 return jsonObject.parse('"a\\u0G00z" ');
257 }
258 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: "\u0G00 " is not a valid unicode escape.
259 function (jsonObject) {
260 return jsonObject.parse('"a\\u0g00z" ');
261 }
262 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: "\u0g00 " is not a valid unicode escape.
263 function (jsonObject) {
264 return jsonObject.parse('"a\\uA000z" ');
265 }
266 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
267 function (jsonObject) {
268 return jsonObject.parse('"a\\ua000z" ');
269 }
270 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
271 function (jsonObject) {
272 return jsonObject.parse('"a\\uG000z" ');
273 }
274 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: "\uG000 " is not a valid unicode escape.
275 function (jsonObject) {
276 return jsonObject.parse('"a\\ug000z" ');
277 }
278 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: "\ug000 " is not a valid unicode escape.
279 function (jsonObject) {
280 return jsonObject.parse('00');
281 }
282 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Unable to parse JSON string.
283 json2.js did not throw for a test we expect to throw.
284 function (jsonObject) {
285 return jsonObject.parse('01');
286 }
287 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Unable to parse JSON string.
288 json2.js did not throw for a test we expect to throw.
289 function (jsonObject) {
290 return jsonObject.parse('0.a');
291 }
292 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Invalid digits after decimal point.
293 function (jsonObject) {
294 return jsonObject.parse('0x0');
295 }
296 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Unable to parse JSON string.
297 function (jsonObject) {
298 return jsonObject.parse('2e1.3');
299 }
300 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Unable to parse JSON string.
301 function (jsonObject) {
302 return jsonObject.parse('2e-+10');
303 }
304 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Exponen t symbols should be followed by an optional '+' or '-' and then by at least one number.
305 function (jsonObject) {
306 return jsonObject.parse('2e+-10');
307 }
308 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Exponen t symbols should be followed by an optional '+' or '-' and then by at least one number.
309 function (jsonObject) {
310 return jsonObject.parse('2e3e4');
311 }
312 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Unable to parse JSON string.
313 function (jsonObject) {
314 return jsonObject.parse('-01.0');
315 }
316 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Unable to parse JSON string.
317 function (jsonObject) {
318 return jsonObject.parse('-01');
319 }
320 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Unable to parse JSON string.
321 json2.js did not throw for a test we expect to throw.
322 function (jsonObject) {
323 return jsonObject.parse('-01.a');
324 }
325 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Invalid digits after decimal point.
326 function (jsonObject) {
327 return jsonObject.parse('1.e1');
328 }
329 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Invalid digits after decimal point.
330 json2.js did not throw for a test we expect to throw.
331 function (jsonObject) {
332 return jsonObject.parse('{/* block comments are not allowed */}');
333 }
334 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Unrecog nized token '/'.
335 function (jsonObject) {
336 return jsonObject.parse('{// line comments are not allowed \n}');
337 }
338 PASS tests[i](nativeJSON) threw exception SyntaxError: JSON Parse error: Unrecog nized token '/'.
339 function (jsonObject) {
340 return jsonObject.parse('true');
341 }
342 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
343 function (jsonObject) {
344 return jsonObject.parse('false');
345 }
346 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
347 function (jsonObject) {
348 return jsonObject.parse(JSON.stringify(simpleObject));
349 }
350 PASS JSON.stringify(tests[i](nativeJSON)) is tests[i].expected
351 function (jsonObject) {
352 return jsonObject.parse(JSON.stringify(complexObject));
353 }
354 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
355 function (jsonObject) {
356 return jsonObject.parse(JSON.stringify(complexObject));
357 }
358 PASS JSON.stringify(tests[i](nativeJSON)) is tests[i].expected
359 function (jsonObject) {
360 return jsonObject.parse(JSON.stringify(simpleObject,null,100));
361 }
362 PASS JSON.stringify(tests[i](nativeJSON)) is tests[i].expected
363 function (jsonObject) {
364 return jsonObject.parse(JSON.stringify(complexObject,null,100));
365 }
366 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
367 function (jsonObject) {
368 return jsonObject.parse(JSON.stringify(complexObject,null,100));
369 }
370 PASS JSON.stringify(tests[i](nativeJSON)) is tests[i].expected
371 function (jsonObject) {
372 return jsonObject.parse(JSON.stringify(simpleObject,null," "));
373 }
374 PASS JSON.stringify(tests[i](nativeJSON)) is tests[i].expected
375 function (jsonObject) {
376 return jsonObject.parse(JSON.stringify(complexObject,null," "));
377 }
378 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
379 function (jsonObject) {
380 return jsonObject.parse(JSON.stringify(complexObject,null," "));
381 }
382 PASS JSON.stringify(tests[i](nativeJSON)) is tests[i].expected
383 function (jsonObject) {
384 return jsonObject.parse(JSON.stringify(simpleObject,null,"\t"));
385 }
386 PASS JSON.stringify(tests[i](nativeJSON)) is tests[i].expected
387 function (jsonObject) {
388 return jsonObject.parse(JSON.stringify(complexObject,null,"\t"));
389 }
390 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
391 function (jsonObject) {
392 return jsonObject.parse(JSON.stringify(complexObject,null,"\t"));
393 }
394 PASS JSON.stringify(tests[i](nativeJSON)) is tests[i].expected
395 function (jsonObject) {
396 return jsonObject.parse(JSON.stringify(simpleObject,null,"\n"));
397 }
398 PASS JSON.stringify(tests[i](nativeJSON)) is tests[i].expected
399 function (jsonObject) {
400 return jsonObject.parse(JSON.stringify(complexObject,null,"\n"));
401 }
402 PASS JSON.stringify(tests[i](nativeJSON)) is tests[i].expected
403 function (jsonObject) {
404 return jsonObject.parse("true", log);
405 }
406 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
407 function (jsonObject) {
408 return jsonObject.parse("false", log);
409 }
410 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
411 function (jsonObject) {
412 return jsonObject.parse("null", log);
413 }
414 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
415 function (jsonObject) {
416 return jsonObject.parse("1", log);
417 }
418 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
419 function (jsonObject) {
420 return jsonObject.parse("1.5", log);
421 }
422 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
423 function (jsonObject) {
424 return jsonObject.parse('"a string"', log);
425 }
426 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
427 function (jsonObject) {
428 return jsonObject.parse(JSON.stringify(simpleArray), log);
429 }
430 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
431 function (jsonObject) {
432 return jsonObject.parse(JSON.stringify(complexArray), log);
433 }
434 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
435 function (jsonObject) {
436 return jsonObject.parse(JSON.stringify(simpleObject), log);
437 }
438 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
439 function (jsonObject) {
440 return jsonObject.parse(JSON.stringify(complexObject), log);
441 }
442 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
443 function (jsonObject) {
444 return jsonObject.parse('{"__proto__":{"a":5}}', log);
445 }
446 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
447 function (jsonObject) {
448 logOrderString = "";
449 return jsonObject.parse("true", logOrder);
450 }
451 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
452 function (jsonObject) {
453 logOrderString = "";
454 return jsonObject.parse("false", logOrder);
455 }
456 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
457 function (jsonObject) {
458 logOrderString = "";
459 return jsonObject.parse("null", logOrder);
460 }
461 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
462 function (jsonObject) {
463 logOrderString = "";
464 return jsonObject.parse("1", logOrder);
465 }
466 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
467 function (jsonObject) {
468 logOrderString = "";
469 return jsonObject.parse("1.5", logOrder);
470 }
471 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
472 function (jsonObject) {
473 logOrderString = "";
474 return jsonObject.parse('"a string"', logOrder);
475 }
476 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
477 function (jsonObject) {
478 logOrderString = "";
479 return jsonObject.parse(JSON.stringify(simpleArray), logOrder);
480 }
481 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
482 function (jsonObject) {
483 logOrderString = "";
484 return jsonObject.parse(JSON.stringify(complexArray), logOrder);
485 }
486 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
487 function (jsonObject) {
488 logOrderString = "";
489 return jsonObject.parse(JSON.stringify(simpleObject), logOrder);
490 }
491 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
492 function (jsonObject) {
493 logOrderString = "";
494 return jsonObject.parse(JSON.stringify(complexObject), logOrder);
495 }
496 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
497 function (jsonObject) {
498 logOrderString = "";
499 jsonObject.parse("true", logOrder);
500 return logOrderString;
501 }
502 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
503 function (jsonObject) {
504 logOrderString = "";
505 jsonObject.parse("false", logOrder);
506 return logOrderString;
507 }
508 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
509 function (jsonObject) {
510 logOrderString = "";
511 jsonObject.parse("null", logOrder);
512 return logOrderString;
513 }
514 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
515 function (jsonObject) {
516 logOrderString = "";
517 jsonObject.parse("1", logOrder);
518 return logOrderString;
519 }
520 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
521 function (jsonObject) {
522 logOrderString = "";
523 jsonObject.parse("1.5", logOrder);
524 return logOrderString;
525 }
526 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
527 function (jsonObject) {
528 logOrderString = "";
529 jsonObject.parse('"a string"', logOrder);
530 return logOrderString;
531 }
532 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
533 function (jsonObject) {
534 logOrderString = "";
535 jsonObject.parse(JSON.stringify(simpleArray), logOrder);
536 return logOrderString;
537 }
538 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
539 function (jsonObject) {
540 logOrderString = "";
541 jsonObject.parse(JSON.stringify(complexArray), logOrder);
542 return logOrderString;
543 }
544 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
545 function (jsonObject) {
546 logOrderString = "";
547 jsonObject.parse(JSON.stringify(simpleObject), logOrder);
548 return logOrderString;
549 }
550 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
551 function (jsonObject) {
552 logOrderString = "";
553 jsonObject.parse(JSON.stringify(complexObject), logOrder);
554 return logOrderString;
555 }
556 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
557 function (jsonObject) {
558 callCount = 0;
559 logOrderString = "";
560 return jsonObject.parse(JSON.stringify(complexArray), throwAfterFifthCal l);
561 }
562 PASS tests[i](nativeJSON) threw exception from reviver.
563 function (jsonObject) {
564 callCount = 0;
565 logOrderString = "";
566 return jsonObject.parse(JSON.stringify(simpleObject), throwAfterFifthCal l);
567 }
568 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
569 function (jsonObject) {
570 callCount = 0;
571 logOrderString = "";
572 return jsonObject.parse(JSON.stringify(complexObject), throwAfterFifthCa ll);
573 }
574 PASS tests[i](nativeJSON) threw exception from reviver.
575 function (jsonObject) {
576 callCount = 0;
577 logOrderString = "";
578 try { jsonObject.parse(JSON.stringify(complexArray), throwAfterFifthCall ); } catch (e) {}
579 return logOrderString;
580 }
581 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
582 function (jsonObject) {
583 callCount = 0;
584 logOrderString = "";
585 try { jsonObject.parse(JSON.stringify(simpleObject), throwAfterFifthCall ); } catch (e) {}
586 return logOrderString;
587 }
588 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
589 function (jsonObject) {
590 callCount = 0;
591 logOrderString = "";
592 try { jsonObject.parse(JSON.stringify(complexObject), throwAfterFifthCal l); } catch (e) {}
593 return logOrderString;
594 }
595 PASS JSON.stringify(tests[i](nativeJSON)) is JSON.stringify(tests[i](JSON))
596 function (jsonObject) {
597 return jsonObject.parse(JSON.stringify(unicode));
598 }
599 PASS tests[i](nativeJSON) is tests[i].unstringifiedExpected
600 PASS successfullyParsed is true
601
602 TEST COMPLETE
603
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698