Fixed KeywordCompletionTests.

This commit is contained in:
Stanislav Erokhin
2016-12-15 17:37:55 +03:00
parent 2ff04f2bc5
commit 5a353412e4
5 changed files with 11 additions and 3 deletions
@@ -8,7 +8,6 @@ class TestSample() {
// EXIST: vararg // EXIST: vararg
// EXIST: noinline // EXIST: noinline
// EXIST: crossinline // EXIST: crossinline
// EXIST: coroutine
/* TODO: val&var are not correct */ /* TODO: val&var are not correct */
// EXIST: val // EXIST: val
// EXIST: var // EXIST: var
@@ -14,7 +14,6 @@ class TestSample(<caret>)
// EXIST: private // EXIST: private
// EXIST: protected // EXIST: protected
// EXIST: internal // EXIST: internal
// EXIST: coroutine
// EXIST: impl // EXIST: impl
/* TODO: keywords below should not be here*/ /* TODO: keywords below should not be here*/
// EXIST: abstract // EXIST: abstract
@@ -5,7 +5,6 @@ fun test(<caret>) {
// EXIST: vararg // EXIST: vararg
// EXIST: noinline // EXIST: noinline
// EXIST: crossinline // EXIST: crossinline
// EXIST: coroutine
/* TODO: they all are not correct */ /* TODO: they all are not correct */
// EXIST: val // EXIST: val
// EXIST: var // EXIST: var
@@ -0,0 +1,5 @@
val a : <caret>
// EXIST: suspend
// NOTHING_ELSE
@@ -324,6 +324,12 @@ public class KeywordCompletionTestGenerated extends AbstractKeywordCompletionTes
doTest(fileName); doTest(fileName);
} }
@TestMetadata("InTypePosition.kt")
public void testInTypePosition() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/InTypePosition.kt");
doTest(fileName);
}
@TestMetadata("LabeledLambdaThis.kt") @TestMetadata("LabeledLambdaThis.kt")
public void testLabeledLambdaThis() throws Exception { public void testLabeledLambdaThis() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/LabeledLambdaThis.kt"); String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/keywords/LabeledLambdaThis.kt");