mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
use up-to-date psi in CodeInsightTestCase.checkResultByFile
This commit is contained in:
@@ -480,8 +480,8 @@ public abstract class CodeInsightTestCase extends PsiTestCase {
|
||||
|
||||
if (myEditor instanceof EditorWindow) {
|
||||
myEditor = ((EditorWindow)myEditor).getDelegate();
|
||||
myFile = PsiDocumentManager.getInstance(getProject()).getPsiFile(myEditor.getDocument());
|
||||
}
|
||||
myFile = PsiDocumentManager.getInstance(getProject()).getPsiFile(myEditor.getDocument());
|
||||
|
||||
String text = myFile.getText();
|
||||
text = StringUtil.convertLineSeparators(text);
|
||||
|
||||
Reference in New Issue
Block a user