fix completion not launching insert handler after explicit common prefix insertion

This commit is contained in:
peter
2011-03-11 17:35:06 +01:00
parent 1c50268183
commit da18adc88d
6 changed files with 55 additions and 43 deletions
@@ -0,0 +1,5 @@
public class SomeClass {
void foo(String param) {
if (param.<caret>)
}
}
@@ -0,0 +1,5 @@
public class SomeClass {
void foo(String param) {
if (param.equals(<caret>))
}
}
@@ -858,6 +858,16 @@ public class NormalCompletionTest extends LightFixtureCompletionTestCase {
assertStringItems("myField1", "myField2");
}
public void testAfterCommonPrefix() throws Throwable {
configure()
type 'eq'
assertStringItems("equals", "equalsIgnoreCase");
complete()
assertStringItems("equals", "equalsIgnoreCase");
type '('
checkResult()
}
public void testClassNameInsideIdentifierInIf() throws Throwable {
configure()
type '\n'