IDEA-109359 Goto file doesn't work with parent directory pattern and middle-matching

This commit is contained in:
peter
2013-07-02 18:37:01 +02:00
parent 2b98a8c78f
commit 59a39ec2b9
2 changed files with 37 additions and 10 deletions
@@ -98,6 +98,14 @@ class Intf {
assert elements == files
}
public void "test middle matching for directories"() {
def fooIndex = myFixture.addFileToProject("foo/index.html", "foo")
def ooIndex = myFixture.addFileToProject("oo/index.html", "oo")
def fooBarIndex = myFixture.addFileToProject("foo/bar/index.html", "foo bar")
def elements = getPopupElements(new GotoFileModel(project), "oo/index")
assert elements == [ooIndex, fooIndex, fooBarIndex]
}
private List<Object> getPopupElements(ChooseByNameModel model, String text) {
return getPopupElements(createPopup(model), text)
}