mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
one more fix for caret position when choosing a class suggestion by dot
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
public class Foo {
|
||||
{
|
||||
verify(runP4WithClient("integ", "main/...", "rel/..."));
|
||||
FInpSt.<caret>
|
||||
verify(runP4WithClient("resolve", "-at"));
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import java.io.FileInputStream;
|
||||
|
||||
public class Foo {
|
||||
{
|
||||
verify(runP4WithClient("integ", "main/...", "rel/..."));
|
||||
FileInputStream.<caret>
|
||||
verify(runP4WithClient("resolve", "-at"));
|
||||
}
|
||||
}
|
||||
+12
@@ -1266,4 +1266,16 @@ public class ListUtils {
|
||||
|
||||
public void testClassNameDot() { doTest('.') }
|
||||
|
||||
public void testClassNameDotBeforeCall() {
|
||||
myFixture.addClass("package foo; public class FileInputStreamSmth {}")
|
||||
myFixture.configureByFile(getTestName(false) + ".java")
|
||||
PsiDocumentManager.getInstance(project).commitAllDocuments()
|
||||
type '\b'
|
||||
PsiDocumentManager.getInstance(project).commitAllDocuments()
|
||||
myFixture.completeBasic()
|
||||
assert lookup
|
||||
type '.'
|
||||
checkResult()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user