mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
a couple of tests fixed to avoid assertion of document modification outside command
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.daemon
|
||||
|
||||
import com.intellij.openapi.application.ApplicationManager
|
||||
import com.intellij.openapi.command.WriteCommandAction
|
||||
import com.intellij.testFramework.fixtures.JavaCodeInsightFixtureTestCase
|
||||
/**
|
||||
* @author peter
|
||||
@@ -54,7 +54,7 @@ import java.lang.reflect.Modifier;
|
||||
myFixture.type(' ')
|
||||
assert myFixture.doHighlighting().size() > 0
|
||||
|
||||
ApplicationManager.application.runWriteAction {
|
||||
WriteCommandAction.runWriteCommandAction {
|
||||
myFixture.editor.document.insertString(myFixture.editor.caretModel.offset, caption)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user