From 02f113c68e868a073c7d360c7bc19586c3b03c84 Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 8 Mar 2011 18:08:48 +0100 Subject: [PATCH] correct the test --- .../codeInsight/completion/JavaAutoPopupTest.groovy | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/java/java-tests/testSrc/com/intellij/codeInsight/completion/JavaAutoPopupTest.groovy b/java/java-tests/testSrc/com/intellij/codeInsight/completion/JavaAutoPopupTest.groovy index 2b864ed016bc..d2c1027ab325 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/completion/JavaAutoPopupTest.groovy +++ b/java/java-tests/testSrc/com/intellij/codeInsight/completion/JavaAutoPopupTest.groovy @@ -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()