Searched refs:fromJSON (Results 1 - 25 of 25) sorted by relevance

/external/v8/test/mjsunit/
H A Dmirror-number.js51 var fromJSON = eval('(' + json + ')');
52 assertEquals('number', fromJSON.type);
54 assertEquals(n, fromJSON.value);
57 assertTrue(typeof fromJSON.value == 'string');
59 assertEquals('Infinity', fromJSON.value);
61 assertEquals('-Infinity', fromJSON.value);
63 assertEquals('NaN', fromJSON.value);
H A Dmirror-unresolved-function.js69 var fromJSON = eval('(' + json + ')'); variable
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');
75 assertEquals('undefined', refs.lookup(fromJSON.protoObject.ref).type, 'Unexpected proto object type in JSON');
76 assertEquals(mirror.prototypeObject().handle(), fromJSON.prototypeObject.ref, 'Unexpected prototype object handle in JSON');
77 assertEquals('undefined', refs.lookup(fromJSON.prototypeObject.ref).type, 'Unexpected prototype object type in JSON');
78 assertFalse(fromJSON
[all...]
H A Dmirror-function.js73 var fromJSON = eval('(' + json + ')');
74 assertEquals('function', fromJSON.type);
75 assertEquals('Function', fromJSON.className);
76 assertEquals('function', refs.lookup(fromJSON.constructorFunction.ref).type);
77 assertEquals('Function', refs.lookup(fromJSON.constructorFunction.ref).name);
78 assertTrue(fromJSON.resolved);
79 assertEquals(f.name, fromJSON.name);
80 assertEquals(f.toString(), fromJSON.source);
83 assertEquals(f.toString(), fromJSON.text);
H A Dmirror-boolean.js51 var fromJSON = eval('(' + json + ')');
52 assertEquals('boolean', fromJSON.type, json);
53 assertEquals(b, fromJSON.value, json);
H A Dmirror-array.js76 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');
81 assertEquals('Array', refs.lookup(fromJSON.constructorFunction.ref).name, 'Unexpected constructor function name in JSON');
82 assertEquals(void 0, fromJSON.namedInterceptor, 'No named interceptor expected in JSON');
83 assertEquals(void 0, fromJSON.indexedInterceptor, 'No indexed interceptor expected in JSON');
87 for (var i = 0; i < fromJSON.properties.length; i++) {
88 if (fromJSON
[all...]
H A Dmirror-null.js49 var fromJSON = eval('(' + json + ')'); variable
50 assertEquals('null', fromJSON.type);
H A Dmirror-script.js67 var fromJSON = JSON.parse(json);
68 assertEquals('script', fromJSON.type);
69 name = fromJSON.name;
75 assertEquals(0, fromJSON.lineOffset);
76 assertEquals(0, fromJSON.columnOffset);
78 assertEquals(file_lines, fromJSON.lineCount);
80 assertEquals(type, fromJSON.scriptType);
81 assertEquals(compilation_type, fromJSON.compilationType);
H A Dmirror-undefined.js49 var fromJSON = eval('(' + json + ')'); variable
50 assertEquals('undefined', fromJSON.type);
H A Dmirror-string.js58 var fromJSON = eval('(' + json + ')');
59 assertEquals('string', fromJSON.type);
61 assertEquals(s, fromJSON.value);
64 fromJSON.value.substring(0, kMaxProtocolStringLength));
65 assertEquals(fromJSON.fromIndex, 0);
66 assertEquals(fromJSON.toIndex, kMaxProtocolStringLength);
H A Dmirror-regexp.js82 var fromJSON = eval('(' + json + ')');
83 assertEquals('regexp', fromJSON.type);
84 assertEquals('RegExp', fromJSON.className);
86 for (var i = 0; i < fromJSON.properties.length; i++) {
87 if (fromJSON.properties[i].name == p) {
89 fromJSON.properties[i].attributes,
92 fromJSON.properties[i].propertyType,
95 fromJSON.properties[i].ref,
98 refs.lookup(fromJSON.properties[i].ref).value,
H A Dmirror-error.js64 var fromJSON = eval('(' + json + ')');
65 assertEquals('error', fromJSON.type);
66 assertEquals('Error', fromJSON.className);
69 for (var i in fromJSON.properties) {
70 var p = fromJSON.properties[i];
81 assertEquals(fromJSON.text, e.toString(), 'toString');
H A Dmirror-date.js52 var fromJSON = eval('(' + json + ')');
53 assertEquals('object', fromJSON.type);
54 assertEquals('Date', fromJSON.className);
55 assertEquals(iso8601, fromJSON.value);
H A Dmirror-object.js99 var fromJSON = eval('(' + json + ')');
100 assertEquals('object', fromJSON.type, 'Unexpected mirror type in JSON');
101 assertEquals(cls_name, fromJSON.className, 'Unexpected mirror class name in JSON');
102 assertEquals(mirror.constructorFunction().handle(), fromJSON.constructorFunction.ref, 'Unexpected constructor function handle in JSON');
103 assertEquals('function', refs.lookup(fromJSON.constructorFunction.ref).type, 'Unexpected constructor function type in JSON');
104 assertEquals(ctor_name, refs.lookup(fromJSON.constructorFunction.ref).name, 'Unexpected constructor function name in JSON');
105 assertEquals(mirror.protoObject().handle(), fromJSON.protoObject.ref, 'Unexpected proto object handle in JSON');
106 assertEquals(mirror.protoObject().type(), refs.lookup(fromJSON.protoObject.ref).type, 'Unexpected proto object type in JSON');
107 assertEquals(mirror.prototypeObject().handle(), fromJSON.prototypeObject.ref, 'Unexpected prototype object handle in JSON');
108 assertEquals(mirror.prototypeObject().type(), refs.lookup(fromJSON
[all...]
/external/jetty/src/java/org/eclipse/jetty/util/ajax/
H A DJSONDateConvertor.java36 * If fromJSON is true in the constructor, the JSON generated will
38 * If fromJSON is false, then only the string value of the date is generated.
53 public JSONDateConvertor(boolean fromJSON) argument
55 this(DateCache.DEFAULT_FORMAT,TimeZone.getTimeZone("GMT"),fromJSON);
58 public JSONDateConvertor(String format,TimeZone zone,boolean fromJSON) argument
62 _fromJSON=fromJSON;
67 public JSONDateConvertor(String format, TimeZone zone, boolean fromJSON, Locale locale) argument
71 _fromJSON = fromJSON;
76 public Object fromJSON(Map map) method in class:JSONDateConvertor
H A DJSONObjectConvertor.java48 public JSONObjectConvertor(boolean fromJSON) argument
50 _fromJSON=fromJSON;
55 * @param fromJSON
58 public JSONObjectConvertor(boolean fromJSON,String[] excluded) argument
60 _fromJSON=fromJSON;
65 public Object fromJSON(Map map) method in class:JSONObjectConvertor
H A DJSONPojoConvertorFactory.java45 * @param fromJSON If true, the class name of the objects is included
49 public JSONPojoConvertorFactory(JSON json,boolean fromJSON) argument
56 _fromJson=fromJSON;
83 public Object fromJSON(Map object) method in class:JSONPojoConvertorFactory
105 return convertor.fromJSON(object);
H A DJSONEnumConvertor.java32 * If fromJSON is true in the constructor, the JSON generated will
34 * If fromJSON is false, then only the string value of the enum is generated.
60 public JSONEnumConvertor(boolean fromJSON) argument
62 _fromJSON=fromJSON;
65 public Object fromJSON(Map map) method in class:JSONEnumConvertor
H A DJSONCollectionConvertor.java35 public Object fromJSON(Map object) method in class:JSONCollectionConvertor
H A DJSONPojoConvertor.java39 * - returns the actual object from Convertor.fromJSON (JSONObjectConverter returns a Map)
90 * @param fromJSON If true, add a class field to the JSON
92 public JSONPojoConvertor(Class<?> pojoClass, Set<String> excluded, boolean fromJSON) argument
96 _fromJSON = fromJSON;
102 * @param fromJSON If true, add a class field to the JSON
104 public JSONPojoConvertor(Class<?> pojoClass, boolean fromJSON) argument
106 this(pojoClass, (Set<String>)null, fromJSON);
179 public Object fromJSON(Map object) method in class:JSONPojoConvertor
H A DJSON.java256 public Object fromJSON(String json) method in class:JSON
369 public void fromJSON(Map object)
607 conv.fromJSON(map);
619 return convertor.fromJSON(map);
925 return c.fromJSON(map);
1568 public void fromJSON(Map object); method in interface:JSON.Convertible
1586 public Object fromJSON(Map object); method in interface:JSON.Convertor
/external/v8/test/mjsunit/es6/
H A Dmirror-symbols.js29 var fromJSON = eval('(' + json + ')');
30 assertEquals('symbol', fromJSON.type);
31 assertEquals(description, fromJSON.description);
H A Dmirror-promises.js46 var fromJSON = eval('(' + json + ')');
47 assertEquals('promise', fromJSON.type);
48 assertEquals('Object', fromJSON.className);
49 assertEquals('function', refs.lookup(fromJSON.constructorFunction.ref).type);
50 assertEquals('Promise', refs.lookup(fromJSON.constructorFunction.ref).name);
51 assertEquals(status, fromJSON.status);
52 assertEquals(value, refs.lookup(fromJSON.promiseValue.ref).value);
H A Dmirror-collections.js21 var fromJSON = eval('(' + json + ')');
22 assertEquals('map', fromJSON.type);
39 var fromJSON = eval('(' + json + ')');
40 assertEquals('set', fromJSON.type);
/external/jetty/lib/
H A Djetty-util-6.1.26.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/mortbay/ org/mortbay/util/ org/mortbay/util/ajax/ ...
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
H A Dorg.mortbay.jetty.util_6.1.23.v201004211559.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...

Completed in 277 milliseconds