Lines Matching refs:fromJSON
99 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 …
103 …assertEquals('function', refs.lookup(fromJSON.constructorFunction.ref).type, 'Unexpected construct…
104 …assertEquals(ctor_name, refs.lookup(fromJSON.constructorFunction.ref).name, 'Unexpected constructo…
105 …assertEquals(mirror.protoObject().handle(), fromJSON.protoObject.ref, 'Unexpected proto object han…
106 …assertEquals(mirror.protoObject().type(), refs.lookup(fromJSON.protoObject.ref).type, 'Unexpected …
107 …assertEquals(mirror.prototypeObject().handle(), fromJSON.prototypeObject.ref, 'Unexpected prototyp…
108 …assertEquals(mirror.prototypeObject().type(), refs.lookup(fromJSON.prototypeObject.ref).type, 'Une…
109 assertEquals(void 0, fromJSON.namedInterceptor, 'No named interceptor expected in JSON');
110 assertEquals(void 0, fromJSON.indexedInterceptor, 'No indexed interceptor expected in JSON');
113 assertEquals(names.length, fromJSON.properties.length, 'Some properties missing in JSON');
120 for (var i = 0; i < fromJSON.properties.length; i++) {
121 if (fromJSON.properties[i].name == name) {
123 …assertEquals(properties[i].value().handle(), fromJSON.properties[i].ref, 'Unexpected serialized ha…
126 … assertEquals(properties[i].name(), fromJSON.properties[i].name, 'Unexpected serialized name');
130 …assertEquals(properties[i].propertyType(), fromJSON.properties[i].propertyType, 'Unexpected serial…
132 …assertTrue(typeof(fromJSON.properties[i].propertyType) === 'undefined', 'Unexpected serialized pro…
137 …assertEquals(properties[i].attributes(), fromJSON.properties[i].attributes, 'Unexpected serialized…
139 …assertTrue(typeof(fromJSON.properties[i].attributes) === 'undefined', 'Unexpected serialized attri…
143 var o = refs.lookup(fromJSON.properties[i].ref);