mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
fix double colon on completion
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class Bar {
|
||||
int zoooa() {}
|
||||
int zooob() {}
|
||||
|
||||
int foo() {
|
||||
return true ? zoo<caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Bar {
|
||||
int zoooa() {}
|
||||
int zooob() {}
|
||||
|
||||
int foo() {
|
||||
return true ? zoooa() : <caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
class Bar {
|
||||
int foo(int zoooa, int zooob) {
|
||||
return true ? zoo<caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
class Bar {
|
||||
int foo(int zoooa, int zooob) {
|
||||
return true ? zoooa : <caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Bar {
|
||||
int zoooa() {}
|
||||
int zooob() {}
|
||||
|
||||
int foo() {
|
||||
return true ? zoooa() : <caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Bar {
|
||||
int zoooa() {}
|
||||
int zooob() {}
|
||||
|
||||
int foo() {
|
||||
return true ? zoo<caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
class Bar {
|
||||
int foo(int zoooa, int zooob) {
|
||||
return true ? zoooa : <caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
class Bar {
|
||||
int foo(int zoooa, int zooob) {
|
||||
return true ? zoo<caret>
|
||||
}
|
||||
}
|
||||
+3
@@ -914,6 +914,9 @@ public class NormalCompletionTest extends LightFixtureCompletionTestCase {
|
||||
public void testNewClassAngleBracket() throws Exception { doTest('<') }
|
||||
public void testNewClassSquareBracket() throws Exception { doTest('[') }
|
||||
|
||||
public void testMethodColon() throws Exception { doTest(':') }
|
||||
public void testVariableColon() throws Exception { doTest(':') }
|
||||
|
||||
public void testNoMethodsInParameterType() {
|
||||
configure()
|
||||
assertOrderedEquals myFixture.lookupElementStrings, "final", "float"
|
||||
|
||||
+12
-9
@@ -691,6 +691,15 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
|
||||
|
||||
public void testDoubleTrueInOverloadedMethodCall() throws Throwable { doTest(Lookup.REPLACE_SELECT_CHAR); }
|
||||
|
||||
public void testMethodColon() throws Exception { doFirstItemTest(':'); }
|
||||
public void testVariableColon() throws Exception { doFirstItemTest(':'); }
|
||||
|
||||
private void doFirstItemTest(char c) throws Exception {
|
||||
configureByTestName();
|
||||
select(c);
|
||||
checkResultByTestName();
|
||||
}
|
||||
|
||||
public void testOneElementArray() throws Throwable { doTest(); }
|
||||
|
||||
public void testCastToArray() throws Throwable { doTest(); }
|
||||
@@ -706,9 +715,7 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
|
||||
public void testAutoCastWhenAlreadyCasted() throws Throwable { doTest(); }
|
||||
|
||||
public void testCommaDoublePenetration() throws Throwable {
|
||||
configureByTestName();
|
||||
select(',');
|
||||
checkResultByTestName();
|
||||
doFirstItemTest(',');
|
||||
}
|
||||
|
||||
public void testSuperMethodArguments() throws Throwable {
|
||||
@@ -867,9 +874,7 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
|
||||
}
|
||||
|
||||
public void testTabMethodCall() throws Exception {
|
||||
configureByTestName();
|
||||
select(Lookup.REPLACE_SELECT_CHAR);
|
||||
checkResultByTestName();
|
||||
doFirstItemTest(Lookup.REPLACE_SELECT_CHAR);
|
||||
}
|
||||
|
||||
public void testConstructorArgsSmartEnter() throws Exception { doTest(Lookup.COMPLETE_STATEMENT_SELECT_CHAR); }
|
||||
@@ -1013,9 +1018,7 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
|
||||
}
|
||||
|
||||
public void testTabAfterNew() throws Exception {
|
||||
configureByTestName();
|
||||
select('\t');
|
||||
checkResultByTestName();
|
||||
doFirstItemTest('\t');
|
||||
}
|
||||
|
||||
private void doTest(boolean performAction, boolean selectItem) throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user