mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
correct the test
This commit is contained in:
+2
-4
@@ -587,9 +587,7 @@ public interface Test {
|
||||
def wca = new WriteCommandAction.Simple(getProject(), new PsiFile[0]) {
|
||||
@Override
|
||||
protected void run() {
|
||||
for (i in 1..10) {
|
||||
EditorActionManager.instance.getTypedAction().handler.execute(another, (char) 'x', DataManager.instance.dataContext)
|
||||
}
|
||||
EditorActionManager.instance.getTypedAction().handler.execute(another, (char) 'x', DataManager.instance.dataContext)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -599,7 +597,7 @@ public interface Test {
|
||||
def file = myFixture.addFileToProject("b.java", "")
|
||||
another = EditorFactory.instance.createEditor(file.viewProvider.document, project)
|
||||
wca.execute()
|
||||
assert another.document.text.startsWith('xxxx')
|
||||
assert 'x' == another.document.text
|
||||
}
|
||||
joinAlarm()
|
||||
joinCompletion()
|
||||
|
||||
Reference in New Issue
Block a user