Mute some box tests for native backend

This patch mutes the following test categories:
   * Tests with java dependencies (System class,
     java stdlib, jvm-oriented annotations etc).
   * Coroutines tests.
   * Reflection tests.
   * Tests with an inheritance from the standard
     collections.
This commit is contained in:
Ilya Matveev
2017-03-07 11:04:08 +03:00
committed by ilmat192
parent d21d362f0f
commit a5e4e0284e
896 changed files with 936 additions and 744 deletions
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
// KT-5665 // KT-5665
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
// FILE: Test.java // FILE: Test.java
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
// FILE: Test.java // FILE: Test.java
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
// FILE: JavaClass.java // FILE: JavaClass.java
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// FILE: JavaClass.java // FILE: JavaClass.java
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
// FULL_JDK // FULL_JDK
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
// FULL_JDK // FULL_JDK
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
+1 -1
View File
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
+1 -1
View File
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// reason - multifile tests are not supported in JS tests // reason - multifile tests are not supported in JS tests
//FILE: Holder.java //FILE: Holder.java
@@ -14,4 +14,4 @@ import Holder
fun box(): String { fun box(): String {
val j = Holder(0.99) val j = Holder(0.99)
return if (j.value > 0) "OK" else "fail" return if (j.value > 0) "OK" else "fail"
} }
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// reason - multifile tests are not supported in JS tests // reason - multifile tests are not supported in JS tests
//FILE: JavaClass.java //FILE: JavaClass.java
@@ -12,4 +12,4 @@ import JavaClass
fun box(): String { fun box(): String {
return if (JavaClass.get() > 0) "OK" else "fail" return if (JavaClass.get() > 0) "OK" else "fail"
} }
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
+1 -1
View File
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
class MyCollection<T>: Collection<T> { class MyCollection<T>: Collection<T> {
override val size: Int get() = 0 override val size: Int get() = 0
@@ -31,4 +31,4 @@ fun box(): String {
expectUoe { collection.clear() } expectUoe { collection.clear() }
return "OK" return "OK"
} }
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
class MyIterator<T>(val v: T): Iterator<T> { class MyIterator<T>(val v: T): Iterator<T> {
override fun next(): T = v override fun next(): T = v
@@ -13,4 +13,4 @@ fun box(): String {
} catch (e: UnsupportedOperationException) { } catch (e: UnsupportedOperationException) {
return "OK" return "OK"
} }
} }
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
class MyIterator<T>(val v: T): Iterator<T> { class MyIterator<T>(val v: T): Iterator<T> {
override fun next(): T = v override fun next(): T = v
+2 -2
View File
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
class MyList<T>: List<T> { class MyList<T>: List<T> {
override val size: Int get() = 0 override val size: Int get() = 0
@@ -39,4 +39,4 @@ fun box(): String {
expectUoe { list.remove(0) } expectUoe { list.remove(0) }
return "OK" return "OK"
} }
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
class MyListIterator<T> : ListIterator<T> { class MyListIterator<T> : ListIterator<T> {
override fun next(): T = null!! override fun next(): T = null!!
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
class MyList<T>(val v: T): List<T> { class MyList<T>(val v: T): List<T> {
override val size: Int get() = 0 override val size: Int get() = 0
@@ -42,4 +42,4 @@ fun box(): String {
list.remove(0) list.remove(0)
return "OK" return "OK"
} }
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
open class Super<T>(val v: T) { open class Super<T>(val v: T) {
public fun add(e: T): Boolean = true public fun add(e: T): Boolean = true
@@ -44,4 +44,4 @@ fun box(): String {
list.remove(0) list.remove(0)
return "OK" return "OK"
} }
+1 -1
View File
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
class MyMap<K, V>: Map<K, V> { class MyMap<K, V>: Map<K, V> {
override val size: Int get() = 0 override val size: Int get() = 0
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
class MyMapEntry<K, V>: Map.Entry<K, V> { class MyMapEntry<K, V>: Map.Entry<K, V> {
override fun hashCode(): Int = 0 override fun hashCode(): Int = 0
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
class MyMapEntry<K, V>: Map.Entry<K, V> { class MyMapEntry<K, V>: Map.Entry<K, V> {
override fun hashCode(): Int = 0 override fun hashCode(): Int = 0
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
class MyMap<K, V>: Map<K, V> { class MyMap<K, V>: Map<K, V> {
override val size: Int get() = 0 override val size: Int get() = 0
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
class MyList: List<String> { class MyList: List<String> {
override val size: Int get() = 0 override val size: Int get() = 0
@@ -39,4 +39,4 @@ fun box(): String {
expectUoe { list.remove(0) } expectUoe { list.remove(0) }
return "OK" return "OK"
} }
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
abstract class A : Iterator<String> { abstract class A : Iterator<String> {
abstract fun remove(): Unit abstract fun remove(): Unit
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: NATIVE
class A : HashSet<Long>() class A : HashSet<Long>()
fun box(): String { fun box(): String {
@@ -1,5 +1,5 @@
// KT-6042 java.lang.UnsupportedOperationException with ArrayList // KT-6042 java.lang.UnsupportedOperationException with ArrayList
// IGNORE_BACKEND: NATIVE
class A : ArrayList<String>() class A : ArrayList<String>()
fun box(): String { fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: NATIVE
class A : HashMap<String, Double>() class A : HashMap<String, Double>()
fun box(): String { fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: NATIVE
class A : HashSet<Long>() class A : HashSet<Long>()
fun box(): String { fun box(): String {
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// FULL_JDK // FULL_JDK
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
interface Addable { interface Addable {
fun add(s: String): Boolean = true fun add(s: String): Boolean = true
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
open class SetStringImpl { open class SetStringImpl {
fun add(s: String): Boolean = false fun add(s: String): Boolean = false
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
class MyCollection<T> : Collection<List<Iterator<T>>> { class MyCollection<T> : Collection<List<Iterator<T>>> {
override fun iterator() = null!! override fun iterator() = null!!
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
class MyIterator<E : Number> : Iterator<E> { class MyIterator<E : Number> : Iterator<E> {
override fun next() = null!! override fun next() = null!!
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// FILE: Test.java // FILE: Test.java
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// FILE: Test.java // FILE: Test.java
@@ -1,5 +1,5 @@
// TODO: investigate should it be ran for JS or not // TODO: investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// See https://youtrack.jetbrains.com/issue/KT-14938 // See https://youtrack.jetbrains.com/issue/KT-14938
// WITH_REFLECT // WITH_REFLECT
@@ -34,4 +34,4 @@ fun box(): String =
nullBar == A_bar -> "Bound extension property ref with receiver 'null' SHOULD NOT be equal to free property ref" nullBar == A_bar -> "Bound extension property ref with receiver 'null' SHOULD NOT be equal to free property ref"
else -> "OK" else -> "OK"
} }
@@ -1,5 +1,5 @@
// TODO: investigate should it be ran for JS or not // TODO: investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_REFLECT // WITH_REFLECT
@@ -29,4 +29,4 @@ fun box() =
// cProp.setter != C()::prop.setter -> "cProp.setter != C()::prop.setter" // cProp.setter != C()::prop.setter -> "cProp.setter != C()::prop.setter"
else -> "OK" else -> "OK"
} }
@@ -1,5 +1,5 @@
// TODO: investigate should it be ran for JS or not // TODO: investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_REFLECT // WITH_REFLECT
@@ -32,4 +32,4 @@ fun box(): String =
C_barReflect == cBar -> "C_barReflect == cBar, ${C_barReflect.className}" C_barReflect == cBar -> "C_barReflect == cBar, ${C_barReflect.className}"
cBar == C_barReflect -> "cBar == C_barReflect, ${cBar.className}" cBar == C_barReflect -> "cBar == C_barReflect, ${cBar.className}"
else -> "OK" else -> "OK"
} }
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
// WITH_REFLECT // WITH_REFLECT
@@ -26,4 +26,4 @@ fun box(): String {
check(Int::toString, ::foo, "Int", "String") check(Int::toString, ::foo, "Int", "String")
return "OK" return "OK"
} }
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
// WITH_REFLECT // WITH_REFLECT
@@ -27,4 +27,4 @@ fun box(): String {
val s2: Pair<Int?, String?> = bar(null, null, ::foo, "Int", "String") val s2: Pair<Int?, String?> = bar(null, null, ::foo, "Int", "String")
return "OK" return "OK"
} }
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
// WITH_REFLECT // WITH_REFLECT
@@ -20,4 +20,4 @@ fun box(): String {
val a3: Boolean? = bar<Boolean>(::foo, "Boolean") val a3: Boolean? = bar<Boolean>(::foo, "Boolean")
return "OK" return "OK"
} }
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// KT-5123 // KT-5123
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
class Test { class Test {
private var iv = 1 private var iv = 1
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_REFLECT // WITH_REFLECT
// FULL_JDK // FULL_JDK
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_REFLECT // WITH_REFLECT
import java.io.* import java.io.*
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
import java.io.* import java.io.*
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_REFLECT // WITH_REFLECT
import java.io.* import java.io.*
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_REFLECT // WITH_REFLECT
import java.io.* import java.io.*
+1 -1
View File
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
fun foo(x: Any) = x as Runnable fun foo(x: Any) = x as Runnable
+1 -1
View File
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
fun foo(x: Any) = x as? Runnable fun foo(x: Any) = x as? Runnable
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
fun fn0() {} fun fn0() {}
fun fn1(x: Any) {} fun fn1(x: Any) {}
@@ -44,4 +44,4 @@ fun box(): String {
return "OK" return "OK"
} }
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_REFLECT // WITH_REFLECT
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// FILE: JFun.java // FILE: JFun.java
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
fun fn0() {} fun fn0() {}
fun fn1(x: Any) {} fun fn1(x: Any) {}
@@ -36,4 +36,4 @@ fun box(): String {
reifiedAsSucceeds<Function1<*, *>>(f1, "f1 as Function1<*, *>") reifiedAsSucceeds<Function1<*, *>>(f1, "f1 as Function1<*, *>")
return "OK" return "OK"
} }
+1 -1
View File
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
fun foo(x: Any) = x is Runnable fun foo(x: Any) = x is Runnable
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// FILE: Box.java // FILE: Box.java
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
+1 -1
View File
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
fun foo(x: Any) = x !is Runnable fun foo(x: Any) = x !is Runnable
+1 -1
View File
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
fun box(): String { fun box(): String {
var x = 42 var x = 42
@@ -1,3 +1,5 @@
// IGNORE_BACKEND: NATIVE
fun box(): String { fun box(): String {
val x: CharSequence = "" val x: CharSequence = ""
val klass = x::class val klass = x::class
+1 -1
View File
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
+1 -1
View File
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// TODO: Enable for JS when it supports Java class library. // TODO: Enable for JS when it supports Java class library.
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
class SomeClass { companion object } class SomeClass { companion object }
fun box() = fun box() =
+1 -1
View File
@@ -1,5 +1,5 @@
// Enable for JS when it supports Java class library. // Enable for JS when it supports Java class library.
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
class TestJava(r : Runnable) : Runnable by r {} class TestJava(r : Runnable) : Runnable by r {}
class TestRunnable() : Runnable { class TestRunnable() : Runnable {
+1 -1
View File
@@ -1,6 +1,6 @@
// Won't ever work with JS backend. // Won't ever work with JS backend.
// TODO: Consider rewriting this test without using threads, since the issue is not about threads at all. // TODO: Consider rewriting this test without using threads, since the issue is not about threads at all.
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
object RefreshQueue { object RefreshQueue {
val any = Any() val any = Any()
+1 -1
View File
@@ -1,5 +1,5 @@
// TODO: Enable when JS backend supports Java class library // TODO: Enable when JS backend supports Java class library
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
public class SomeClass() : java.lang.Object() { public class SomeClass() : java.lang.Object() {
} }
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: NATIVE
public object SomeClass { public object SomeClass {
private val work = object : Runnable { private val work = object : Runnable {
override fun run() { override fun run() {
+1 -1
View File
@@ -1,5 +1,5 @@
// TODO: Enable when JS backend supports Java class library // TODO: Enable when JS backend supports Java class library
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
public open class Test(): java.util.RandomAccess, Cloneable, java.io.Serializable public open class Test(): java.util.RandomAccess, Cloneable, java.io.Serializable
{ {
public override fun clone(): Test = Test() // Override 'clone()' with more precise type 'Test' public override fun clone(): Test = Test() // Override 'clone()' with more precise type 'Test'
+1 -1
View File
@@ -1,5 +1,5 @@
// TODO: Enable for JS when it supports Java class library. // TODO: Enable for JS when it supports Java class library.
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
class List<T>(val head: T, val tail: List<T>? = null) class List<T>(val head: T, val tail: List<T>? = null)
fun <T> List<T>.mapHead(f: (T)-> T): List<T> = List<T>(f(head), null) fun <T> List<T>.mapHead(f: (T)-> T): List<T> = List<T>(f(head), null)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: NATIVE
class C { class C {
private fun String.ext() : String = "" private fun String.ext() : String = ""
private fun f() {} private fun f() {}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: NATIVE
class C{ class C{
private var v : Int = 0 private var v : Int = 0
+1 -1
View File
@@ -1,5 +1,5 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, NATIVE
import java.io.* import java.io.*

Some files were not shown because too many files have changed in this diff Show More