Checked that KT-3596 is not reproducible

This commit is contained in:
Valentin Kipyatkov
2014-10-08 20:28:31 +04:00
parent e1a84802f2
commit cff0c35987
7 changed files with 55 additions and 5 deletions
@@ -0,0 +1,10 @@
package p
import java.lang.Character.*
fun foo() {
M<caret>
}
// EXIST_JAVA_ONLY: MIN_RADIX
// EXIST_JAVA_ONLY: MATH_SYMBOL
@@ -0,0 +1,13 @@
package foo
import foo.Foo.*
enum class Foo {
AAA
}
fun take(a: Any){}
fun test() {
take(A<caret>)
}
@@ -0,0 +1,13 @@
package foo
import foo.Foo.*
enum class Foo {
AAA
}
fun take(a: Any){}
fun test() {
take(AAA<caret>)
}
@@ -234,6 +234,12 @@ public class JSBasicCompletionTestGenerated extends AbstractJSBasicCompletionTes
doTest(fileName);
}
@TestMetadata("ImportedEnumMembers.kt")
public void testImportedEnumMembers() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/completion/basic/common/ImportedEnumMembers.kt");
doTest(fileName);
}
@TestMetadata("InCallExpression.kt")
public void testInCallExpression() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/completion/basic/common/InCallExpression.kt");
@@ -17,13 +17,10 @@
package org.jetbrains.jet.completion;
import com.intellij.testFramework.TestDataPath;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.junit.runner.RunWith;
import org.jetbrains.jet.JetTestUtils;
import org.jetbrains.jet.test.InnerTestClasses;
import org.jetbrains.jet.test.TestMetadata;
import org.jetbrains.jet.JUnit3RunnerWithInners;
import org.junit.runner.RunWith;
import java.io.File;
import java.util.regex.Pattern;
@@ -234,6 +231,12 @@ public class JvmBasicCompletionTestGenerated extends AbstractJvmBasicCompletionT
doTest(fileName);
}
@TestMetadata("ImportedEnumMembers.kt")
public void testImportedEnumMembers() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/completion/basic/common/ImportedEnumMembers.kt");
doTest(fileName);
}
@TestMetadata("InCallExpression.kt")
public void testInCallExpression() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/completion/basic/common/InCallExpression.kt");
@@ -153,4 +153,6 @@ public class BasicCompletionHandlerTest : CompletionHandlerTestBase(){
fun testInfixCall() = doTest(1, "to", null, null, '\n')
fun testInfixCallOnSpace() = doTest(1, "to", null, null, ' ')
fun testImportedEnumMember() { doTest(1, "AAA", null, null, '\n') }
}
@@ -17,10 +17,13 @@
package org.jetbrains.jet.shortenRefs;
import com.intellij.testFramework.TestDataPath;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.junit.runner.RunWith;
import org.jetbrains.jet.JetTestUtils;
import org.jetbrains.jet.test.InnerTestClasses;
import org.jetbrains.jet.test.TestMetadata;
import org.junit.runner.RunWith;
import org.jetbrains.jet.JUnit3RunnerWithInners;
import java.io.File;
import java.util.regex.Pattern;