prefix matching should depend on the actual prefix in the editor, not on the one that the completion was invoked with (IDEA-69525)

This commit is contained in:
peter
2011-05-12 18:39:59 +02:00
parent 8301cbedae
commit 7d67470070
6 changed files with 97 additions and 31 deletions

View File

@@ -774,5 +774,13 @@ public class UTest {
assert myFixture.lookupElementStrings == ['new', 'nextWord']
}
public void testUpdatePrefixMatchingOnTyping() {
myFixture.addClass("class CertificateEncodingException {}")
myFixture.addClass("class CertificateException {}")
myFixture.configureByText 'a.java', 'class Foo {<caret>}'
type 'CertificateExce'
assert myFixture.lookupElementStrings == ['CertificateException', 'CertificateEncodingException']
}
}