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:
parent
51f0803459
commit
ac998c44d7
1 changed files with 9 additions and 0 deletions
|
@ -509,6 +509,15 @@ public class CAutoIndentTest extends TestCase {
|
|||
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();
|
||||
CCorePlugin.setOptions(new HashMap(whitesmiths.getMap()));
|
||||
|
|
Loading…
Add table
Reference in a new issue