IDEA-69653 Complete Current Statement: Correct completion of 'init' section of 'for' statement

'Space after semicolon' code style property value is preserved during smart completion now
This commit is contained in:
Denis Zhdanov
2011-05-16 12:13:33 +04:00
parent bae2266f33
commit dd5c166257
8 changed files with 93 additions and 7 deletions

View File

@@ -203,6 +203,16 @@ public class CompleteStatementTest extends EditorActionTestCase {
public void testNoUnnecessaryEmptyLineAtCodeBlock() throws Exception { doTest(); }
public void testForStatementGeneration() throws Exception { doTest(); }
public void testSpaceAfterSemicolon() throws Exception {
CodeStyleSettingsManager.getSettings(getProject()).SPACE_AFTER_SEMICOLON = true;
doTest();
}
public void testNoSpaceAfterSemicolon() throws Exception {
CodeStyleSettingsManager.getSettings(getProject()).SPACE_AFTER_SEMICOLON = false;
doTest();
}
private void doTestBracesNextLineStyle() throws Exception {
CodeStyleSettings settings = CodeStyleSettingsManager.getSettings(getProject());