[^yole] don't freeze and mark lookup items as preselected when lookup is not shown yet (IDEA-69590, IDEA-69259)

This commit is contained in:
peter
2011-05-12 16:28:48 +02:00
parent c37398c22c
commit 4041c94e80
2 changed files with 15 additions and 8 deletions
@@ -761,7 +761,18 @@ public class Bar {
assert myFixture.lookupElementStrings.containsAll(['private', 'protected'])
}
public void testExactMatchesFirst() {
myFixture.configureByText("a.java", """
public class UTest {
void nextWord() {}
void foo() {
n<caret>
}
}""")
type 'ew'
assert myFixture.lookupElementStrings == ['new', 'nextWord']
}
}