mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
a test that goto file results are sorted by path (IDEA-109912)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user