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

Side by Side Diff: test/webkit/run-json-stringify-expected.txt

Issue 1491923003: Improve rendering of callsite with non-function target. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix tests Created 5 years 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
« no previous file with comments | « test/webkit/fast/js/toString-overrides-expected.txt ('k') | 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 return jsonObject.stringify(false); 76 return jsonObject.stringify(false);
77 } 77 }
78 PASS tests[i](nativeJSON) is tests[i](JSON) 78 PASS tests[i](nativeJSON) is tests[i](JSON)
79 function (jsonObject){ 79 function (jsonObject){
80 return jsonObject.stringify(new Date(0)); 80 return jsonObject.stringify(new Date(0));
81 } 81 }
82 PASS tests[i](nativeJSON) is tests[i](JSON) 82 PASS tests[i](nativeJSON) is tests[i](JSON)
83 function (jsonObject){ 83 function (jsonObject){
84 return jsonObject.stringify({toJSON: Date.prototype.toJSON}); 84 return jsonObject.stringify({toJSON: Date.prototype.toJSON});
85 } 85 }
86 PASS tests[i](nativeJSON) threw exception TypeError: jsonObject.stringify is not a function. 86 PASS tests[i](nativeJSON) threw exception TypeError: (var).toISOString is not a function.
87 function (jsonObject){ 87 function (jsonObject){
88 return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ return "custom toISOString"; }}); 88 return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ return "custom toISOString"; }});
89 } 89 }
90 PASS tests[i](nativeJSON) is tests[i](JSON) 90 PASS tests[i](nativeJSON) is tests[i](JSON)
91 function (jsonObject){ 91 function (jsonObject){
92 return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ return {}; }}); 92 return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ return {}; }});
93 } 93 }
94 FAIL tests[i](nativeJSON) should throw an exception. Was {}. 94 FAIL tests[i](nativeJSON) should throw an exception. Was {}.
95 function (jsonObject){ 95 function (jsonObject){
96 return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ throw "An exception"; }}); 96 return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ throw "An exception"; }});
97 } 97 }
98 PASS tests[i](nativeJSON) threw exception An exception. 98 PASS tests[i](nativeJSON) threw exception An exception.
99 function (jsonObject){ 99 function (jsonObject){
100 var d = new Date(0); 100 var d = new Date(0);
101 d.toISOString = null; 101 d.toISOString = null;
102 return jsonObject.stringify(d); 102 return jsonObject.stringify(d);
103 } 103 }
104 PASS tests[i](nativeJSON) threw exception TypeError: jsonObject.stringify is not a function. 104 PASS tests[i](nativeJSON) threw exception TypeError: (var).toISOString is not a function.
105 function (jsonObject){ 105 function (jsonObject){
106 var d = new Date(0); 106 var d = new Date(0);
107 d.toJSON = undefined; 107 d.toJSON = undefined;
108 return jsonObject.stringify(d); 108 return jsonObject.stringify(d);
109 } 109 }
110 PASS tests[i](nativeJSON) is tests[i](JSON) 110 PASS tests[i](nativeJSON) is tests[i](JSON)
111 function (jsonObject){ 111 function (jsonObject){
112 return jsonObject.stringify({get Foo() { return "bar"; }}); 112 return jsonObject.stringify({get Foo() { return "bar"; }});
113 } 113 }
114 PASS tests[i](nativeJSON) is tests[i](JSON) 114 PASS tests[i](nativeJSON) is tests[i](JSON)
(...skipping 420 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 | « test/webkit/fast/js/toString-overrides-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698