Created module idea-test-framework and moved classes needed for idea tests there

Moved tests for completion and their test data into module idea-completion
This commit is contained in:
Valentin Kipyatkov
2015-04-13 18:11:53 +03:00
parent 63825c45dd
commit bb808b5620
1303 changed files with 1741 additions and 1733 deletions
@@ -0,0 +1,6 @@
import lib.JavaClass
fun test() = JavaClass().foo(<caret>)
// ABSENT: p0
// ABSENT: paramName
@@ -0,0 +1,5 @@
package lib;
public class JavaClass {
public void foo(int paramName) {}
}
@@ -0,0 +1,6 @@
import lib.KotlinClass
fun test() = KotlinClass().foo(<caret>)
// ABSENT: p0
// EXIST: { lookupString:"paramName", itemText:"paramName =" }
@@ -0,0 +1,5 @@
package lib
class KotlinClass {
fun foo(paramName: String) {}
}
@@ -0,0 +1,8 @@
package testing
fun someFun() {
1.abcd<caret>
}
// EXIST: abcdCCC3, abcdDDD4
// ABSENT: abcdAAA1, abcdBBB2
@@ -0,0 +1,9 @@
package abc
public fun abcdAAA1(): Unit {}
public fun abcdBBB2(i: Int) {}
public fun Int.abcdCCC3() {}
public fun Int.abcdDDD4(i: Int) {}
@@ -0,0 +1,8 @@
package testing
fun someFun() {
"".hello<caret>
}
// EXIST: helloProp1, helloProp2
// ABSENT: helloProp3, helloProp4
@@ -0,0 +1,6 @@
package abc
public val String.helloProp1: Int get() = 1
public val String.helloProp2: Int get() = 2
public val Int.helloProp3: Int get() = 3
public val helloProp4: Int = 4
@@ -0,0 +1,8 @@
package testing
fun someFun() {
abcd<caret>
}
// EXIST: abcdAAA1, abcdBBB2
// ABSENT: abcdCCC3, abcdDDD4
@@ -0,0 +1,9 @@
package abc
public fun abcdAAA1(): Unit {}
public fun abcdBBB2(i: Int) {}
public fun Int.abcdCCC3() {}
public fun Int.abcdDDD4(i: Int) {}
@@ -0,0 +1,5 @@
fun foo() {
glob<caret>
}
// EXIST: "globalProperty"
@@ -0,0 +1,3 @@
package foo.bar
public val globalProperty: Int = 1