Lines Matching refs:mirror
29 // Test the mirror object for regular expression values
55 // Create mirror and JSON representation.
56 var mirror = debug.MakeMirror(r);
58 var json = JSON.stringify(serializer.serializeValue(mirror));
62 // Check the mirror hierachy.
63 assertTrue(mirror instanceof debug.Mirror);
64 assertTrue(mirror instanceof debug.ValueMirror);
65 assertTrue(mirror instanceof debug.ObjectMirror);
66 assertTrue(mirror instanceof debug.RegExpMirror);
68 // Check the mirror properties.
69 assertTrue(mirror.isRegExp());
70 assertEquals('regexp', mirror.type());
71 assertFalse(mirror.isPrimitive());
74 mirror.property(p).attributes(),
79 assertEquals('/' + r.source + '/', mirror.toText());
91 assertEquals(mirror.property(p).propertyType(),
94 assertEquals(mirror.property(p).value().handle(),
97 assertEquals(mirror.property(p).value().value(),