summaryrefslogtreecommitdiff
path: root/java/testFramework/src/com/intellij/codeInsight/CodeInsightTestCase.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/testFramework/src/com/intellij/codeInsight/CodeInsightTestCase.java')
-rw-r--r--java/testFramework/src/com/intellij/codeInsight/CodeInsightTestCase.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/testFramework/src/com/intellij/codeInsight/CodeInsightTestCase.java b/java/testFramework/src/com/intellij/codeInsight/CodeInsightTestCase.java
index 6ecec97f7fe7..631738835371 100644
--- a/java/testFramework/src/com/intellij/codeInsight/CodeInsightTestCase.java
+++ b/java/testFramework/src/com/intellij/codeInsight/CodeInsightTestCase.java
@@ -77,6 +77,8 @@ public abstract class CodeInsightTestCase extends PsiTestCase {
Editor editor = instance.openTextEditor(new OpenFileDescriptor(myProject, file, 0), false);
((EditorImpl)editor).setCaretActive();
+ PsiDocumentManager.getInstance(getProject()).commitAllDocuments();
+
return editor;
}