mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed testLIPGetAllParentsAfterCodeBlockModification
This commit is contained in:
+2
-2
@@ -1431,7 +1431,7 @@ public class DaemonRespondToChangesTest extends DaemonAnalyzerTestCase {
|
||||
assertEmpty(infos);
|
||||
|
||||
List<PsiElement> allPsi = CollectHighlightsUtil.getElementsInRange(myFile, 0, myFile.getTextLength());
|
||||
assertSameElements(allPsi, visitedElements);
|
||||
assertEquals(new HashSet<>(allPsi), new HashSet<>(visitedElements));
|
||||
|
||||
// inside code block modification
|
||||
visitedElements.clear();
|
||||
@@ -1444,7 +1444,7 @@ public class DaemonRespondToChangesTest extends DaemonAnalyzerTestCase {
|
||||
PsiMethod method = ((PsiJavaFile)myFile).getClasses()[0].getMethods()[0];
|
||||
List<PsiElement> methodAndParents =
|
||||
CollectHighlightsUtil.getElementsInRange(myFile, method.getTextRange().getStartOffset(), method.getTextRange().getEndOffset(), true);
|
||||
assertSameElements(methodAndParents, visitedElements);
|
||||
assertEquals(new HashSet<>(methodAndParents), new HashSet<>(visitedElements));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user