1 // Any copyright is dedicated to the Public Domain.
2 // http://creativecommons.org/licenses/publicdomain/
4 var gTestfile = 'stringify-gap.js';
5 //-----------------------------------------------------------------------------
6 var BUGNUMBER = 584909;
8 "JSON.stringify(_1, _2, numberGreaterThanOne) produces wrong output";
10 print(BUGNUMBER + ": " + summary);
19 var obj = { a: { b: [1, 2], c: { d: 3, e: 4 }, f: [], g: {}, h: [5], i: { j: 6 } } };
43 assertEq(JSON.stringify(obj, null, 3), expected);
44 assertEq(JSON.stringify(obj, null, " "), expected);
47 /******************************************************************************/
49 if (typeof reportCompare === "function")
50 reportCompare(true, true);
52 print("All tests passed!");