/external/v8/test/mjsunit/regress/ |
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...] |
regress-crbug-351262.js | 6 JSON.stringify(this);
|
regress-crbug-471702.js | 7 assertThrows(function() { JSON.stringify(%DebugGetLoadedScripts()); });
|
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));
|
regress-json-stringify-gc.js | 35 // 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));
|
regress-369450.js | 10 var json = JSON.stringify(v);
|
regress-753.js | 28 // Test that JSON.stringify correctly truncates floating point numbers. 35 assertEquals(JSON.stringify(obj, null, 5.99999), JSON.stringify(obj, null, 5));
|
regress-crbug-229923.js | 30 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));
|
/external/v8/test/webkit/resources/ |
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...] |
/external/v8/test/webkit/ |
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...] |
JSON-stringify-replacer.js | 24 description("Test to ensure correct behaviour of replacer functions in JSON.stringify"); 70 shouldBeUndefined("JSON.stringify(object, returnUndefined)"); 71 shouldBeUndefined("JSON.stringify(array, returnUndefined)"); 73 shouldBe("JSON.stringify(object, returnObjectFor1)", '\'{"0":0,"1":{},"2":2}\''); 74 shouldBe("JSON.stringify(array, returnObjectFor1)", '\'[0,{},2,null]\''); 76 shouldBe("JSON.stringify(object, returnArrayFor1)", '\'{"0":0,"1":[],"2":2}\''); 77 shouldBe("JSON.stringify(array, returnArrayFor1)", '\'[0,[],2,null]\''); 79 shouldBe("JSON.stringify(object, returnUndefinedFor1)", '\'{"0":0,"2":2}\''); 80 shouldBe("JSON.stringify(array, returnUndefinedFor1)", '\'[0,null,2,null]\''); 82 shouldBe("JSON.stringify(object, returnFunctionFor1)", '\'{"0":0,"2":2}\'') [all...] |
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...] |
run-json-stringify.js | 8 load("test/webkit/resources/JSON-stringify.js");
|
Object-defineProperties.js | 29 shouldBe("JSON.stringify(Object.defineProperties({},{property:{value:'foo', enumerable:true}, property2:{value:'foo', enumerable:true}}))", '\'{"property":"foo","property2":"foo"}\''); 30 shouldBe("JSON.stringify(Object.defineProperties({},{property:{value:'foo'}, property2:{value:'foo', enumerable:true}}))", '\'{"property2":"foo"}\''); 31 shouldBe("JSON.stringify(Object.defineProperties({property:'foo'},{property:{value:'foo', enumerable:true}, property2:{value:'foo', enumerable:true}}))", '\'{"property":"foo","property2":"foo"}\''); 32 shouldBe("JSON.stringify(Object.defineProperties({property:'foo'},{property:{value:'foo', enumerable:false}, property2:{value:'foo', enumerable:true}}))", '\'{"property2":"foo"}\''); 33 shouldBe("JSON.stringify(Object.defineProperties({property:'foo'},{property:{value:'foo'}, property2:{value:'foo', enumerable:true}}))", '\'{"property":"foo","property2":"foo"}\'');
|
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...] |
/toolchain/binutils/binutils-2.25/ld/ |
.gitignore | 10 /stringify.sed
|
/frameworks/native/libs/ui/ |
UiConfig.cpp | 22 // We need the two-level macro to stringify the contents of a macro argument 23 #define STRINGIFY(x) #x 24 #define TOSTRING(x) STRINGIFY(x)
|
/external/chromium-trace/catapult/third_party/vinn/vinn/test_data/ |
console_time_test.js | 9 throw new Error('Assertion error: ' + JSON.stringify(first) + 10 ' !== ' + JSON.stringify(second));
|
/external/v8/src/ |
d8.js | 7 // A more universal stringify that supports more types than JSON. 25 function Stringify(x, depth) { 50 {}.hasOwnProperty.call(x, i) ? Stringify(x[i], depth - 1) : ""); 65 if (IS_SYMBOL(name)) name = "[" + Stringify(name) + "]"; 67 props.push(name + ": " + Stringify(desc.value, depth - 1)); 70 var getter = Stringify(desc.get); 74 var setter = Stringify(desc.set); 90 return '[' + proxy_type + ' Proxy ' + Stringify(info_object, depth-1) + ']';
|
/external/v8/test/mjsunit/ |
json-replacer-number-wrapper-tostring.js | 5 // http://ecma-international.org/ecma-262/6.0/#sec-json.stringify 19 JSON.stringify('', [num]);
|
json-replacer-order.js | 5 // http://ecma-international.org/ecma-262/6.0/#sec-json.stringify 22 JSON.stringify('', replacer, space);
|
json2.js | 30 // 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_effect)) [all...] |
/external/valgrind/VEX/test/ |
test-i386-muldiv.h | 11 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);
|
test-amd64-muldiv.h | 11 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);
|
/external/chromium-trace/catapult/perf_insights/perf_insights/ui/ |
corpus_drivers.html | 30 JSON.stringify(mapFunctionHandle.asDict())); 47 JSON.stringify(mapFunctionHandle.asDict())); 64 JSON.stringify(mapFunctionHandle.asDict()));
|