Home
last modified time | relevance | path

Searched refs:stringify (Results 1 – 25 of 114) sorted by relevance

12345

/external/v8/test/webkit/resources/
DJSON-stringify.js45 return jsonObject.stringify(1);
48 return jsonObject.stringify(1.5);
51 return jsonObject.stringify(-1);
54 return jsonObject.stringify(-1.5);
57 return jsonObject.stringify(null);
60 return jsonObject.stringify("string");
63 return jsonObject.stringify(new Number(0));
66 return jsonObject.stringify(new Number(1));
69 return jsonObject.stringify(new Number(1.5));
72 return jsonObject.stringify(new Number(-1));
[all …]
/external/v8/test/mjsunit/regress/
Dregress-3135.js6 assertEquals('{"x":1}', JSON.stringify({ x : 1 }, ["x", 1, "x", 1]));
7 assertEquals('{"1":1}', JSON.stringify({ 1 : 1 }, ["x", 1, "x", 1]));
8 assertEquals('{"1":1}', JSON.stringify({ 1 : 1 }, ["1", 1, "1", 1]));
9 assertEquals('{"1":1}', JSON.stringify({ 1 : 1 }, [1, "1", 1, "1"]));
14 assertEquals('{"x":2}', JSON.stringify(getter_obj, ["x", "y", "x"]));
18 assertEquals('{"y":4,"x":3}', JSON.stringify({ x : 3, y : 4}, ["y", "x"]));
20 JSON.stringify({ x : 3, y : 4, 1 : 2 }, ["y", 1, "x"]));
26 JSON.stringify(a, ["__proto__", "x", "__proto__"]));
29 JSON.stringify(a, ["__proto__", "x"]));
31 assertEquals('{}', JSON.stringify(b));
[all …]
Dregress-2374.js33 assertEquals(JSON.stringify(obj), JSON.stringify(obj2));
34 assertEquals(JSON.stringify(obj, null, 0), JSON.stringify(obj2));
Dregress-json-stringify-gc.js38 json1 = JSON.stringify(a);
39 json2 = JSON.stringify(a);
45 assertEquals('"' + s + '"', JSON.stringify(s, null, 0));
50 assertEquals('"' + s + '"', JSON.stringify(s, null, 0));
Dregress-latin-1.js31 assertEquals(0x80, JSON.stringify("\x80").charCodeAt(1));
32 assertEquals(0x80, JSON.stringify("\x80", 0, null).charCodeAt(1));
88 var stringified = JSON.stringify({"test" : testString}, null, 0);
Dregress-2570.js31 assertEquals('["\u56e7","\u00e6"]', JSON.stringify(o));
32 assertEquals('["\u56e7","\u00e6"]', JSON.stringify(o, null, 0));
Dregress-753.js35 assertEquals(JSON.stringify(obj, null, 5.99999), JSON.stringify(obj, null, 5));
Dregress-crbug-229923.js31 assertEquals('"' + slice + '"', JSON.stringify(slice, null, 0));
41 JSON.stringify(slice_of_external, null, 0));
/external/v8/test/webkit/
Drun-json-stringify-expected.txt2 return jsonObject.stringify(1);
6 return jsonObject.stringify(1.5);
10 return jsonObject.stringify(-1);
14 return jsonObject.stringify(-1.5);
18 return jsonObject.stringify(null);
22 return jsonObject.stringify("string");
26 return jsonObject.stringify(new Number(0));
30 return jsonObject.stringify(new Number(1));
34 return jsonObject.stringify(new Number(1.5));
38 return jsonObject.stringify(new Number(-1));
[all …]
DJSON-stringify-replacer-expected.txt24 Test to ensure correct behaviour of replacer functions in JSON.stringify
29 PASS JSON.stringify(object, returnUndefined) is undefined.
30 PASS JSON.stringify(array, returnUndefined) is undefined.
31 PASS JSON.stringify(object, returnObjectFor1) is '{"0":0,"1":{},"2":2}'
32 PASS JSON.stringify(array, returnObjectFor1) is '[0,{},2,null]'
33 PASS JSON.stringify(object, returnArrayFor1) is '{"0":0,"1":[],"2":2}'
34 PASS JSON.stringify(array, returnArrayFor1) is '[0,[],2,null]'
35 PASS JSON.stringify(object, returnUndefinedFor1) is '{"0":0,"2":2}'
36 PASS JSON.stringify(array, returnUndefinedFor1) is '[0,null,2,null]'
37 PASS JSON.stringify(object, returnFunctionFor1) is '{"0":0,"2":2}'
[all …]
Dmath-transforms.js53 shouldBe("values." + name + " * 1", stringify(values[numForStr]));
56 shouldBe("1 * values." + name, stringify(values[numForStr]));
65 … shouldBe("+values." + name1 + " * values." + name2, stringify(values[name1] * values[name2]));
67 … shouldBe("values." + name1 + " * +values." + name2, stringify(values[name1] * values[name2]));
69 … shouldBe("+values." + name1 + " * +values." + name2, stringify(values[name1] * values[name2]));
72 … shouldBe("+values." + name1 + " / values." + name2, stringify(values[name1] / values[name2]));
74 … shouldBe("values." + name1 + " / +values." + name2, stringify(values[name1] / values[name2]));
76 … shouldBe("+values." + name1 + " / +values." + name2, stringify(values[name1] / values[name2]));
79 … shouldBe("+values." + name1 + " - values." + name2, stringify(values[name1] - values[name2]));
81 … shouldBe("values." + name1 + " - +values." + name2, stringify(values[name1] - values[name2]));
[all …]
DObject-defineProperties-expected.txt32 PASS JSON.stringify(Object.defineProperties({},{property:{value:'foo', enumerable:true}, property2:…
33 PASS JSON.stringify(Object.defineProperties({},{property:{value:'foo'}, property2:{value:'foo', enu…
34 PASS JSON.stringify(Object.defineProperties({property:'foo'},{property:{value:'foo', enumerable:tru…
35 PASS JSON.stringify(Object.defineProperties({property:'foo'},{property:{value:'foo', enumerable:fal…
36 PASS JSON.stringify(Object.defineProperties({property:'foo'},{property:{value:'foo'}, property2:{va…
/external/v8/test/mjsunit/
Djson.js229 assertEquals(expected, JSON.stringify(input));
230 assertEquals(expected, JSON.stringify(input, null, 0));
250 assertEquals("[\n 1,\n 2,\n 3\n]", JSON.stringify([1, 2, 3], null, 1));
251 assertEquals("[\n 1,\n 2,\n 3\n]", JSON.stringify([1, 2, 3], null, 2));
253 JSON.stringify([1, 2, 3], null, new Number(2)));
254 assertEquals("[\n^1,\n^2,\n^3\n]", JSON.stringify([1, 2, 3], null, "^"));
256 JSON.stringify([1, 2, 3], null, new String("^")));
258 JSON.stringify([1, 2, [3, [4], 5], 6, 7], null, 1));
259 assertEquals("[]", JSON.stringify([], null, 1));
261 JSON.stringify([1, 2, [3, [4], 5], 6, 7], null));
[all …]
Djson2.js32 assertTrue(JSON.stringify(this).indexOf('"a":12345') > 0);
33 assertTrue(JSON.stringify(this, null, 0).indexOf('"a":12345') > 0);
37 assertEquals(expected, JSON.stringify(input));
38 assertEquals(expected, JSON.stringify(input, null, 0));
109 JSON.stringify({ get toJSON() { throw "error"; } });
121 assertThrows(function() { JSON.stringify(tojson_ex); });
122 assertThrows(function() { JSON.stringify(tojson_ex, null, 0); });
158 assertEquals('{"a":1,"b":2,"d":4}', JSON.stringify(getter_side_effect));
159 assertEquals('{"b":2,"d":4,"e":5}', JSON.stringify(getter_side_effect));
171 JSON.stringify(getter_side_effect, null, 0));
[all …]
Djson-stringify-recursive.js38 JSON.stringify(a);
49 assertThrows(function() { JSON.stringify(deepArray); }, RangeError);
54 assertThrows(function() { JSON.stringify(deepObject); }, RangeError);
Ddebug-liveedit-4.js63 print("Result: " + JSON.stringify(result) + "\n");
64 print("Change log: " + JSON.stringify(change_log) + "\n");
Ddebug-liveedit-3.js61 print("Result: " + JSON.stringify(result) + "\n");
62 print("Change log: " + JSON.stringify(change_log) + "\n");
/external/valgrind/VEX/test/
Dtest-amd64-muldiv.h11 stringify(OP)"b %b2\n\t" in glue()
17 stringify(OP) "b", s0, s1, res, flags & CC_MASK); in glue()
29 stringify(OP) "w %w3\n\t" in glue()
35 stringify(OP) "w", op0h, op0, s1, resh, res, flags & CC_MASK); in glue()
47 stringify(OP) "l %3\n\t" in glue()
53 stringify(OP) "l", op0h, op0, s1, resh, res, flags & CC_MASK); in glue()
65 stringify(OP) "q %3\n\t" in glue()
71 stringify(OP) "q", op0h, op0, s1, resh, res, flags & CC_MASK); in glue()
Dtest-i386-muldiv.h11 stringify(OP)"b %b2\n\t" in glue()
17 stringify(OP) "b", s0, s1, res, flags & CC_MASK); in glue()
29 stringify(OP) "w %w3\n\t" in glue()
35 stringify(OP) "w", op0h, op0, s1, resh, res, flags & CC_MASK); in glue()
47 stringify(OP) "l %3\n\t" in glue()
53 stringify(OP) "l", op0h, op0, s1, resh, res, flags & CC_MASK); in glue()
Dtest-amd64.h11 stringify(OP) size " %" size "2, %" size "0\n\t" \
20 stringify(OP) size " %" size "0\n\t" \
34 stringify(OP) "q", s0, res, iflags, flags & CC_MASK); in exec_opq()
43 stringify(OP) "l", s0, res, iflags, flags & CC_MASK); in exec_opl()
52 stringify(OP) "w", s0, res, iflags, flags & CC_MASK); in exec_opw()
61 stringify(OP) "b", s0, res, iflags, flags & CC_MASK); in exec_opb()
71 stringify(OP) "q", s0, s1, res, iflags, flags & CC_MASK); in exec_opq()
81 stringify(OP) "l", s0, s1, res, iflags, flags & CC_MASK); in exec_opl()
91 stringify(OP) "w", s0, s1, res, iflags, flags & CC_MASK); in exec_opw()
101 stringify(OP) "b", s0, s1, res, iflags, flags & CC_MASK); in exec_opb()
Dtest-amd64-shift.h14 stringify(OP) size " %" size "2, %" size "0\n\t" \
23 stringify(OP) size " %%cl, %" size "0\n\t" \
40 stringify(OP) "q", s0, s1, res, iflags, flags & CC_MASK); in exec_opq()
53 stringify(OP) "l", s0, s1, res, iflags, flags & CC_MASK); in exec_opl()
66 stringify(OP) "w", s0, s1, res, iflags, flags & CC_MASK); in exec_opw()
73 stringify(OP) size " %%cl, %" size "5, %" size "0\n\t" \
89 stringify(OP) "l", s0, s2, s1, res, iflags, flags & CC_MASK); in exec_opl()
102 stringify(OP) "w", s0, s2, s1, res, iflags, flags & CC_MASK); in exec_opw()
118 stringify(OP) "b", s0, s1, res, iflags, flags & CC_MASK); in exec_opb()
Dtest-i386-shift.h13 stringify(OP) size " %" size "2, %" size "0\n\t" \
22 stringify(OP) size " %%cl, %" size "0\n\t" \
39 stringify(OP) "l", s0, s1, res, iflags, flags & CC_MASK); in exec_opl()
52 stringify(OP) "w", s0, s1, res, iflags, flags & CC_MASK); in exec_opw()
59 stringify(OP) size " %%cl, %" size "5, %" size "0\n\t" \
75 stringify(OP) "l", s0, s2, s1, res, iflags, flags & CC_MASK); in exec_opl()
88 stringify(OP) "w", s0, s2, s1, res, iflags, flags & CC_MASK); in exec_opw()
104 stringify(OP) "b", s0, s1, res, iflags, flags & CC_MASK); in exec_opb()
Dtest-i386.h12 stringify(OP) size " %" size "2, %" size "0\n\t" \
21 stringify(OP) size " %" size "0\n\t" \
36 stringify(OP) "l", s0, res, iflags, flags & CC_MASK); in exec_opl()
50 stringify(OP) "w", s0, res, iflags, flags & CC_MASK); in exec_opw()
64 stringify(OP) "b", s0, res, iflags, flags & CC_MASK); in exec_opb()
79 stringify(OP) "l", s0, s1, res, iflags, flags & CC_MASK); in exec_opl()
93 stringify(OP) "w", s0, s1, res, iflags, flags & CC_MASK); in exec_opw()
107 stringify(OP) "b", s0, s1, res, iflags, flags & CC_MASK); in exec_opb()
/external/v8/test/mjsunit/harmony/
Dproxies-json.js32 assertEquals(expected, JSON.stringify(object));
34 assertEquals(expected, JSON.stringify(object, undefined, 0));
83 assertEquals(expected2, JSON.stringify(parent2));
85 assertEquals(expected2, JSON.stringify(parent2, undefined, 0));
176 JSON.stringify(parent7));
178 JSON.stringify(parent7));
/external/v8/test/webkit/fast/js/
DObject-defineProperty-expected.txt29 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1}), 'f…
30 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {}), 'foo')) i…
31 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {get:undefined…
32 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, writ…
33 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, writ…
34 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, enum…
35 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, enum…
36 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, conf…
37 PASS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty({}, 'foo', {value:1, conf…
38 …SS JSON.stringify(Object.getOwnPropertyDescriptor(Object.defineProperty([1,2,3], 'foo', {value:1, …
[all …]

12345