mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
minor, test added
This commit is contained in:
@@ -109,6 +109,18 @@ public class JavaFormatterTest extends AbstractJavaFormatterTest {
|
||||
"}"
|
||||
);
|
||||
}
|
||||
|
||||
public void test_format_only_selected_range() {
|
||||
myTextRange = new TextRange(18, 19);
|
||||
doTextTest(
|
||||
"public class X {\n" +
|
||||
" public int a = 2;\n" +
|
||||
"}",
|
||||
"public class X {\n" +
|
||||
" public int a = 2;\n" +
|
||||
"}"
|
||||
);
|
||||
}
|
||||
|
||||
public void testNew() throws Exception {
|
||||
final CommonCodeStyleSettings settings = getSettings();
|
||||
|
||||
Reference in New Issue
Block a user