mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-81062 During typing of Live Template prefix top element at lookup must be selected.
This commit is contained in:
@@ -310,9 +310,14 @@ public class LiveTemplateTest extends LightCodeInsightFixtureTestCase {
|
||||
|
||||
myFixture.type('it')
|
||||
assert myFixture.lookupElementStrings[0].startsWith('it')
|
||||
assert LookupManager.getInstance(project).activeLookup.currentItem == myFixture.getLookupElements()[0]
|
||||
|
||||
myFixture.type('e')
|
||||
assert myFixture.lookupElementStrings[0].startsWith('ite')
|
||||
assert LookupManager.getInstance(project).activeLookup.currentItem == myFixture.getLookupElements()[0]
|
||||
LookupManager.getInstance(project).hideActiveLookup()
|
||||
|
||||
myFixture.type('\b')
|
||||
myFixture.type('\b\b')
|
||||
new ListTemplatesHandler().invoke(project, editor, myFixture.file);
|
||||
assert myFixture.lookupElementStrings.containsAll(['iter', 'itco'])
|
||||
LookupManager.getInstance(project).hideActiveLookup()
|
||||
|
||||
Reference in New Issue
Block a user