Lines Matching full:json
44 // Create mirror and JSON representation.
47 var json = JSON.stringify(serializer.serializeValue(mirror));
49 JSON.stringify(serializer.serializeReferencedObjects()));
91 // Parse JSON representation and check.
92 var fromJSON = eval('(' + json + ')');
93 assertEquals('object', fromJSON.type, 'Unexpected mirror type in JSON');
94 assertEquals(cls_name, fromJSON.className, 'Unexpected mirror class name in JSON');
95 assertEquals(mirror.constructorFunction().handle(), fromJSON.constructorFunction.ref, 'Unexpected constructor function handle in JSON');
96 assertEquals('function', refs.lookup(fromJSON.constructorFunction.ref).type, 'Unexpected constructor function type in JSON');
97 assertEquals(ctor_name, refs.lookup(fromJSON.constructorFunction.ref).name, 'Unexpected constructor function name in JSON');
98 assertEquals(mirror.protoObject().handle(), fromJSON.protoObject.ref, 'Unexpected proto object handle in JSON');
99 assertEquals(mirror.protoObject().type(), refs.lookup(fromJSON.protoObject.ref).type, 'Unexpected proto object type in JSON');
100 assertEquals(mirror.prototypeObject().handle(), fromJSON.prototypeObject.ref, 'Unexpected prototype object handle in JSON');
101 assertEquals(mirror.prototypeObject().type(), refs.lookup(fromJSON.prototypeObject.ref).type, 'Unexpected prototype object type in JSON');
102 assertEquals(void 0, fromJSON.namedInterceptor, 'No named interceptor expected in JSON');
103 assertEquals(void 0, fromJSON.indexedInterceptor, 'No indexed interceptor expected in JSON');
106 assertEquals(names.length, fromJSON.properties.length, 'Some properties missing in JSON');
151 assertTrue(found, '"' + name + '" not found (' + json + ')');