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:
@@ -1,5 +1,5 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
|
||||
class MyCollection<T>: Collection<T> {
|
||||
override val size: Int get() = 0
|
||||
@@ -31,4 +31,4 @@ fun box(): String {
|
||||
expectUoe { collection.clear() }
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// 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> {
|
||||
override fun next(): T = v
|
||||
@@ -13,4 +13,4 @@ fun box(): String {
|
||||
} catch (e: UnsupportedOperationException) {
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// 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> {
|
||||
override fun next(): T = v
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
|
||||
class MyList<T>: List<T> {
|
||||
override val size: Int get() = 0
|
||||
@@ -39,4 +39,4 @@ fun box(): String {
|
||||
expectUoe { list.remove(0) }
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
|
||||
class MyListIterator<T> : ListIterator<T> {
|
||||
override fun next(): T = null!!
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
// 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> {
|
||||
override val size: Int get() = 0
|
||||
@@ -42,4 +42,4 @@ fun box(): String {
|
||||
list.remove(0)
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
// 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) {
|
||||
public fun add(e: T): Boolean = true
|
||||
@@ -44,4 +44,4 @@ fun box(): String {
|
||||
list.remove(0)
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// 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> {
|
||||
override val size: Int get() = 0
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// 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> {
|
||||
override fun hashCode(): Int = 0
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// 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> {
|
||||
override fun hashCode(): Int = 0
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// 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> {
|
||||
override val size: Int get() = 0
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
|
||||
class MyList: List<String> {
|
||||
override val size: Int get() = 0
|
||||
@@ -39,4 +39,4 @@ fun box(): String {
|
||||
expectUoe { list.remove(0) }
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// 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 fun remove(): Unit
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
class A : HashSet<Long>()
|
||||
|
||||
fun box(): String {
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// KT-6042 java.lang.UnsupportedOperationException with ArrayList
|
||||
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
class A : ArrayList<String>()
|
||||
|
||||
fun box(): String {
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
class A : HashMap<String, Double>()
|
||||
|
||||
fun box(): String {
|
||||
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
class A : HashSet<Long>()
|
||||
|
||||
fun box(): String {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
|
||||
// FULL_JDK
|
||||
// WITH_RUNTIME
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
|
||||
interface Addable {
|
||||
fun add(s: String): Boolean = true
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
|
||||
open class SetStringImpl {
|
||||
fun add(s: String): Boolean = false
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// 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>>> {
|
||||
override fun iterator() = null!!
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// 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> {
|
||||
override fun next() = null!!
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
|
||||
// FILE: Test.java
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
|
||||
// FILE: Test.java
|
||||
|
||||
|
||||
Reference in New Issue
Block a user