From 0899a0fddaf8777c4f8f5ea3675764977041ad8f Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Thu, 17 Nov 2016 00:13:18 +0300 Subject: [PATCH] Make some tests JVM only --- .../delegationToArrayList.kt | 3 +- .../extendJavaCollections/abstractList.kt | 2 + .../extendJavaCollections/abstractMap.kt | 3 +- .../extendJavaCollections/mapEntry.kt | 3 +- .../manyTypeParametersWithUpperBounds.kt | 8 +- .../testData/codegen/box/classes/kt2395.kt | 2 + .../codegen/box/collections/charSequence.kt | 3 +- .../implementCollectionThroughKotlin.kt | 3 +- .../collections/irrelevantImplMutableList.kt | 3 +- .../irrelevantImplMutableListSubstitution.kt | 3 +- .../irrelevantRemoveAtOverrideInJava.kt | 3 +- .../irrelevantSizeOverrideInJava.kt | 3 +- .../codegen/box/collections/mutableList.kt | 3 +- .../box/collections/platformValueContains.kt | 3 +- .../codegen/box/collections/readOnlyList.kt | 3 +- .../codegen/box/collections/readOnlyMap.kt | 3 +- .../codegen/box/collections/removeAtInt.kt | 3 +- .../codegen/box/collections/strList.kt | 3 +- .../codegen/box/controlStructures/kt2423.kt | 3 +- .../codegen/box/fullJdk/charBuffer.kt | 3 +- .../testData/codegen/box/fullJdk/classpath.kt | 3 +- .../testData/codegen/box/fullJdk/ifInWhile.kt | 3 +- .../box/fullJdk/intCountDownLatchExtension.kt | 13 +- .../testData/codegen/box/fullJdk/kt434.kt | 3 +- .../platformTypeAssertionStackTrace.kt | 3 +- .../javaInterop/objectMethods/cloneHashSet.kt | 5 +- .../objectMethods/cloneHierarchy.kt | 5 +- .../codegen/box/nonLocalReturns/kt6895.kt | 3 +- .../testData/codegen/box/objects/kt1136.kt | 5 +- .../functions/javaMethodsSmokeTest.kt | 3 +- .../mapping/types/rawTypeArgument.kt | 3 +- .../types/platformTypeClassifier.kt | 3 +- .../reflection/types/platformTypeToString.kt | 3 +- .../codegen/box/regressions/kt1202.kt | 6 +- .../codegen/box/regressions/kt1406.kt | 6 +- .../testData/codegen/box/toArray/toArray.kt | 11 +- .../box/toArray/toArrayAlreadyPresent.kt | 3 +- .../semantics/JsCodegenBoxTestGenerated.java | 431 ------------------ 38 files changed, 52 insertions(+), 523 deletions(-) diff --git a/compiler/testData/codegen/box/builtinStubMethods/delegationToArrayList.kt b/compiler/testData/codegen/box/builtinStubMethods/delegationToArrayList.kt index 5e95031745f..b9436fab469 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/delegationToArrayList.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/delegationToArrayList.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM import java.util.ArrayList diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractList.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractList.kt index 65df2f6f5f7..ba7fdde2891 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractList.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractList.kt @@ -1,3 +1,5 @@ +// TARGET_BACKEND: JVM + import java.util.AbstractList class A : AbstractList() { diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractMap.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractMap.kt index 6d6e11aee0b..c8bb76a50ba 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractMap.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractMap.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM import java.util.AbstractMap import java.util.Collections diff --git a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/mapEntry.kt b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/mapEntry.kt index c5032ac8e61..85ebbd34f5b 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/mapEntry.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/mapEntry.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // FILE: Test.java diff --git a/compiler/testData/codegen/box/builtinStubMethods/manyTypeParametersWithUpperBounds.kt b/compiler/testData/codegen/box/builtinStubMethods/manyTypeParametersWithUpperBounds.kt index c321a4a8be2..f906f817cce 100644 --- a/compiler/testData/codegen/box/builtinStubMethods/manyTypeParametersWithUpperBounds.kt +++ b/compiler/testData/codegen/box/builtinStubMethods/manyTypeParametersWithUpperBounds.kt @@ -1,13 +1,11 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - -import java.util.Collections +// TARGET_BACKEND: JVM +// WITH_RUNTIME class A : Set { override val size: Int get() = 0 override fun isEmpty(): Boolean = true override fun contains(o: W): Boolean = false - override fun iterator(): Iterator = Collections.emptySet().iterator() + override fun iterator(): Iterator = emptySet().iterator() override fun containsAll(c: Collection): Boolean = c.isEmpty() } diff --git a/compiler/testData/codegen/box/classes/kt2395.kt b/compiler/testData/codegen/box/classes/kt2395.kt index 40ee9b9495c..ccd1b1c5356 100644 --- a/compiler/testData/codegen/box/classes/kt2395.kt +++ b/compiler/testData/codegen/box/classes/kt2395.kt @@ -1,3 +1,5 @@ +// TARGET_BACKEND: JVM + import java.util.AbstractList class MyList(): AbstractList() { diff --git a/compiler/testData/codegen/box/collections/charSequence.kt b/compiler/testData/codegen/box/collections/charSequence.kt index 7fb8116de29..2e7a8611009 100644 --- a/compiler/testData/codegen/box/collections/charSequence.kt +++ b/compiler/testData/codegen/box/collections/charSequence.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // FILE: J.java diff --git a/compiler/testData/codegen/box/collections/implementCollectionThroughKotlin.kt b/compiler/testData/codegen/box/collections/implementCollectionThroughKotlin.kt index a1cfea537ab..036eb71f713 100644 --- a/compiler/testData/codegen/box/collections/implementCollectionThroughKotlin.kt +++ b/compiler/testData/codegen/box/collections/implementCollectionThroughKotlin.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // FILE: J.java diff --git a/compiler/testData/codegen/box/collections/irrelevantImplMutableList.kt b/compiler/testData/codegen/box/collections/irrelevantImplMutableList.kt index 3bb805e633b..353ad6ab61d 100644 --- a/compiler/testData/codegen/box/collections/irrelevantImplMutableList.kt +++ b/compiler/testData/codegen/box/collections/irrelevantImplMutableList.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // FILE: J.java diff --git a/compiler/testData/codegen/box/collections/irrelevantImplMutableListSubstitution.kt b/compiler/testData/codegen/box/collections/irrelevantImplMutableListSubstitution.kt index 9d05e955a55..6e60e2782f2 100644 --- a/compiler/testData/codegen/box/collections/irrelevantImplMutableListSubstitution.kt +++ b/compiler/testData/codegen/box/collections/irrelevantImplMutableListSubstitution.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // FILE: J.java diff --git a/compiler/testData/codegen/box/collections/irrelevantRemoveAtOverrideInJava.kt b/compiler/testData/codegen/box/collections/irrelevantRemoveAtOverrideInJava.kt index b0c6a0933b1..41af923e660 100644 --- a/compiler/testData/codegen/box/collections/irrelevantRemoveAtOverrideInJava.kt +++ b/compiler/testData/codegen/box/collections/irrelevantRemoveAtOverrideInJava.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // FILE: J.java diff --git a/compiler/testData/codegen/box/collections/irrelevantSizeOverrideInJava.kt b/compiler/testData/codegen/box/collections/irrelevantSizeOverrideInJava.kt index 1d201111a5c..b3d1023d3c7 100644 --- a/compiler/testData/codegen/box/collections/irrelevantSizeOverrideInJava.kt +++ b/compiler/testData/codegen/box/collections/irrelevantSizeOverrideInJava.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // FILE: J.java diff --git a/compiler/testData/codegen/box/collections/mutableList.kt b/compiler/testData/codegen/box/collections/mutableList.kt index 25666374a31..8941b444032 100644 --- a/compiler/testData/codegen/box/collections/mutableList.kt +++ b/compiler/testData/codegen/box/collections/mutableList.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // FILE: J.java diff --git a/compiler/testData/codegen/box/collections/platformValueContains.kt b/compiler/testData/codegen/box/collections/platformValueContains.kt index 89b1307e6e7..14d2cece53c 100644 --- a/compiler/testData/codegen/box/collections/platformValueContains.kt +++ b/compiler/testData/codegen/box/collections/platformValueContains.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // FILE: J.java diff --git a/compiler/testData/codegen/box/collections/readOnlyList.kt b/compiler/testData/codegen/box/collections/readOnlyList.kt index bb6b3ef899b..041ec52be0b 100644 --- a/compiler/testData/codegen/box/collections/readOnlyList.kt +++ b/compiler/testData/codegen/box/collections/readOnlyList.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // FILE: J.java diff --git a/compiler/testData/codegen/box/collections/readOnlyMap.kt b/compiler/testData/codegen/box/collections/readOnlyMap.kt index ce2d8161ff7..89fd8d60c90 100644 --- a/compiler/testData/codegen/box/collections/readOnlyMap.kt +++ b/compiler/testData/codegen/box/collections/readOnlyMap.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // FILE: J.java diff --git a/compiler/testData/codegen/box/collections/removeAtInt.kt b/compiler/testData/codegen/box/collections/removeAtInt.kt index 6f60c9dd223..8cb05571d02 100644 --- a/compiler/testData/codegen/box/collections/removeAtInt.kt +++ b/compiler/testData/codegen/box/collections/removeAtInt.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // FILE: J.java diff --git a/compiler/testData/codegen/box/collections/strList.kt b/compiler/testData/codegen/box/collections/strList.kt index 8fc0e568e5d..b6d42fdbaff 100644 --- a/compiler/testData/codegen/box/collections/strList.kt +++ b/compiler/testData/codegen/box/collections/strList.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // FILE: J.java diff --git a/compiler/testData/codegen/box/controlStructures/kt2423.kt b/compiler/testData/codegen/box/controlStructures/kt2423.kt index 326d2a299bf..c6390b86d3c 100644 --- a/compiler/testData/codegen/box/controlStructures/kt2423.kt +++ b/compiler/testData/codegen/box/controlStructures/kt2423.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // WITH_RUNTIME // FULL_JDK diff --git a/compiler/testData/codegen/box/fullJdk/charBuffer.kt b/compiler/testData/codegen/box/fullJdk/charBuffer.kt index 0696807c5fd..7d7f2702e91 100644 --- a/compiler/testData/codegen/box/fullJdk/charBuffer.kt +++ b/compiler/testData/codegen/box/fullJdk/charBuffer.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // FULL_JDK diff --git a/compiler/testData/codegen/box/fullJdk/classpath.kt b/compiler/testData/codegen/box/fullJdk/classpath.kt index d2c32c97d62..6277a2ffc6c 100644 --- a/compiler/testData/codegen/box/fullJdk/classpath.kt +++ b/compiler/testData/codegen/box/fullJdk/classpath.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // FULL_JDK diff --git a/compiler/testData/codegen/box/fullJdk/ifInWhile.kt b/compiler/testData/codegen/box/fullJdk/ifInWhile.kt index 4e758a0911b..8831f244021 100644 --- a/compiler/testData/codegen/box/fullJdk/ifInWhile.kt +++ b/compiler/testData/codegen/box/fullJdk/ifInWhile.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // FULL_JDK diff --git a/compiler/testData/codegen/box/fullJdk/intCountDownLatchExtension.kt b/compiler/testData/codegen/box/fullJdk/intCountDownLatchExtension.kt index 016ce9c48d9..de02f10104e 100644 --- a/compiler/testData/codegen/box/fullJdk/intCountDownLatchExtension.kt +++ b/compiler/testData/codegen/box/fullJdk/intCountDownLatchExtension.kt @@ -1,20 +1,19 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // FULL_JDK -import java.util.concurrent.atomic.AtomicInteger; -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.locks.ReentrantLock; +import java.util.concurrent.atomic.AtomicInteger +import java.util.concurrent.CountDownLatch +import java.util.concurrent.locks.ReentrantLock -fun Int.latch(op: CountDownLatch.() -> T) : T { +fun Int.latch(op: CountDownLatch.() -> T) : T { val cdl = CountDownLatch(this) val res = cdl.op() cdl.await() return res } -fun id(op : ()->Unit) = op() +fun id(op: () -> Unit) = op() fun box() : String { 1.latch{ diff --git a/compiler/testData/codegen/box/fullJdk/kt434.kt b/compiler/testData/codegen/box/fullJdk/kt434.kt index 84e0da13ca7..1037c13e217 100644 --- a/compiler/testData/codegen/box/fullJdk/kt434.kt +++ b/compiler/testData/codegen/box/fullJdk/kt434.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // FULL_JDK diff --git a/compiler/testData/codegen/box/fullJdk/platformTypeAssertionStackTrace.kt b/compiler/testData/codegen/box/fullJdk/platformTypeAssertionStackTrace.kt index d387269478d..b61651eedad 100644 --- a/compiler/testData/codegen/box/fullJdk/platformTypeAssertionStackTrace.kt +++ b/compiler/testData/codegen/box/fullJdk/platformTypeAssertionStackTrace.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // FULL_JDK diff --git a/compiler/testData/codegen/box/javaInterop/objectMethods/cloneHashSet.kt b/compiler/testData/codegen/box/javaInterop/objectMethods/cloneHashSet.kt index 083ac03532d..2ec3c2d0538 100644 --- a/compiler/testData/codegen/box/javaInterop/objectMethods/cloneHashSet.kt +++ b/compiler/testData/codegen/box/javaInterop/objectMethods/cloneHashSet.kt @@ -1,7 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - -import java.util.HashSet +// TARGET_BACKEND: JVM fun box(): String { val a = HashSet() diff --git a/compiler/testData/codegen/box/javaInterop/objectMethods/cloneHierarchy.kt b/compiler/testData/codegen/box/javaInterop/objectMethods/cloneHierarchy.kt index 78915ff587d..123e036c5cf 100644 --- a/compiler/testData/codegen/box/javaInterop/objectMethods/cloneHierarchy.kt +++ b/compiler/testData/codegen/box/javaInterop/objectMethods/cloneHierarchy.kt @@ -1,7 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - -import java.util.ArrayList +// TARGET_BACKEND: JVM open class A : Cloneable { public override fun clone(): A = super.clone() as A diff --git a/compiler/testData/codegen/box/nonLocalReturns/kt6895.kt b/compiler/testData/codegen/box/nonLocalReturns/kt6895.kt index ca1b1af5315..4e6fb1160a6 100644 --- a/compiler/testData/codegen/box/nonLocalReturns/kt6895.kt +++ b/compiler/testData/codegen/box/nonLocalReturns/kt6895.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // WITH_RUNTIME diff --git a/compiler/testData/codegen/box/objects/kt1136.kt b/compiler/testData/codegen/box/objects/kt1136.kt index 697b9053156..9caf5855971 100644 --- a/compiler/testData/codegen/box/objects/kt1136.kt +++ b/compiler/testData/codegen/box/objects/kt1136.kt @@ -1,7 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - -import java.util.ArrayList +// TARGET_BACKEND: JVM public object SomeObject { private val workerThread = object : Thread() { diff --git a/compiler/testData/codegen/box/reflection/functions/javaMethodsSmokeTest.kt b/compiler/testData/codegen/box/reflection/functions/javaMethodsSmokeTest.kt index 71c50b767cc..513242ff191 100644 --- a/compiler/testData/codegen/box/reflection/functions/javaMethodsSmokeTest.kt +++ b/compiler/testData/codegen/box/reflection/functions/javaMethodsSmokeTest.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // WITH_REFLECT // FILE: J.java diff --git a/compiler/testData/codegen/box/reflection/mapping/types/rawTypeArgument.kt b/compiler/testData/codegen/box/reflection/mapping/types/rawTypeArgument.kt index 7c25d2e75ad..dff36ee7e4e 100644 --- a/compiler/testData/codegen/box/reflection/mapping/types/rawTypeArgument.kt +++ b/compiler/testData/codegen/box/reflection/mapping/types/rawTypeArgument.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // WITH_REFLECT // FILE: J.java diff --git a/compiler/testData/codegen/box/reflection/types/platformTypeClassifier.kt b/compiler/testData/codegen/box/reflection/types/platformTypeClassifier.kt index cc033df6d49..8487647d634 100644 --- a/compiler/testData/codegen/box/reflection/types/platformTypeClassifier.kt +++ b/compiler/testData/codegen/box/reflection/types/platformTypeClassifier.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // WITH_REFLECT // FILE: J.java diff --git a/compiler/testData/codegen/box/reflection/types/platformTypeToString.kt b/compiler/testData/codegen/box/reflection/types/platformTypeToString.kt index e371482ee8a..e339364b397 100644 --- a/compiler/testData/codegen/box/reflection/types/platformTypeToString.kt +++ b/compiler/testData/codegen/box/reflection/types/platformTypeToString.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // WITH_REFLECT // FILE: J.java diff --git a/compiler/testData/codegen/box/regressions/kt1202.kt b/compiler/testData/codegen/box/regressions/kt1202.kt index 297f13f80a3..139bfc770bf 100644 --- a/compiler/testData/codegen/box/regressions/kt1202.kt +++ b/compiler/testData/codegen/box/regressions/kt1202.kt @@ -1,12 +1,12 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // WITH_RUNTIME // FULL_JDK package testeval -import java.util.* +import java.util.LinkedList +import java.util.Deque interface Expression class Num(val value : Int) : Expression diff --git a/compiler/testData/codegen/box/regressions/kt1406.kt b/compiler/testData/codegen/box/regressions/kt1406.kt index 4e2d8ec05c5..171a734bec8 100644 --- a/compiler/testData/codegen/box/regressions/kt1406.kt +++ b/compiler/testData/codegen/box/regressions/kt1406.kt @@ -1,17 +1,15 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // WITH_RUNTIME // FULL_JDK package pack -import java.util.ArrayList import java.util.regex.Pattern class C{ public fun foo(){ - val items : Collection = java.util.Collections.singleton(Item())!! + val items : Collection = listOf(Item()) val result = ArrayList() val pattern: Pattern? = Pattern.compile("...") items.filterTo(result) { diff --git a/compiler/testData/codegen/box/toArray/toArray.kt b/compiler/testData/codegen/box/toArray/toArray.kt index d19c972af8d..0475226a268 100644 --- a/compiler/testData/codegen/box/toArray/toArray.kt +++ b/compiler/testData/codegen/box/toArray/toArray.kt @@ -1,14 +1,11 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // WITH_RUNTIME -import java.util.Arrays - class MyCollection(val delegate: Collection): Collection by delegate fun box(): String { - val collection = MyCollection(Arrays.asList(2, 3, 9)) as java.util.Collection<*> + val collection = MyCollection(listOf(2, 3, 9)) as java.util.Collection<*> val array1 = collection.toArray() val array2 = collection.toArray(arrayOfNulls(3) as Array) @@ -16,8 +13,8 @@ fun box(): String { if (!array1.isArrayOf()) return (array1 as Object).getClass().toString() if (!array2.isArrayOf()) return (array2 as Object).getClass().toString() - val s1 = Arrays.toString(array1) - val s2 = Arrays.toString(array2) + val s1 = array1.contentToString() + val s2 = array2.contentToString() if (s1 != "[2, 3, 9]") return "s1 = $s1" if (s2 != "[2, 3, 9]") return "s2 = $s2" diff --git a/compiler/testData/codegen/box/toArray/toArrayAlreadyPresent.kt b/compiler/testData/codegen/box/toArray/toArrayAlreadyPresent.kt index b6e6647252f..3be85f8dad4 100644 --- a/compiler/testData/codegen/box/toArray/toArrayAlreadyPresent.kt +++ b/compiler/testData/codegen/box/toArray/toArrayAlreadyPresent.kt @@ -1,5 +1,4 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS +// TARGET_BACKEND: JVM // WITH_RUNTIME diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java index e3d1d0e0a44..1a71b851458 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java @@ -1619,18 +1619,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { doTest(fileName); } - @TestMetadata("delegationToArrayList.kt") - public void testDelegationToArrayList() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/builtinStubMethods/delegationToArrayList.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - @TestMetadata("immutableRemove.kt") public void testImmutableRemove() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/builtinStubMethods/immutableRemove.kt"); @@ -1739,18 +1727,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); } - @TestMetadata("manyTypeParametersWithUpperBounds.kt") - public void testManyTypeParametersWithUpperBounds() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/builtinStubMethods/manyTypeParametersWithUpperBounds.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - @TestMetadata("Map.kt") public void testMap() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/builtinStubMethods/Map.kt"); @@ -1863,24 +1839,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class ExtendJavaCollections extends AbstractJsCodegenBoxTest { - @TestMetadata("abstractList.kt") - public void testAbstractList() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractList.kt"); - doTest(fileName); - } - - @TestMetadata("abstractMap.kt") - public void testAbstractMap() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractMap.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - @TestMetadata("abstractSet.kt") public void testAbstractSet() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractSet.kt"); @@ -1909,17 +1867,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { doTest(fileName); } - @TestMetadata("mapEntry.kt") - public void testMapEntry() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/mapEntry.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } } } @@ -3692,12 +3639,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { doTest(fileName); } - @TestMetadata("kt2395.kt") - public void testKt2395() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/classes/kt2395.kt"); - doTest(fileName); - } - @TestMetadata("kt2417.kt") public void testKt2417() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/classes/kt2417.kt"); @@ -4457,30 +4398,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/collections"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS, true); } - @TestMetadata("charSequence.kt") - public void testCharSequence() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/charSequence.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - - @TestMetadata("implementCollectionThroughKotlin.kt") - public void testImplementCollectionThroughKotlin() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/implementCollectionThroughKotlin.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - @TestMetadata("inSetWithSmartCast.kt") public void testInSetWithSmartCast() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/inSetWithSmartCast.kt"); @@ -4511,18 +4428,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); } - @TestMetadata("irrelevantImplMutableList.kt") - public void testIrrelevantImplMutableList() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/irrelevantImplMutableList.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - @TestMetadata("irrelevantImplMutableListKotlin.kt") public void testIrrelevantImplMutableListKotlin() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/irrelevantImplMutableListKotlin.kt"); @@ -4535,54 +4440,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); } - @TestMetadata("irrelevantImplMutableListSubstitution.kt") - public void testIrrelevantImplMutableListSubstitution() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/irrelevantImplMutableListSubstitution.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - - @TestMetadata("irrelevantRemoveAtOverrideInJava.kt") - public void testIrrelevantRemoveAtOverrideInJava() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/irrelevantRemoveAtOverrideInJava.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - - @TestMetadata("irrelevantSizeOverrideInJava.kt") - public void testIrrelevantSizeOverrideInJava() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/irrelevantSizeOverrideInJava.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - - @TestMetadata("mutableList.kt") - public void testMutableList() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/mutableList.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - @TestMetadata("noStubsInJavaSuperClass.kt") public void testNoStubsInJavaSuperClass() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/noStubsInJavaSuperClass.kt"); @@ -4595,66 +4452,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); } - @TestMetadata("platformValueContains.kt") - public void testPlatformValueContains() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/platformValueContains.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - - @TestMetadata("readOnlyList.kt") - public void testReadOnlyList() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/readOnlyList.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - - @TestMetadata("readOnlyMap.kt") - public void testReadOnlyMap() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/readOnlyMap.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - - @TestMetadata("removeAtInt.kt") - public void testRemoveAtInt() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/removeAtInt.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - - @TestMetadata("strList.kt") - public void testStrList() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/strList.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - @TestMetadata("toArrayInJavaClass.kt") public void testToArrayInJavaClass() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/toArrayInJavaClass.kt"); @@ -5006,18 +4803,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { doTest(fileName); } - @TestMetadata("kt2423.kt") - public void testKt2423() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/controlStructures/kt2423.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - @TestMetadata("kt2577.kt") public void testKt2577() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/controlStructures/kt2577.kt"); @@ -8387,78 +8172,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/fullJdk"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS, true); } - @TestMetadata("charBuffer.kt") - public void testCharBuffer() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/fullJdk/charBuffer.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - - @TestMetadata("classpath.kt") - public void testClasspath() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/fullJdk/classpath.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - - @TestMetadata("ifInWhile.kt") - public void testIfInWhile() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/fullJdk/ifInWhile.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - - @TestMetadata("intCountDownLatchExtension.kt") - public void testIntCountDownLatchExtension() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/fullJdk/intCountDownLatchExtension.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - - @TestMetadata("kt434.kt") - public void testKt434() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/fullJdk/kt434.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - - @TestMetadata("platformTypeAssertionStackTrace.kt") - public void testPlatformTypeAssertionStackTrace() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/fullJdk/platformTypeAssertionStackTrace.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - @TestMetadata("compiler/testData/codegen/box/fullJdk/native") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) @@ -9871,30 +9584,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); } - @TestMetadata("cloneHashSet.kt") - public void testCloneHashSet() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/javaInterop/objectMethods/cloneHashSet.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - - @TestMetadata("cloneHierarchy.kt") - public void testCloneHierarchy() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/javaInterop/objectMethods/cloneHierarchy.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - @TestMetadata("cloneableClassWithoutClone.kt") public void testCloneableClassWithoutClone() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/javaInterop/objectMethods/cloneableClassWithoutClone.kt"); @@ -11996,18 +11685,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/nonLocalReturns"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS, true); } - @TestMetadata("kt6895.kt") - public void testKt6895() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/nonLocalReturns/kt6895.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - @TestMetadata("kt9644let.kt") public void testKt9644let() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/nonLocalReturns/kt9644let.kt"); @@ -12104,18 +11781,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { doTest(fileName); } - @TestMetadata("kt1136.kt") - public void testKt1136() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/objects/kt1136.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - @TestMetadata("kt1186.kt") public void testKt1186() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/objects/kt1186.kt"); @@ -16153,18 +15818,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); } - @TestMetadata("javaMethodsSmokeTest.kt") - public void testJavaMethodsSmokeTest() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/functions/javaMethodsSmokeTest.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - @TestMetadata("platformName.kt") public void testPlatformName() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/functions/platformName.kt"); @@ -16776,18 +16429,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); } - @TestMetadata("rawTypeArgument.kt") - public void testRawTypeArgument() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/mapping/types/rawTypeArgument.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - @TestMetadata("supertypes.kt") public void testSupertypes() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/mapping/types/supertypes.kt"); @@ -18073,18 +17714,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); } - @TestMetadata("platformTypeClassifier.kt") - public void testPlatformTypeClassifier() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/platformTypeClassifier.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - @TestMetadata("platformTypeNotEqualToKotlinType.kt") public void testPlatformTypeNotEqualToKotlinType() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/platformTypeNotEqualToKotlinType.kt"); @@ -18097,18 +17726,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); } - @TestMetadata("platformTypeToString.kt") - public void testPlatformTypeToString() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/platformTypeToString.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - @TestMetadata("typeArguments.kt") public void testTypeArguments() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/typeArguments.kt"); @@ -18383,36 +18000,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); } - @TestMetadata("kt1202.kt") - public void testKt1202() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt1202.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - @TestMetadata("kt13381.kt") public void testKt13381() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt13381.kt"); doTest(fileName); } - @TestMetadata("kt1406.kt") - public void testKt1406() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt1406.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - @TestMetadata("kt14447.kt") public void testKt14447() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt14447.kt"); @@ -20603,30 +20196,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); } - @TestMetadata("toArray.kt") - public void testToArray() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/toArray/toArray.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - - @TestMetadata("toArrayAlreadyPresent.kt") - public void testToArrayAlreadyPresent() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/toArray/toArrayAlreadyPresent.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); - } - @TestMetadata("toTypedArray.kt") public void testToTypedArray() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/toArray/toTypedArray.kt");