Lines Matching refs:mirror
34 var mirror = debug.MakeMirror(f).script();
36 var json = JSON.stringify(serializer.serializeValue(mirror));
39 assertTrue(mirror instanceof debug.Mirror);
40 assertFalse(mirror instanceof debug.ValueMirror);
41 assertTrue(mirror instanceof debug.ScriptMirror);
44 assertTrue(mirror.isScript());
45 assertEquals('script', mirror.type());
46 var name = mirror.name();
52 assertEquals(0, mirror.lineOffset());
53 assertEquals(0, mirror.columnOffset());
55 assertEquals(file_lines, mirror.lineCount());
57 assertEquals(type, mirror.scriptType());
58 assertEquals(compilation_type, mirror.compilationType(), "compilation type");
60 assertEquals(source, mirror.source());
63 assertEquals(eval_from_line, mirror.evalFromLocation().line);
92 var mirror = debug.MakeMirror(eval('(function(){\n 1;\n})')).script(); variable
93 assertEquals('(function(){\n', mirror.sourceSlice(0, 1).sourceText());
94 assertEquals(' 1;\n', mirror.sourceSlice(1, 2).sourceText());
95 assertEquals('})', mirror.sourceSlice(2, 3).sourceText());
96 assertEquals('(function(){\n 1;\n', mirror.sourceSlice(0, 2).sourceText());
97 assertEquals(' 1;\n})', mirror.sourceSlice(1, 3).sourceText());
98 assertEquals('(function(){\n 1;\n})', mirror.sourceSlice(0, 3).sourceText());