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

Side by Side Diff: LayoutTests/platform/win/fast/js/JSON-stringify-expected.txt

Issue 183583003: Rebaseline fast/js/JSON-stringify.html (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 function (jsonObject){ 1 function (jsonObject){
2 return jsonObject.stringify(1); 2 return jsonObject.stringify(1);
3 } 3 }
4 PASS tests[i](nativeJSON) is tests[i](JSON) 4 PASS tests[i](nativeJSON) is tests[i](JSON)
5 function (jsonObject){ 5 function (jsonObject){
6 return jsonObject.stringify(1.5); 6 return jsonObject.stringify(1.5);
7 } 7 }
8 PASS tests[i](nativeJSON) is tests[i](JSON) 8 PASS tests[i](nativeJSON) is tests[i](JSON)
9 function (jsonObject){ 9 function (jsonObject){
10 return jsonObject.stringify(-1); 10 return jsonObject.stringify(-1);
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 var allString = true; 154 var allString = true;
155 var array = ["a"]; 155 var array = ["a"];
156 return jsonObject.stringify({get a(){return 1;array[1]="b";array[2]="c"} , b:"2", c:"3"}, array); 156 return jsonObject.stringify({get a(){return 1;array[1]="b";array[2]="c"} , b:"2", c:"3"}, array);
157 } 157 }
158 PASS tests[i](nativeJSON) is tests[i](JSON) 158 PASS tests[i](nativeJSON) is tests[i](JSON)
159 function (jsonObject){ 159 function (jsonObject){
160 var allString = true; 160 var allString = true;
161 var array = [{toString:function(){array[0]='a'; array[1]='c'; array[2]=' b'; return 'a'}}]; 161 var array = [{toString:function(){array[0]='a'; array[1]='c'; array[2]=' b'; return 'a'}}];
162 return jsonObject.stringify(simpleObject, array); 162 return jsonObject.stringify(simpleObject, array);
163 } 163 }
164 FAIL tests[i](nativeJSON) should be {}. Threw exception illegal access 164 PASS tests[i](nativeJSON) is tests[i](JSON)
165 function (jsonObject){ 165 function (jsonObject){
166 var allString = true; 166 var allString = true;
167 var array = [{toString:function(){array[0]='a'; array[1]='c'; array[2]=' b'; return 'a'}}]; 167 var array = [{toString:function(){array[0]='a'; array[1]='c'; array[2]=' b'; return 'a'}}];
168 return jsonObject.stringify(simpleObjectWithProto, array); 168 return jsonObject.stringify(simpleObjectWithProto, array);
169 } 169 }
170 FAIL tests[i](nativeJSON) should be {}. Threw exception illegal access 170 PASS tests[i](nativeJSON) is tests[i](JSON)
171 function (jsonObject){ 171 function (jsonObject){
172 var allString = true; 172 var allString = true;
173 var array = [1, new Number(2), NaN, Infinity, -Infinity, new String("str ")]; 173 var array = [1, new Number(2), NaN, Infinity, -Infinity, new String("str ")];
174 return jsonObject.stringify({"1":"1","2":"2","NaN":"NaN","Infinity":"Inf inity","-Infinity":"-Infinity","str":"str"}, array); 174 return jsonObject.stringify({"1":"1","2":"2","NaN":"NaN","Infinity":"Inf inity","-Infinity":"-Infinity","str":"str"}, array);
175 } 175 }
176 FAIL tests[i](nativeJSON) should be {"1":"1","2":"2","NaN":"NaN","Infinity":"Inf inity","-Infinity":"-Infinity","str":"str"}. Threw exception illegal access 176 FAIL tests[i](nativeJSON) should be {"1":"1","2":"2","NaN":"NaN","Infinity":"Inf inity","-Infinity":"-Infinity","str":"str"}. Was {"1":"1","NaN":"NaN","Infinity" :"Infinity","-Infinity":"-Infinity"}.
177 function (jsonObject){ 177 function (jsonObject){
178 var allString = true; 178 var allString = true;
179 var array = ["1","2","3"]; 179 var array = ["1","2","3"];
180 return jsonObject.stringify({1:'a', 2:'b', 3:'c'}, array); 180 return jsonObject.stringify({1:'a', 2:'b', 3:'c'}, array);
181 } 181 }
182 PASS tests[i](nativeJSON) is tests[i](JSON) 182 PASS tests[i](nativeJSON) is tests[i](JSON)
183 function (jsonObject){ 183 function (jsonObject){
184 var allString = true; 184 var allString = true;
185 var array = ["1","2","3"]; 185 var array = ["1","2","3"];
186 return jsonObject.stringify(simpleArray, array); 186 return jsonObject.stringify(simpleArray, array);
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 jsonObject.stringify({a:"a", b:"b", c:"c", 3: "d", 2: "e", 1: "f"}, repl aceFunc); 379 jsonObject.stringify({a:"a", b:"b", c:"c", 3: "d", 2: "e", 1: "f"}, repl aceFunc);
380 return replaceTracker; 380 return replaceTracker;
381 } 381 }
382 PASS tests[i](nativeJSON) is tests[i].expected 382 PASS tests[i](nativeJSON) is tests[i].expected
383 function (jsonObject){ 383 function (jsonObject){
384 var count = 0; 384 var count = 0;
385 var array = [{toString:function(){count++; array[0]='a'; array[1]='c'; a rray[2]='b'; return 'a'}}]; 385 var array = [{toString:function(){count++; array[0]='a'; array[1]='c'; a rray[2]='b'; return 'a'}}];
386 jsonObject.stringify(simpleObject, array); 386 jsonObject.stringify(simpleObject, array);
387 return count; 387 return count;
388 } 388 }
389 FAIL tests[i](nativeJSON) should be 0. Threw exception illegal access 389 PASS tests[i](nativeJSON) is tests[i](JSON)
390 function (jsonObject){ 390 function (jsonObject){
391 var allString = true; 391 var allString = true;
392 var array = [{toString:function(){array[0]='a'; array[1]='c'; array[2]=' b'; return 'a'}}, 'b', 'c']; 392 var array = [{toString:function(){array[0]='a'; array[1]='c'; array[2]=' b'; return 'a'}}, 'b', 'c'];
393 return jsonObject.stringify(simpleObject, array); 393 return jsonObject.stringify(simpleObject, array);
394 } 394 }
395 FAIL tests[i](nativeJSON) should be {"b":"2","c":"3"}. Threw exception illegal a ccess 395 PASS tests[i](nativeJSON) is tests[i](JSON)
396 function (jsonObject){ 396 function (jsonObject){
397 var count = 0; 397 var count = 0;
398 var array = [{toString:function(){count++; array[0]='a'; array[1]='c'; a rray[2]='b'; return 'a'}}, 'b', 'c']; 398 var array = [{toString:function(){count++; array[0]='a'; array[1]='c'; a rray[2]='b'; return 'a'}}, 'b', 'c'];
399 jsonObject.stringify(simpleObject, array); 399 jsonObject.stringify(simpleObject, array);
400 return count; 400 return count;
401 } 401 }
402 FAIL tests[i](nativeJSON) should be 0. Threw exception illegal access 402 PASS tests[i](nativeJSON) is tests[i](JSON)
403 function (jsonObject){ 403 function (jsonObject){
404 return jsonObject.stringify({a:"1", get b() { this.a="foo"; return "gett er"; }, c:"3"}); 404 return jsonObject.stringify({a:"1", get b() { this.a="foo"; return "gett er"; }, c:"3"});
405 } 405 }
406 PASS tests[i](nativeJSON) is tests[i](JSON) 406 PASS tests[i](nativeJSON) is tests[i](JSON)
407 function (jsonObject){ 407 function (jsonObject){
408 return jsonObject.stringify({a:"1", get b() { this.c="foo"; return "gett er"; }, c:"3"}); 408 return jsonObject.stringify({a:"1", get b() { this.c="foo"; return "gett er"; }, c:"3"});
409 } 409 }
410 PASS tests[i](nativeJSON) is tests[i](JSON) 410 PASS tests[i](nativeJSON) is tests[i](JSON)
411 function (jsonObject){ 411 function (jsonObject){
412 var setterCalled = false; 412 var setterCalled = false;
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 return jsonObject.stringify(toDeepVirtualJSONArray()); 535 return jsonObject.stringify(toDeepVirtualJSONArray());
536 } 536 }
537 function (jsonObject){ 537 function (jsonObject){
538 return jsonObject.stringify(fullCharsetString); 538 return jsonObject.stringify(fullCharsetString);
539 } 539 }
540 PASS tests[i](nativeJSON) is tests[i](JSON) 540 PASS tests[i](nativeJSON) is tests[i](JSON)
541 PASS successfullyParsed is true 541 PASS successfullyParsed is true
542 542
543 TEST COMPLETE 543 TEST COMPLETE
544 544
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698