HomeSort by relevance Sort by last modified time
    Searched full:stringify (Results 1 - 25 of 693) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/chromium_org/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-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));
regress-2374.js 33 assertEquals(JSON.stringify(obj), JSON.stringify(obj2));
34 assertEquals(JSON.stringify(obj, null, 0), JSON.stringify(obj2));
  /external/chromium_org/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/chromium_org/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...]
  /external/chromium_org/chrome/browser/resources/chromeos/chromevox/testing/
assert_additions.js 64 throw new Error('Expected ' + JSON.stringify(array1) +
65 ', got ' + JSON.stringify(array2));
76 if (JSON.stringify(actual) !== JSON.stringify(expected)) {
78 'Expected ' + JSON.stringify(expected) + '\n' +
79 'Got ' + JSON.stringify(actual));
  /external/chromium_org/mojo/public/c/system/tests/
core_unittest_pure_c.c 19 #define STRINGIFY(x) #x
20 #define STRINGIFY2(x) STRINGIFY(x)
28 return FAILURE(STRINGIFY(a) " != " STRINGIFY(b) " (expected ==)"); \
33 return FAILURE(STRINGIFY(a) " == " STRINGIFY(b) " (expected !=)"); \
  /external/valgrind/main/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);
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);
53 stringify(OP) "l", s0, s1, res, iflags, flags & CC_MASK);
66 stringify(OP) "w", s0, s1, res, iflags, flags & CC_MASK);
73 stringify(OP) size " %%cl, %" size "5, %" size "0\n\t" \
89 stringify(OP) "l", s0, s2, s1, res, iflags, flags & CC_MASK);
102 stringify(OP) "w", s0, s2, s1, res, iflags, flags & CC_MASK);
118 stringify(OP) "b", s0, s1, res, iflags, flags & CC_MASK);
  /external/chromium_org/v8/test/mjsunit/
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...]
json.js 226 // Stringify
229 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))
    [all...]
  /external/chromium_org/chrome/common/extensions/docs/examples/extensions/news_a11y/
feed_iframe.js 6 var msg = JSON.stringify({type:"size", size:document.body.offsetHeight});
23 parent.postMessage(JSON.stringify({type:"show", url:href}), "*");
  /frameworks/native/libs/ui/
UiConfig.cpp 21 #define STRINGIFY(x) #x
22 #define TOSTRING(x) STRINGIFY(x)
  /external/qemu/android/config/
check-esd.c 23 #define STRINGIFY(x) _STRINGIFY(x)
57 (func_ ##name) = dlsym( esd_lib, STRINGIFY(name) ); \
59 D("could not find %s in libesd\n", STRINGIFY(name)); \
check-pulseaudio.c 23 #define STRINGIFY(x) _STRINGIFY(x)
58 (func_ ##name) = dlsym( pa_lib, STRINGIFY(name) ); \
60 D("could not find %s in libpulse\n", STRINGIFY(name)); \

Completed in 833 milliseconds

1 2 3 4 5 6 7 8 91011>>