public void disabled_testModifyIndent() throws BadLocationException { int offset1, offset2; AutoEditTester tester = UiReleaseTests.createAutoEditTester(); tester.type("\n\n"); tester.type("class foobar;\n"); tester.type("\n"); offset1 = tester.getCaretOffset(); tester.type("function void foobar();\n"); offset2 = tester.getCaretOffset(); tester.setCaretOffset(offset1); tester.type("\n\n"); tester.setCaretOffset(offset2 + 3); fLog.debug("char @ " + (offset2 + 2) + " = \"" + tester.getChar() + "\""); tester.type("a = 5;\n"); tester.type("endfunction\n\n"); tester.type("endclass\n"); String content = tester.getContent(); String expected = "\n\n" + "class foobar;\n" + "\t\n" + "\tfunction void foobar();\n" + "\t\ta = 5;\n" + "\tendfunction\n" + "\t\n" + "endclass\n"; fLog.debug("content=\n" + content); assertEquals("Check for expected indent", expected, content); }