Lines Matching full:mirror
29 // Test the mirror object for functions.
44 // Create mirror and JSON representation.
45 var mirror = debug.MakeMirror(f);
47 var json = JSON.stringify(serializer.serializeValue(mirror));
51 // Check the mirror hierachy.
52 assertTrue(mirror instanceof debug.Mirror);
53 assertTrue(mirror instanceof debug.ValueMirror);
54 assertTrue(mirror instanceof debug.ObjectMirror);
55 assertTrue(mirror instanceof debug.FunctionMirror);
57 // Check the mirror properties.
58 assertTrue(mirror.isFunction());
59 assertEquals('function', mirror.type());
60 assertFalse(mirror.isPrimitive());
61 assertEquals("Function", mirror.className());
62 assertEquals(f.name, mirror.name());
63 assertTrue(mirror.resolved());
64 assertEquals(f.toString(), mirror.source());
65 assertTrue(mirror.constructorFunction() instanceof debug.ObjectMirror);
66 assertTrue(mirror.protoObject() instanceof debug.Mirror);
67 assertTrue(mirror.prototypeObject() instanceof debug.Mirror);
70 assertEquals(f.toString(), mirror.toText());