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,4 @@
fun some(a : Statement<caret>)
// INVOCATION_COUNT: 1
// EXIST: { lookupString:"Statement", tailText:" (java.sql)" }
@@ -0,0 +1,12 @@
package first
import java.util.ArrayList
fun firstFun() {
val a = ArrayList<Int>()
a.toLinke<caret>
}
// INVOCATION_COUNT: 1
// EXIST: { lookupString:"toLinkedList", itemText:"toLinkedList", tailText:"() for Iterable<T> in kotlin" }
// NUMBER: 1
@@ -0,0 +1,14 @@
fun String.extFunForString(){}
fun Any.extFunForAny(){}
fun String?.extFunForStringNullable(){}
class C {
fun foo() {
System.getProperty("a").<caret>
}
}
// EXIST: { itemText: "extFunForString", attributes: "bold" }
// EXIST: { itemText: "extFunForAny", attributes: "" }
// EXIST: { itemText: "extFunForStringNullable", attributes: "bold" }
// EXIST: { itemText: "charAt", attributes: "bold" }
@@ -0,0 +1,4 @@
package java.util.<caret>
// EXIST: concurrent
// ABSENT: AbstractList, Date, Random, import
@@ -0,0 +1,12 @@
package testing
// Should show java names by short name
class Hello() {
fun test() {
val a : S<caret>
}
}
// INVOCATION_COUNT: 2
// EXIST: SortedMap, Short, Socket
// ABSENT: hashSetOf
@@ -0,0 +1,7 @@
import java.io.InputStreamReader
val x = InputStreamReader<caret>
// INVOCATION_COUNT: 2
// EXIST: { lookupString:"InputStreamReader", tailText:" (java.io)" }
// NUMBER: 1
@@ -0,0 +1,5 @@
val x = LinesSequence<caret>
// INVOCATION_COUNT: 2
// EXIST: { lookupString:"LinesSequence", tailText:" (kotlin.io)" }
// NUMBER: 1
@@ -0,0 +1,6 @@
package java.lang.<caret>
// EXIST: annotation
// EXIST: reflect
// ABSENT: System
// ABSENT: Thread
@@ -0,0 +1,10 @@
/* Number of result in completion should be fixed after removing duplicates */
package first
fun firstFun() {
val a = PropertyM<caret>
}
// INVOCATION_COUNT: 1
// EXIST: { lookupString:"PropertyMetadata", itemText:"PropertyMetadata", tailText:" (kotlin)" }
// EXIST: { lookupString:"PropertyMetadataImpl", itemText:"PropertyMetadataImpl", tailText:" (kotlin)" }
@@ -0,0 +1,10 @@
package testing
fun someFun() {
measureTime<caret>
}
// Important: This test checks that completion will find top level functions from jars.
// If you going to update it make sure that methods are not auto-imported
// EXIST: measureTimeNano, measureTimeMillis
@@ -0,0 +1,10 @@
package testing
fun someFun() {
defaultDocumentBuilderFa<caret>
}
// Important: This test checks that completion will find top level functions from jars.
// If you going to update it make sure that methods are not auto-imported
// EXIST: defaultDocumentBuilderFactory