mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
IDEA-169972 Smart Enter before else-if splits that else-if
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class Foo {
|
||||
{
|
||||
if (a) <caret>
|
||||
else if (elsecond) {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Foo {
|
||||
{
|
||||
if (a) {
|
||||
<caret>
|
||||
} else if (elsecond) {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -123,6 +123,8 @@ public class CompleteStatementTest extends EditorActionTestCase {
|
||||
|
||||
public void testElseIf() throws Exception { doTest(); }
|
||||
|
||||
public void testBlockBeforeElseIf() { doTest(); }
|
||||
|
||||
public void testIncompleteElseIf() throws Exception { doTest(); }
|
||||
|
||||
public void testField() throws Exception { doTest(); }
|
||||
|
||||
Reference in New Issue
Block a user