Home
last modified time | relevance | path

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

12345678910>>...12

/external/v8/test/mjsunit/
Djson.js228 assertEquals("true", JSON.stringify(true));
229 assertEquals("false", JSON.stringify(false));
230 assertEquals("null", JSON.stringify(null));
231 assertEquals("false", JSON.stringify({toJSON: function () { return false; }}));
232 assertEquals("4", JSON.stringify(4));
233 assertEquals('"foo"', JSON.stringify("foo"));
234 assertEquals("null", JSON.stringify(Infinity));
235 assertEquals("null", JSON.stringify(-Infinity));
236 assertEquals("null", JSON.stringify(NaN));
237 assertEquals("4", JSON.stringify(new Number(4)));
[all …]
/external/chromium_org/v8/test/webkit/
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 …]
/external/chromium_org/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.js36 JSON.stringify(a);
47 assertThrows(function() { JSON.stringify(deepArray); }, RangeError);
52 assertThrows(function() { JSON.stringify(deepObject); }, RangeError);
/external/valgrind/main/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/chromium_org/v8/test/mjsunit/regress/
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));
/external/chromium_org/remoting/webapp/
Dclient_plugin_async.js396 this.plugin.postMessage(JSON.stringify(
426 this.plugin.postMessage(JSON.stringify(
445 this.plugin.postMessage(JSON.stringify(
457 this.plugin.postMessage(JSON.stringify(
472 this.plugin.postMessage(JSON.stringify(
486 this.plugin.postMessage(JSON.stringify(
512 this.plugin.postMessage(JSON.stringify(
528 this.plugin.postMessage(JSON.stringify(
545 this.plugin.postMessage(JSON.stringify(
558 this.plugin.postMessage(JSON.stringify(
[all …]
/external/chromium_org/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/chromium_org/third_party/WebKit/Tools/GardeningServer/scripts/
Dbuilders_unittests.js699 var failingBuildInfoJSON = JSON.parse(JSON.stringify(kExampleBuildInfoJSON));
751 var builderStatusJSON = JSON.parse(JSON.stringify(kExampleBuilderStatusJSON));
756 var failingBuildInfoJSON = JSON.parse(JSON.stringify(kExampleBuildInfoWithWebKitTestCrashJSON));
808 var builderStatusJSON = JSON.parse(JSON.stringify(kExampleBuilderStatusJSON));
813 var failingBuildInfoJSON = JSON.parse(JSON.stringify(kExampleBuildInfoWithTaskKillWarning));
/external/chromium_org/chrome/third_party/chromevox/chromevox/injected/
Dapi.js126 channel_.port1.postMessage(JSON.stringify(message));
279 channel_.port1.postMessage(JSON.stringify(message));
331 channel_.port1.postMessage(JSON.stringify(message));
357 channel_.port1.postMessage(JSON.stringify(message));
393 targetNode.setAttribute('cvoxnodedesc', JSON.stringify(nodeDescriptions));
414 channel_.port1.postMessage(JSON.stringify(message));
534 channel_.port1.postMessage(JSON.stringify(message));
571 channel_.port1.postMessage(JSON.stringify(msg));
/external/chromium_org/chrome/browser/resources/sync_internals/
Ddata.js15 data += JSON.stringify(chrome.sync.aboutInfo, null, 2);
22 data += JSON.stringify(chrome.sync.notifications, null, 2);
29 data += JSON.stringify(chrome.sync.log.entries, null, 2);
71 fieldVal = JSON.stringify(node[field]);
121 var aboutInfo = JSON.stringify(chrome.sync.aboutInfo, null, 2);
/external/chromium_org/chrome/browser/resources/google_now/
Dcards.js124 JSON.stringify(receivedNotification));
194 console.log('cardManager.update ' + JSON.stringify(combinedCard));
247 JSON.parse(JSON.stringify(
324 console.log('cardManager.onAlarm ' + JSON.stringify(alarm));
333 console.log('cardManager.onAlarm.get ' + JSON.stringify(items));
Dbackground.js306 console.log('showNotificationCards ' + JSON.stringify(cards));
310 JSON.stringify(notifications));
433 JSON.stringify(notificationGroups));
471 'parseAndShowNotificationCards-get ' + JSON.stringify(items));
573 ', groupNames=' + JSON.stringify(groupNames));
645 console.log('requestNotificationCards ' + JSON.stringify(position));
650 JSON.stringify(items));
717 console.log('updateNotificationsCards ' + JSON.stringify(position) +
750 ', dismissalData=' + JSON.stringify(dismissalData));
802 JSON.stringify(items));
[all …]
/external/chromium_org/chrome/common/extensions/docs/examples/api/contextMenus/event_page/
Dsample.js12 console.log(JSON.stringify(info));
19 console.log("info: " + JSON.stringify(info));
20 console.log("tab: " + JSON.stringify(tab));
/external/chromium/chrome/common/extensions/docs/examples/api/contextMenus/basic/
Dsample.js8 console.log("info: " + JSON.stringify(info));
9 console.log("tab: " + JSON.stringify(tab));
48 console.log(JSON.stringify(info));

12345678910>>...12