a test that goto file results are sorted by path (IDEA-109912)

This commit is contained in:
peter
2013-07-02 18:37:01 +02:00
parent 6f9f076773
commit 2b98a8c78f
@@ -92,6 +92,12 @@ class Intf {
assert elements == [fooIndex, barFooIndex, fooBarIndex]
}
public void "test sort same-named items by path"() {
def files = (30..10).collect { i -> myFixture.addFileToProject("foo$i/index.html", "foo$i") }.reverse()
def elements = getPopupElements(new GotoFileModel(project), "index")
assert elements == files
}
private List<Object> getPopupElements(ChooseByNameModel model, String text) {
return getPopupElements(createPopup(model), text)
}