mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
IDEA-71249 Live template name not focused in autocompletion popup is anyway expanded
This commit is contained in:
@@ -819,5 +819,21 @@ public class UTest {
|
||||
assert 'xxxxx.SYSTEM_EXCEPTION' == ((JavaPsiClassReferenceElement) myFixture.lookupElements[2]).qualifiedName
|
||||
}
|
||||
|
||||
public void testTabShouldPreferLookupsToLiveTemplate() {
|
||||
myFixture.configureByText "a.java", """
|
||||
class LiveComplete {
|
||||
public void innerThing() { }
|
||||
public void context() {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
"""
|
||||
type 'inn'
|
||||
assert myFixture.lookupElementStrings == ['inn', 'innerThing']
|
||||
edt { myFixture.performEditorAction(IdeActions.ACTION_EDITOR_MOVE_CARET_DOWN) }
|
||||
type '\t'
|
||||
assert myFixture.file.text.contains("innerThing();")
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user