Home | History | Annotate | Download | only in mjsunit

Lines Matching full:mirror

29 // Test the mirror object for string values
31 const kMaxProtocolStringLength = 80; // Constant from mirror-delay.js
34 // Create mirror and JSON representation.
35 var mirror = debug.MakeMirror(s);
37 var json = JSON.stringify(serializer.serializeValue(mirror));
39 // Check the mirror hierachy.
40 assertTrue(mirror instanceof debug.Mirror);
41 assertTrue(mirror instanceof debug.ValueMirror);
42 assertTrue(mirror instanceof debug.StringMirror);
44 // Check the mirror properties.
45 assertTrue(mirror.isString());
46 assertEquals('string', mirror.type());
47 assertTrue(mirror.isPrimitive());
51 assertEquals(s, mirror.toText());
54 mirror.toText().substring(0, kMaxProtocolStringLength));