This commit is contained in:
Alexey Kudravtsev
2014-07-23 14:41:51 +04:00
parent d86ae6c6f0
commit d948e9bd56
@@ -1465,7 +1465,11 @@ public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig
if (file.getFileType().isBinary()) {
return null;
}
return instance.openTextEditor(new OpenFileDescriptor(project, file), false);
Editor editor = instance.openTextEditor(new OpenFileDescriptor(project, file), false);
if (editor != null) {
editor.getCaretModel().moveToOffset(0);
}
return editor;
}
private long collectAndCheckHighlighting(boolean checkWarnings, boolean checkInfos, boolean checkWeakWarnings) throws Exception {