/external/chromium_org/v8/test/mjsunit/regress/ |
regress-json-stringify-gc.js | 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); variable 11 assertEquals("[]", json);
|
regress-1015.js | 45 var ja = JSON.parse('[1,2,3,4]'); 46 var jo = JSON.parse('{"bar": 10, "foo": 20}') 47 var jop = JSON.parse('{"bar": 10, "__proto__": { }, "foo": 20}') 57 var ja = JSON.parse('[1,2,3,4]'); 58 var jo = JSON.parse('{"bar": 10, "foo": 20}') 59 var jop = JSON.parse('{"bar": 10, "__proto__": { }, "foo": 20}')
|
regress-2570.js | 28 var o = ["\u56e7", // Switch JSON stringifier to two-byte mode. 31 assertEquals('["\u56e7","\u00e6"]', JSON.stringify(o)); 32 assertEquals('["\u56e7","\u00e6"]', JSON.stringify(o, null, 0));
|
regress-cnlt-elements.js | 30 var a = JSON.parse('{"b":1,"c":2,"d":3,"e":4}'); 31 var b = JSON.parse('{"12040200":1, "a":2, "b":2}'); 32 var c = JSON.parse('{"24050300":1}');
|
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/news/javascript/ |
options.js | 159 var topics = JSON.parse(window.localStorage.getItem('topics')); 183 var keywords = JSON.parse(window.localStorage.getItem('keywords')); 246 var keywords = JSON.parse(window.localStorage.getItem('keywords')); 252 window.localStorage.setItem('keywords', JSON.stringify(keywords)); 254 window.localStorage.setItem('keywords', JSON.stringify(tempCusTopics)); 261 window.localStorage.setItem('topics', JSON.stringify(topicArr)); 297 var keywords = JSON.parse(window.localStorage.getItem('keywords') || "[]"); 375 var keywords = JSON.parse(window.localStorage.getItem('keywords')); 383 window.localStorage.setItem('keywords', JSON.stringify(keywords));
|
/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}), "*");
|
/external/chromium_org/v8/test/mjsunit/ |
mirror-unresolved-function.js | 45 var json = JSON.stringify(serializer.serializeValue(mirror)); variable 47 JSON.stringify(serializer.serializeReferencedObjects())); 68 // Parse JSON representation of unresolved functions and check. 69 var fromJSON = eval('(' + json + ')'); 70 assertEquals('function', fromJSON.type, 'Unexpected mirror type in JSON'); 71 assertEquals('Function', fromJSON.className, 'Unexpected mirror class name in JSON'); 72 assertEquals(mirror.constructorFunction().handle(), fromJSON.constructorFunction.ref, 'Unexpected constructor function handle in JSON'); 73 assertEquals('undefined', refs.lookup(fromJSON.constructorFunction.ref).type, 'Unexpected constructor function type in JSON'); 74 assertEquals(mirror.protoObject().handle(), fromJSON.protoObject.ref, 'Unexpected proto object handle in JSON'); [all...] |
mirror-array.js | 44 // Create mirror and JSON representation. 47 var json = JSON.stringify(serializer.serializeValue(mirror)); 49 JSON.stringify(serializer.serializeReferencedObjects())); 75 // Parse JSON representation and check. 76 var fromJSON = eval('(' + json + ')'); 77 assertEquals('object', fromJSON.type, 'Unexpected mirror type in JSON'); 78 assertEquals('Array', fromJSON.className, 'Unexpected mirror class name in JSON'); 79 assertEquals(mirror.constructorFunction().handle(), fromJSON.constructorFunction.ref, 'Unexpected constructor function handle in JSON'); 80 assertEquals('function', refs.lookup(fromJSON.constructorFunction.ref).type, 'Unexpected constructor function type in JSON'); [all...] |
/external/chromium_org/third_party/simplejson/ |
__init__.py | 1 r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of 7 version of the :mod:`json` library contained in Python 2.6, but maintains 14 >>> import simplejson as json 15 >>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}]) 17 >>> print json.dumps("\"foo\bar") 19 >>> print json.dumps(u'\u1234') 21 >>> print json.dumps('\\') 23 >>> print json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True) 27 >>> json.dump(['streaming API'], io [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/json/ |
__init__.py | 1 r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of 5 :mod:`json` exposes an API familiar to users of the standard library 7 version of the :mod:`json` library contained in Python 2.6, but maintains 14 >>> import json 15 >>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}]) 17 >>> print json.dumps("\"foo\bar") 19 >>> print json.dumps(u'\u1234') 21 >>> print json.dumps('\\') 23 >>> print json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/json/ |
__init__.py | 1 r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of 5 :mod:`json` exposes an API familiar to users of the standard library 7 version of the :mod:`json` library contained in Python 2.6, but maintains 14 >>> import json 15 >>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}]) 17 >>> print json.dumps("\"foo\bar") 19 >>> print json.dumps(u'\u1234') 21 >>> print json.dumps('\\') 23 >>> print json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True [all...] |
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/ttsdemo/ |
ttsdemo.js | 38 voiceInfo.innerText = JSON.stringify(voiceArray[i], null, 2); 69 console.log(utteranceIndex + ': ' + JSON.stringify(options)); 71 console.log(utteranceIndex + ': ' + JSON.stringify(event));
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/notifications/ |
background.js | 32 if (JSON.parse(localStorage.isActivated)) { show(); } 40 JSON.parse(localStorage.isActivated) &&
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/common/ |
WebInspector.js | 39 var settings = JSON.parse(window.decodeURI(settingsParam));
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/devtools/network/chrome-firephp/ |
background.js | 6 var args = JSON.parse(unescape(json_args));
|
/external/chromium_org/native_client_sdk/src/build_tools/ |
buildbot_run.py | 103 help='JSON properties passed by buildbot. Currently ignored.') 105 help='JSON properties passed by buildbot. Currently ignored.')
|
/external/chromium_org/remoting/webapp/ |
gnubby_auth_handler.js | 45 * @param {Object} response The JSON response with the data to send to the host. 68 * @param {Object} jsonObject The JSON object to send to the gnubbyd extension. 85 * otherwise it will be the JSON response object. 86 * @param {Object} jsonObject The JSON object to send to the gnubbyd extension.
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/network/ |
RequestJSONView.js | 41 this.element.classList.add("json"); 52 // Trim while(1), for(;;), weird numbers, etc. We need JSON start. 60 return new WebInspector.ParsedJSON(JSON.parse(text), prefix, ""); 83 return new WebInspector.ParsedJSON(JSON.parse(text), prefix, suffix);
|
/external/chromium_org/tools/telemetry/telemetry/web_components/ |
web_component_bootstrap.js | 12 data = JSON.parse(componentDataScript.textContent);
|
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/testing/ |
chromevox_unittest_base.js | 62 throw new Error('Expected ' + JSON.stringify(array1) + 63 ', got ' + JSON.stringify(array2)); 68 * Asserts that two objects have the same JSON serialization. 74 throw new Error('Expected ' + JSON.stringify(obj1) + 75 ', got ' + JSON.stringify(obj2));
|
/external/chromium_org/chrome/browser/resources/chromeos/chromevox/speech_rules/ |
math_simple_store.js | 33 * Turns a domain mapping from its JSON representation containing simple strings 75 * @param {Object} mappings JSON representation of mappings from styles and 86 * Makes a speech rule for Unicode characters from its JSON representation. 87 * @param {Object} json JSON object of the speech rules. 89 cvox.MathCompoundStore.prototype.addSymbolRules = function(json) { 90 var key = cvox.MathSimpleStore.parseUnicode_(json['key']); 91 this.defineRules(json['key'], key, json['mappings']); 96 * Makes a speech rule for Unicode characters from its JSON representation [all...] |
/external/chromium_org/v8/test/mjsunit/harmony/ |
proxies-json.js | 32 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/chrome/common/extensions/docs/examples/api/contextMenus/basic/ |
sample.js | 8 console.log("info: " + JSON.stringify(info)); 9 console.log("tab: " + JSON.stringify(tab)); 48 console.log(JSON.stringify(info));
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/contextMenus/event_page/ |
sample.js | 12 console.log(JSON.stringify(info)); 19 console.log("info: " + JSON.stringify(info)); 20 console.log("tab: " + JSON.stringify(tab));
|