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
@@ -1,4 +1,4 @@
// KT-1187 Wrong unnecessary completion
/// KT-1187 Wrong unnecessary completion
fun anyfun() {
a.b.c.d.e.f.<caret>
@@ -4,4 +4,5 @@ class Test {
// TIME: 1
// EXIST: String~(jet)
// EXIST: StringBuffer
// EXIST: StringBuilder
// EXIST_JAVA_ONLY: StringBuffer
@@ -5,7 +5,7 @@ fun S<caret>
// Should complete types for receiver after explicit basic completion call
// TIME: 1
// EXIST: String
// EXIST: StringBuffer
// EXIST_JAVA_ONLY: StringBuffer
// EXIST: Set
// ABSENT: testing
@@ -6,4 +6,6 @@ fun hello() {
val a = So<caret>
}
// EXIST: SortedSet, SortedMap
// EXIST: SortedSet
// EXIST_JAVA_ONLY: SortedMap
// EXIST_JS_ONLY: JSON
@@ -2,5 +2,7 @@ package Test
import <caret>
// EXIST: java, javax
// EXIST: java,
// EXIST_JAVA_ONLY: javax
// EXIST_JS_ONLY: js
// ABSENT: Array, Integer
+2 -1
View File
@@ -6,4 +6,5 @@ class Test {
}
// EXIST: AbstractList, Date, Random, concurrent
// EXIST: AbstractList, Date
// EXIST_JAVA_ONLY: Random, concurrent
@@ -4,5 +4,5 @@ fun test() {
val a : Named<caret>
}
// TIMES: 2
// TIME: 2
// ABSENT: NamedObject
@@ -4,7 +4,6 @@ fun firstFun() {
val a = In<caret>
}
// RUNTIME: 1
// TIME: 0
// EXIST: Int~(jet)
// ABSENT: Int~(jet.runtime.SharedVar)
@@ -0,0 +1,10 @@
package testing
class Hello() {
fun test() {
val a : S<caret>
}
}
// EXIST: Set, Short, ShortArray
// ABSENT: toString
@@ -2,11 +2,12 @@ fun main(args: Array<String>) {
Array<caret>
}
// COMPLETE: 2
// TIME: 2
// WITH_ORDER: 1
// EXIST: Array~(jet)
// EXIST: Array~(java.sql)
// EXIST_JAVA_ONLY: Array~(java.sql)
// EXIST_JAVA_ONLY: ArrayList~<E> (java.util)
// EXIST_JS_ONLY: ArrayList~(java.util)
@@ -1,7 +1,8 @@
fun some(a: Double<caret>) {
}
// COMPLETE: 2
// TIME: 2
// WITH_ORDER: 1
// EXIST: Double~(jet)
// EXIST: Double~(java.lang)
// EXIST_JAVA_ONLY: Double~(java.lang)
// EXIST: DoubleArray~(jet)
@@ -7,7 +7,6 @@ fun firstFun() {
a.toLinke<caret>
}
// RUNTIME: 1
// TIME: 1
// EXIST: toLinkedList@toLinkedList()~for jet.Iterable<T> in kotlin
// NUMBER: 1
@@ -7,4 +7,6 @@ class Hello() {
}
}
// EXIST: SortedMap, Short, Socket
// TIME: 2
// EXIST: SortedMap, Short, Socket
// ABSENT: hashSetOf
@@ -1,6 +1,5 @@
val x = LineIterator<caret>
// RUNTIME: 1
// TIME: 1
// EXIST: LineIterator
// EXIST: LineIterator~(kotlin.io)
// NUMBER: 1
@@ -3,5 +3,5 @@ import java.io.InputStreamReader
val x = InputStreamReader<caret>
// TIME: 1
// EXIST: InputStreamReader
// EXIST: InputStreamReader~(java.io)
// NUMBER: 1
@@ -7,5 +7,4 @@ fun someFun() {
// 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
// RUNTIME: 1
// EXIST: measureTimeNano, measureTimeMillis
@@ -7,5 +7,4 @@ fun someFun() {
// 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
// RUNTIME: 1
// EXIST: defaultDocumentBuilderFactory
@@ -0,0 +1,4 @@
package js.<caret>
// EXIST: dom
// ABSENT: Date, JSON, capitalize
@@ -0,0 +1,4 @@
val test = JSON.<caret>
// EXIST: stringify
// EXIST: parse