/external/v8/test/webkit/resources/ |
D | JSON-stringify.js | 45 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 …]
|
D | standalone-pre.js | 90 function stringify(v) function 118 testFailed(_a + " should be " + _bv + ". Was " + stringify(_av) + "."); 120 …testFailed(_a + " should be " + _bv + " (of type " + typeof _bv + "). Was " + stringify(_av) + " (… 132 var unevaledString = JSON.stringify(b); 177 …uld throw " + (typeof _e == "undefined" ? "an exception" : _ev) + ". Was " + stringify(_av) + ".");
|
/external/v8/test/mjsunit/regress/ |
D | regress-3135.js | 6 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 …]
|
D | regress-crbug-554946.js | 12 JSON.stringify(array)); 21 JSON.stringify(array)); 29 assertEquals('[0,1,2,{"value":"funky"},4,5,6,7,8,null]', JSON.stringify(array)); 37 assertEquals('[0,1,2,{"value":"funky"},4,5,6,7,8,null]', JSON.stringify(array)); 45 assertEquals('[0,1,2,{"value":"funky"},4,5,null,7,8,9]', JSON.stringify(array)); 53 assertEquals('[0,1,2,{"value":"funky"},4,5,6,7,8,9]', JSON.stringify(array)); 61 assertEquals('[0,1,2,{"value":"funky"},4,5,6,7,8,9]', JSON.stringify(array));
|
D | regress-4769.js | 9 JSON.stringify({foo: [42]}); 10 JSON.stringify({foo: [42]}, []); 11 JSON.stringify({foo: [42]}, undefined, ' '); 12 JSON.stringify({foo: [42]}, [], ' ');
|
D | regress-2374.js | 33 assertEquals(JSON.stringify(obj), JSON.stringify(obj2)); 34 assertEquals(JSON.stringify(obj, null, 0), JSON.stringify(obj2));
|
D | regress-json-stringify-gc.js | 38 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));
|
D | regress-latin-1.js | 31 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);
|
D | regress-2570.js | 31 assertEquals('["\u56e7","\u00e6"]', JSON.stringify(o)); 32 assertEquals('["\u56e7","\u00e6"]', JSON.stringify(o, null, 0));
|
/external/v8/test/webkit/ |
D | run-json-stringify-expected.txt | 2 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 …]
|
D | JSON-stringify-replacer-expected.txt | 24 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 …]
|
D | math-transforms.js | 53 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 …]
|
D | Object-defineProperties-expected.txt | 32 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/ |
D | json2.js | 32 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, (key, value) => value)); 39 assertEquals(JSON.stringify(input, null, "="), 40 JSON.stringify(input, (key, value) => value, "=")); 111 JSON.stringify({ get toJSON() { throw "error"; } }); 123 assertThrows(function() { JSON.stringify(tojson_ex); }); 124 assertThrows(function() { JSON.stringify(tojson_ex, null, 0); }); 160 assertEquals('{"a":1,"b":2,"d":4}', JSON.stringify(getter_side_effect)); [all …]
|
D | json.js | 236 assertEquals(expected, JSON.stringify(input)); 237 assertEquals(expected, JSON.stringify(input, (key, value) => value)); 238 assertEquals(JSON.stringify(input, null, "="), 239 JSON.stringify(input, (key, value) => value, "=")); 259 assertEquals("[\n 1,\n 2,\n 3\n]", JSON.stringify([1, 2, 3], null, 1)); 260 assertEquals("[\n 1,\n 2,\n 3\n]", JSON.stringify([1, 2, 3], null, 2)); 262 JSON.stringify([1, 2, 3], null, new Number(2))); 263 assertEquals("[\n^1,\n^2,\n^3\n]", JSON.stringify([1, 2, 3], null, "^")); 265 JSON.stringify([1, 2, 3], null, new String("^"))); 267 JSON.stringify([1, 2, [3, [4], 5], 6, 7], null, 1)); [all …]
|
D | json-stringify-recursive.js | 38 JSON.stringify(a); 49 assertThrows(function() { JSON.stringify(deepArray); }, RangeError); 54 assertThrows(function() { JSON.stringify(deepObject); }, RangeError);
|
/external/v8/test/mjsunit/es6/ |
D | proxies-json.js | 36 assertEquals(expected, JSON.stringify(object)); 38 assertEquals(expected, JSON.stringify(object, (key, value) => value)); 40 assertEquals(JSON.stringify(object, null, "="), 41 JSON.stringify(object, (key, value) => value, "=")); 100 assertEquals(expected2, JSON.stringify(parent2)); 102 assertEquals(expected2, JSON.stringify(parent2, undefined, 0)); 211 JSON.stringify(parent7)); 213 JSON.stringify(parent7)); 237 assertEquals(undefined, JSON.stringify(proxy)); 251 assertEquals('{"foo":42}', JSON.stringify(proxy)); [all …]
|
/external/valgrind/VEX/test/ |
D | test-amd64-muldiv.h | 11 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()
|
D | test-i386-muldiv.h | 11 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()
|
D | test-amd64.h | 11 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()
|
D | test-amd64-shift.h | 14 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()
|
D | test-i386-shift.h | 13 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()
|
D | test-i386.h | 12 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/valgrind/none/tests/x86-darwin/ |
D | bug341419.c | 11 #define stringify(x) #x macro 20 fprintf(stderr, "%s:%d: ASSERT(" stringify(a) \ 21 " " stringify(op) " " stringify(b) ")\n", \ 24 fprintf(stderr, "%s:%d: FAILED ASSERT((" stringify(a) \ 25 "=0x%016llx) " stringify(op) " (" stringify(b) "=0x%016llx))\n", \ 37 fprintf(stderr, "%s:%d: ASSERT(" stringify(e) ")\n", \ 40 fprintf(stderr, "%s:%d: FAILED ASSERT(" stringify(e) ")\n", \
|
/external/valgrind/none/tests/amd64-darwin/ |
D | bug341419.c | 11 #define stringify(x) #x macro 20 fprintf(stderr, "%s:%d: ASSERT(" stringify(a) \ 21 " " stringify(op) " " stringify(b) ")\n", \ 24 fprintf(stderr, "%s:%d: FAILED ASSERT((" stringify(a) \ 25 "=0x%016llx) " stringify(op) " (" stringify(b) "=0x%016llx))\n", \ 37 fprintf(stderr, "%s:%d: ASSERT(" stringify(e) ")\n", \ 40 fprintf(stderr, "%s:%d: FAILED ASSERT(" stringify(e) ")\n", \
|