Refactor tests and activate them for working with JS

This commit is contained in:
Nikolay Krasko
2013-03-18 18:55:01 +04:00
parent a79e997611
commit 1a5ccafd47
32 changed files with 1020 additions and 362 deletions
@@ -0,0 +1,12 @@
package first
import java.util.ArrayList
fun firstFun() {
val a = ArrayList<Int>()
a.toLinke<caret>
}
// TIME: 1
// EXIST: toLinkedList@toLinkedList()~for jet.Iterable<T> in kotlin
// NUMBER: 1
@@ -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>
}
}
// TIME: 2
// EXIST: SortedMap, Short, Socket
// ABSENT: hashSetOf
@@ -0,0 +1,5 @@
val x = LineIterator<caret>
// TIME: 1
// EXIST: LineIterator~(kotlin.io)
// NUMBER: 1
@@ -0,0 +1,7 @@
import java.io.InputStreamReader
val x = InputStreamReader<caret>
// TIME: 1
// EXIST: InputStreamReader~(java.io)
// NUMBER: 1
@@ -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