fix geget problem when a completion restarts which has shown a lookup

This commit is contained in:
peter
2011-08-05 16:12:05 +02:00
parent 02c878f4b3
commit 8f022bd35b
4 changed files with 51 additions and 9 deletions
@@ -700,6 +700,22 @@ class Foo {
assert !lookup
}
public void testAutoRestartAndTypingDuringCopyCommit() {
registerLongCompletionContributor()
myFixture.configureByText("a.java", """ class Foo { { int iteraaa; <caret> } } """)
type 'ite'
assert !('iter' in myFixture.lookupElementStrings)
myFixture.type 'r'
joinCommit()
myFixture.type 'a'
joinAutopopup()
joinCompletion()
myFixture.type '\n'
myFixture.checkResult(" class Foo { { int iteraaa; iteraaa<caret> } } ")
assert !lookup
}
private void joinSomething(int degree) {
if (degree == 0) return
joinAlarm()