Added tests

This commit is contained in:
Valentin Kipyatkov
2014-11-18 21:59:32 +03:00
parent 376e12b6f3
commit 18b9e4a868
4 changed files with 20 additions and 4 deletions
@@ -5,8 +5,8 @@ fun firstFun() {
a.hello<caret>
}
// EXIST: helloProp1
// EXIST: helloProp2
// EXIST: { lookupString: "helloProp1", attributes: "bold" }
// EXIST: { lookupString: "helloProp2", attributes: "bold" }
// ABSENT: helloProp3
// ABSENT: helloProp4
// NUMBER: 2
@@ -8,6 +8,6 @@ fun f() {
// INVOCATION_COUNT: 2
// ABSENT: "xxx"
// EXIST: "yyy"
// EXIST: { lookupString: "yyy", attributes: "bold" }
// ABSENT: "zzz"
// ABSENT: "extensionProp"
@@ -0,0 +1,11 @@
fun String.extFunForString(): Int = 0
fun Any.extFunForAny(): Int = 0
class C {
fun foo(): Int {
return "".<caret>
}
}
// EXIST: { itemText: "extFunForString", attributes: "bold" }
// EXIST: { itemText: "extFunForAny", attributes: "" }
@@ -19,7 +19,6 @@ package org.jetbrains.jet.completion;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.jet.JUnit3RunnerWithInners;
import org.jetbrains.jet.JetTestUtils;
import org.jetbrains.jet.test.InnerTestClasses;
import org.jetbrains.jet.test.TestMetadata;
import org.junit.runner.RunWith;
@@ -300,6 +299,12 @@ public class JvmSmartCompletionTestGenerated extends AbstractJvmSmartCompletionT
doTest(fileName);
}
@TestMetadata("ImmediateExtensionMembers.kt")
public void testImmediateExtensionMembers() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/completion/smart/ImmediateExtensionMembers.kt");
doTest(fileName);
}
@TestMetadata("ImmediateMembers.kt")
public void testImmediateMembers() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/completion/smart/ImmediateMembers.kt");