mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-240930 renamed method to more appropriate one
IDEA-CR-62605 GitOrigin-RevId: 5ba178be5968a9fa7a87128932964575a088fbc3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2601a01c7e
commit
45149087b1
+1
-1
@@ -23,7 +23,7 @@ public class BraceHighlightingHandlerBlockCaretTest extends LightPlatformCodeIns
|
||||
configureByFile(myFileSuffix);
|
||||
Editor editor = getEditor();
|
||||
editor.getSettings().setBlockCursor(true);
|
||||
String result = BraceHighlightingHandlerTest.getTextEditorWithHighlightedBraces(getEditor(), getFile());
|
||||
String result = BraceHighlightingHandlerTest.getEditorTextWithHighlightedBraces(getEditor(), getFile());
|
||||
UsefulTestCase.assertSameLinesWithFile(getAnswerFilePath(), result);
|
||||
});
|
||||
}
|
||||
|
||||
+2
-2
@@ -34,7 +34,7 @@ public class BraceHighlightingHandlerTest extends LightPlatformCodeInsightTestCa
|
||||
public void testAction() {
|
||||
runInEdtAndWait(() -> {
|
||||
configureByFile(myFileSuffix);
|
||||
String result = getTextEditorWithHighlightedBraces(getEditor(), getFile());
|
||||
String result = getEditorTextWithHighlightedBraces(getEditor(), getFile());
|
||||
UsefulTestCase.assertSameLinesWithFile(getAnswerFilePath(), result);
|
||||
});
|
||||
}
|
||||
@@ -53,7 +53,7 @@ public class BraceHighlightingHandlerTest extends LightPlatformCodeInsightTestCa
|
||||
/**
|
||||
* @return a text from passed editor with highlighted braces wrapped in {@code <brace></brace>} tags. And {@link <caret>} marker
|
||||
*/
|
||||
public static String getTextEditorWithHighlightedBraces(@NotNull Editor editor, @NotNull PsiFile psiFile) {
|
||||
public static String getEditorTextWithHighlightedBraces(@NotNull Editor editor, @NotNull PsiFile psiFile) {
|
||||
Editor hostEditor = editor instanceof EditorWindow ? ((EditorWindow)editor).getDelegate() : editor;
|
||||
List<Pair<Integer, String>> markers = new ArrayList<>();
|
||||
Alarm alarm = new Alarm();
|
||||
|
||||
Reference in New Issue
Block a user