Searched refs:stringify (Results 1 - 25 of 256) sorted by relevance

1234567891011

/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-crbug-351262.js6 JSON.stringify(this);
H A Dregress-2570.js31 assertEquals('["\u56e7","\u00e6"]', JSON.stringify(o));
32 assertEquals('["\u56e7","\u00e6"]', JSON.stringify(o, null, 0));
H A 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(
[all...]
H A Dregress-753.js28 // Test that JSON.stringify correctly truncates floating point numbers.
35 assertEquals(JSON.stringify(obj, null, 5.99999), JSON.stringify(obj, null, 5));
H A Dregress-2374.js33 assertEquals(JSON.stringify(obj), JSON.stringify(obj2));
34 assertEquals(JSON.stringify(obj, null, 0), JSON.stringify(obj2));
H A Dregress-166553.js30 JSON.stringify(String.fromCharCode(1, -11).toString())
H A Dregress-crbug-229923.js30 var slice = "slow path of JSON.stringify for sliced string".substring(1);
31 assertEquals('"' + slice + '"', JSON.stringify(slice, null, 0));
41 JSON.stringify(slice_of_external, null, 0));
H A Dregress-752.js28 // Test that JSON.stringify correctly unwraps Boolean objects.
36 assertEquals("[false]", JSON.stringify([42], replacer));
H A Dregress-851.js31 assertNull(JSON.stringify({x: null}).match(/\0/));
H A Djson-stringifier-emptyhandle.js36 JSON.stringify(array);
H A Dregress-crbug-160010.js35 JSON.stringify(str);
H A Dregress-json-stringify-gc.js35 // At some point during the first stringify, allocation causes a GC and
38 json1 = JSON.stringify(a);
39 json2 = JSON.stringify(a);
40 assertTrue(json1 == json2, "GC caused JSON.stringify to fail.");
42 // Check that the slow path of JSON.stringify works correctly wrt GC.
45 assertEquals('"' + s + '"', JSON.stringify(s, null, 0));
50 assertEquals('"' + s + '"', JSON.stringify(s, null, 0));
H A Dregress-369450.js10 var json = JSON.stringify(v);
/external/chromium_org/v8/test/webkit/resources/
H A 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(ne
[all...]
/external/chromium_org/v8/test/mjsunit/
H A Djson2.js30 // Test JSON.stringify on the global object.
32 assertTrue(JSON.stringify(this).indexOf('"a":12345') > 0);
33 assertTrue(JSON.stringify(this, null, 0).indexOf('"a":12345') > 0);
35 // Test JSON.stringify of array in dictionary mode.
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_effec
[all...]
H A Djson-stringify-recursive.js38 JSON.stringify(a);
49 assertThrows(function() { JSON.stringify(deepArray); }, RangeError);
54 assertThrows(function() { JSON.stringify(deepObject); }, RangeError);
H A Ddebug-liveedit-3.js61 print("Result: " + JSON.stringify(result) + "\n");
62 print("Change log: " + JSON.stringify(change_log) + "\n");
H A Ddebug-liveedit-4.js63 print("Result: " + JSON.stringify(result) + "\n");
64 print("Change log: " + JSON.stringify(change_log) + "\n");
H A Ddebug-liveedit-newsource.js69 print("Result: " + JSON.stringify(result) + "\n");
70 print("Change log: " + JSON.stringify(change_log) + "\n");
/external/chromium_org/v8/test/webkit/
H A 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(value
[all...]
/external/valgrind/main/VEX/test/
H A Dtest-amd64-muldiv.h11 stringify(OP)"b %b2\n\t"
17 stringify(OP) "b", s0, s1, res, flags & CC_MASK);
29 stringify(OP) "w %w3\n\t"
35 stringify(OP) "w", op0h, op0, s1, resh, res, flags & CC_MASK);
47 stringify(OP) "l %3\n\t"
53 stringify(OP) "l", op0h, op0, s1, resh, res, flags & CC_MASK);
65 stringify(OP) "q %3\n\t"
71 stringify(OP) "q", op0h, op0, s1, resh, res, flags & CC_MASK);
H A Dtest-i386-muldiv.h11 stringify(OP)"b %b2\n\t"
17 stringify(OP) "b", s0, s1, res, flags & CC_MASK);
29 stringify(OP) "w %w3\n\t"
35 stringify(OP) "w", op0h, op0, s1, resh, res, flags & CC_MASK);
47 stringify(OP) "l %3\n\t"
53 stringify(OP) "l", op0h, op0, s1, resh, res, flags & CC_MASK);
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/news_a11y/
H A Dfeed_iframe.js6 var msg = JSON.stringify({type:"size", size:document.body.offsetHeight});
23 parent.postMessage(JSON.stringify({type:"show", url:href}), "*");
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/
H A DTestController.js42 message = typeof result === "undefined" ? "\"<undefined>\"" : JSON.stringify(result);
/external/chromium_org/v8/test/mjsunit/harmony/
H A 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));

Completed in 297 milliseconds

1234567891011