Fix confidence test - several results in completion because of Leda middle matching prevented completion auto-insert (Leda only)
This commit is contained in:
@@ -77,6 +77,7 @@ public class JetConfidenceTest extends LightCompletionTestCase {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void complete() {
|
protected void complete() {
|
||||||
new CodeCompletionHandlerBase(CompletionType.BASIC, false, true, true).invokeCompletion(getProject(), getEditor(), 0, false, false);
|
new CodeCompletionHandlerBase(CompletionType.BASIC, false, true, true).invokeCompletion(
|
||||||
|
getProject(), getEditor(), 0, false, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -35,7 +35,7 @@ public class KeywordsHandlerTest extends LightCompletionTestCase {
|
|||||||
|
|
||||||
public void testNoSpaceAfter() throws IOException {
|
public void testNoSpaceAfter() throws IOException {
|
||||||
configureFromFileText("Test.kt", "fun test() { nul<caret> }");
|
configureFromFileText("Test.kt", "fun test() { nul<caret> }");
|
||||||
complete();
|
forceCompleteFirst();
|
||||||
checkResultByText("fun test() { null<caret> }");
|
checkResultByText("fun test() { null<caret> }");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,6 +65,13 @@ public class KeywordsHandlerTest extends LightCompletionTestCase {
|
|||||||
checkResultByFile(getTestName(false) + "_after.kt");
|
checkResultByFile(getTestName(false) + "_after.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void forceCompleteFirst() {
|
||||||
|
complete();
|
||||||
|
if (myItems != null && myItems.length > 1) {
|
||||||
|
selectItem(myItems[0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected String getTestDataPath() {
|
protected String getTestDataPath() {
|
||||||
return new File(PluginTestCaseBase.getTestDataPathBase(), "/completion/handlers/keywords").getPath() +
|
return new File(PluginTestCaseBase.getTestDataPathBase(), "/completion/handlers/keywords").getPath() +
|
||||||
|
|||||||
Reference in New Issue
Block a user