From ac998c44d7086e7c10b28fe4b351898dc159f12f Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Wed, 2 May 2007 13:32:07 +0000 Subject: [PATCH] Add test case for 183814 --- .../org/eclipse/cdt/ui/tests/text/CAutoIndentTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CAutoIndentTest.java b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CAutoIndentTest.java index 699acd61546..ff79b5b9fbd 100644 --- a/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CAutoIndentTest.java +++ b/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CAutoIndentTest.java @@ -508,6 +508,15 @@ public class CAutoIndentTest extends TestCase { tester.type("int i[5]={\n"); //$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 { DefaultCodeFormatterOptions whitesmiths= DefaultCodeFormatterOptions.getWhitesmithsSettings();