*/
package com.intellij.navigation
+import com.intellij.ide.actions.GotoFileItemProvider
import com.intellij.ide.util.gotoByName.*
import com.intellij.lang.java.JavaLanguage
import com.intellij.openapi.Disposable
}
+ public void "test accept file paths starting with a dot"() {
+ def file = myFixture.addFileToProject("foo/index.html", "foo")
+ def model = new GotoFileModel(project)
+ def popup = ChooseByNamePopup.createPopup(project, model, new GotoFileItemProvider(project, null, model))
+ assert calcPopupElements(popup, "./foo/in") == [file]
+ }
+
public void "test goto file can go to dir"() {
PsiFile fooIndex = myFixture.addFileToProject("foo/index.html", "foo")
PsiFile barIndex = myFixture.addFileToProject("bar.txt/bar.txt", "foo")