Lines Matching refs:properties
69 var properties = mirror.properties();
70 assertEquals(names.length, properties.length);
71 for (var i = 0; i < properties.length; i++) {
72 assertTrue(properties[i] instanceof debug.Mirror, 'Unexpected mirror hierarchy');
73 assertTrue(properties[i] instanceof debug.PropertyMirror, 'Unexpected mirror hierarchy');
74 assertEquals('property', properties[i].type(), 'Unexpected mirror type');
75 assertEquals(names[i], properties[i].name(), 'Unexpected property name');
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');
128 …assertEquals(properties[i].propertyType(), fromJSON.properties[i].propertyType, 'Unexpected serial…
131 if (properties[i].attributes() != debug.PropertyAttribute.None) {
132 …assertEquals(properties[i].attributes(), fromJSON.properties[i].attributes, 'Unexpected serialized…
134 …assertTrue(typeof(fromJSON.properties[i].attributes) === 'undefined', 'Unexpected serialized attri…
138 var o = refs.lookup(fromJSON.properties[i].ref);
141 …assertEquals(properties[i].value().type(), o.type, 'Unexpected serialized property type for ' + na…
142 if (properties[i].value().isPrimitive()) {
143 if (properties[i].value().type() == "null" ||
144 properties[i].value().type() == "undefined") {
147 } else if (properties[i].value().type() == "number" &&
148 !isFinite(properties[i].value().value())) {
149 assertEquals(String(properties[i].value().value()), o.value,
152 …assertEquals(properties[i].value().value(), o.value, 'Unexpected serialized property value for ' +…
154 } else if (properties[i].value().isFunction()) {
155 …assertEquals(properties[i].value().source(), o.source, 'Unexpected serialized property value for '…