1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Add test case for 183814

This commit is contained in:
Anton Leherbauer 2007-05-02 13:32:07 +00:00
parent 51f0803459
commit ac998c44d7

View file

@ -509,6 +509,15 @@ public class CAutoIndentTest extends TestCase {
assertEquals("int i[5]={\n\t\t\r\n};", tester.fDoc.get()); //$NON-NLS-1$ assertEquals("int i[5]={\n\t\t\r\n};", tester.fDoc.get()); //$NON-NLS-1$
} }
public void testBracketIndentForConstructorDefinition_Bug183814() throws BadLocationException {
DefaultCodeFormatterOptions whitesmiths= DefaultCodeFormatterOptions.getWhitesmithsSettings();
CCorePlugin.setOptions(new HashMap(whitesmiths.getMap()));
AutoEditTester tester = createAutoEditTester(); //$NON-NLS-1$
tester.type("Foo::Foo()\n{");
assertEquals("Foo::Foo()\n {", tester.fDoc.get());
}
public void testSmartPasteWhitesmiths_Bug180531() throws Exception { public void testSmartPasteWhitesmiths_Bug180531() throws Exception {
DefaultCodeFormatterOptions whitesmiths= DefaultCodeFormatterOptions.getWhitesmithsSettings(); DefaultCodeFormatterOptions whitesmiths= DefaultCodeFormatterOptions.getWhitesmithsSettings();
CCorePlugin.setOptions(new HashMap(whitesmiths.getMap())); CCorePlugin.setOptions(new HashMap(whitesmiths.getMap()));