Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:Mirror

29 // Test the mirror object for boolean values
32 // Create mirror and JSON representation.
33 var mirror = debug.MakeMirror(b);
35 var json = JSON.stringify(serializer.serializeValue(mirror));
37 // Check the mirror hierachy.
38 assertTrue(mirror instanceof debug.Mirror);
39 assertTrue(mirror instanceof debug.ValueMirror);
40 assertTrue(mirror instanceof debug.BooleanMirror);
42 // Check the mirror properties.
43 assertTrue(mirror.isBoolean());
44 assertEquals('boolean', mirror.type());
45 assertTrue(mirror.isPrimitive());
48 assertEquals(b ? 'true' : 'false', mirror.toText());