Lines Matching refs:fromJSON
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');
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.properties[i].name == 'length') {
90 assertEquals('number', refs.lookup(fromJSON.properties[i].ref).type, "Unexpected type of the length property");
91 assertEquals(a.length, refs.lookup(fromJSON.properties[i].ref).value, "Length mismatch in parsed JSON");
93 var index = parseInt(fromJSON.properties[i].name);
101 assertEquals(indexedProperties[index].value().type(), refs.lookup(fromJSON.properties[i].ref).type, 'Unexpected serialized type');
111 for (var j = 0; j < fromJSON.properties.length; j++) {
112 if (names[i] == fromJSON.properties[j].name) {