IDEA-65434 Ctrl+Shift+Enter bug in conditional blocks

Corrected situation when we complete statement with empty code block and code style is set to keep simple instructions in one line
This commit is contained in:
Denis Zhdanov
2011-02-18 12:03:12 +03:00
parent 798430dd63
commit 5fe8f15981
5 changed files with 40 additions and 12 deletions
@@ -46,7 +46,7 @@ public abstract class EditorActionTestCase extends LightCodeInsightTestCase {
}
/**
* Perform action test using text before and after action perform. Useas <caret> marker where caret should be
* Perform action test using text before and after action perform. Uses <caret> marker where caret should be
* placed when file is loaded in editor and <selection></selection> denoting selection bounds.
* @param fileName name of the file. Mostly used to create proper instance of the PsiFile
* @param textBefore text with markers before action
@@ -68,7 +68,7 @@ public abstract class EditorActionTestCase extends LightCodeInsightTestCase {
}
/**
* Same as doTextTest but texts are retreived from the data files.
* Same as doTextTest but texts are retrieved from the data files.
* @param filePathBefore source file's relative path from %IDEA_INSTALLATION_HOME%/testData/
* @param filePathAfter expected file's relative path from %IDEA_INSTALLATION_HOME%/testData/
* @throws Exception
@@ -78,7 +78,7 @@ public abstract class EditorActionTestCase extends LightCodeInsightTestCase {
}
/**
* Same as doTextTest but texts are retreived from the data files.
* Same as doTextTest but texts are retrieved from the data files.
* @param filePathBefore source file's relative path from %IDEA_INSTALLATION_HOME%/testData/
* @param filePathAfter expected file's relative path from %IDEA_INSTALLATION_HOME%/testData/
* @param ignoreTrailingSpaces true if trailing spaces should be ignored.