recognize column number in choose by name popups (IDEA-55616)

This commit is contained in:
peter
2013-11-03 20:54:48 +01:00
parent e0124d958d
commit e99b7752b1
2 changed files with 8 additions and 1 deletions
@@ -167,6 +167,13 @@ class Intf {
assert getPopupElements(new GotoSymbolModel2(project), 'bar.goo.zzzZzz') == [method]
}
public void "test line and column suffix"() {
def c = myFixture.addClass("package foo; class Bar {}")
assert getPopupElements(new GotoClassModel2(project), 'Bar') == [c]
assert getPopupElements(new GotoClassModel2(project), 'Bar:2') == [c]
assert getPopupElements(new GotoClassModel2(project), 'Bar:2:3') == [c]
}
private List<Object> getPopupElements(ChooseByNameModel model, String text) {
return getPopupElements(createPopup(model), text)
}