Added tests
This commit is contained in:
+2
-2
@@ -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
|
||||
+1
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user