Add test on named arguments completion for Kotlin library

This commit is contained in:
Alexander Udalov
2014-03-20 12:25:58 +04:00
parent 1c25723764
commit d2dc54c14f
5 changed files with 19 additions and 3 deletions
@@ -0,0 +1,6 @@
import lib.KotlinClass
fun test() = KotlinClass().foo(<caret>)
// ABSENT: p0
// EXIST: paramName
@@ -0,0 +1,5 @@
package lib
class KotlinClass {
fun foo(paramName: String) {}
}
@@ -36,9 +36,14 @@ public class JvmWithLibBasicCompletionTestGenerated extends AbstractJvmWithLibBa
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.TestsPackage", new File("idea/testData/completion/basic/custom"), Pattern.compile("^(.+)\\.kt$"), false);
}
@TestMetadata("JavaMethodNamedArguments.kt")
public void testJavaMethodNamedArguments() throws Exception {
doTest("idea/testData/completion/basic/custom/JavaMethodNamedArguments.kt");
@TestMetadata("NamedArgumentsJava.kt")
public void testNamedArgumentsJava() throws Exception {
doTest("idea/testData/completion/basic/custom/NamedArgumentsJava.kt");
}
@TestMetadata("NamedArgumentsKotlin.kt")
public void testNamedArgumentsKotlin() throws Exception {
doTest("idea/testData/completion/basic/custom/NamedArgumentsKotlin.kt");
}
@TestMetadata("TopLevelNonImportedExtFun.kt")