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

Unified 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, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/platform/win/fast/js/JSON-stringify-expected.txt
diff --git a/LayoutTests/platform/win/fast/js/JSON-stringify-expected.txt b/LayoutTests/platform/win/fast/js/JSON-stringify-expected.txt
index 76d96e6605b91eed1a90c10f9671d14124126809..8f9f31b12055e3cdb722b451eb1b498a64b77df6 100644
--- a/LayoutTests/platform/win/fast/js/JSON-stringify-expected.txt
+++ b/LayoutTests/platform/win/fast/js/JSON-stringify-expected.txt
@@ -161,19 +161,19 @@ function (jsonObject){
var array = [{toString:function(){array[0]='a'; array[1]='c'; array[2]='b'; return 'a'}}];
return jsonObject.stringify(simpleObject, array);
}
-FAIL tests[i](nativeJSON) should be {}. Threw exception illegal access
+PASS tests[i](nativeJSON) is tests[i](JSON)
function (jsonObject){
var allString = true;
var array = [{toString:function(){array[0]='a'; array[1]='c'; array[2]='b'; return 'a'}}];
return jsonObject.stringify(simpleObjectWithProto, array);
}
-FAIL tests[i](nativeJSON) should be {}. Threw exception illegal access
+PASS tests[i](nativeJSON) is tests[i](JSON)
function (jsonObject){
var allString = true;
var array = [1, new Number(2), NaN, Infinity, -Infinity, new String("str")];
return jsonObject.stringify({"1":"1","2":"2","NaN":"NaN","Infinity":"Infinity","-Infinity":"-Infinity","str":"str"}, array);
}
-FAIL tests[i](nativeJSON) should be {"1":"1","2":"2","NaN":"NaN","Infinity":"Infinity","-Infinity":"-Infinity","str":"str"}. Threw exception illegal access
+FAIL tests[i](nativeJSON) should be {"1":"1","2":"2","NaN":"NaN","Infinity":"Infinity","-Infinity":"-Infinity","str":"str"}. Was {"1":"1","NaN":"NaN","Infinity":"Infinity","-Infinity":"-Infinity"}.
function (jsonObject){
var allString = true;
var array = ["1","2","3"];
@@ -386,20 +386,20 @@ function (jsonObject){
jsonObject.stringify(simpleObject, array);
return count;
}
-FAIL tests[i](nativeJSON) should be 0. Threw exception illegal access
+PASS tests[i](nativeJSON) is tests[i](JSON)
function (jsonObject){
var allString = true;
var array = [{toString:function(){array[0]='a'; array[1]='c'; array[2]='b'; return 'a'}}, 'b', 'c'];
return jsonObject.stringify(simpleObject, array);
}
-FAIL tests[i](nativeJSON) should be {"b":"2","c":"3"}. Threw exception illegal access
+PASS tests[i](nativeJSON) is tests[i](JSON)
function (jsonObject){
var count = 0;
var array = [{toString:function(){count++; array[0]='a'; array[1]='c'; array[2]='b'; return 'a'}}, 'b', 'c'];
jsonObject.stringify(simpleObject, array);
return count;
}
-FAIL tests[i](nativeJSON) should be 0. Threw exception illegal access
+PASS tests[i](nativeJSON) is tests[i](JSON)
function (jsonObject){
return jsonObject.stringify({a:"1", get b() { this.a="foo"; return "getter"; }, c:"3"});
}
« 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