From b5358122e226d68bb58129766be4a665a5420cf0 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Wed, 16 Nov 2016 19:50:10 +0300 Subject: [PATCH] JS: unmute shared box tests --- .../box/arrays/arrayConstructorsSimple.kt | 3 - .../box/arrays/multiArrayConstructors.kt | 3 - .../codegen/box/boxingOptimization/casts.kt | 3 - .../codegen/box/boxingOptimization/fold.kt | 3 - .../box/boxingOptimization/foldRange.kt | 3 - .../codegen/box/boxingOptimization/kt5844.kt | 3 - .../codegen/box/boxingOptimization/kt6842.kt | 3 - .../box/boxingOptimization/nullCheck.kt | 3 - .../box/boxingOptimization/progressions.kt | 3 - .../boxingOptimization/safeCallWithElvis.kt | 3 - .../codegen/box/boxingOptimization/simple.kt | 3 - .../simpleUninitializedMerge.kt | 3 - .../box/boxingOptimization/unsafeRemoving.kt | 3 - .../box/boxingOptimization/variables.kt | 3 - .../labeledExpressionCast.kt | 3 - .../box/controlStructures/factorialTest.kt | 3 - .../deadCodeElimination/emptyVariableRange.kt | 3 - .../localFunctions/callInlineLocalInLambda.kt | 3 - .../localFunctions/definedWithinLambda.kt | 3 - .../definedWithinLambdaInnerUsage1.kt | 3 - .../definedWithinLambdaInnerUsage2.kt | 3 - .../codegen/box/primitiveTypes/kt13023.kt | 3 - .../box/ranges/forInDownTo/forIntInDownTo.kt | 3 - .../forInDownTo/forIntInNonOptimizedDownTo.kt | 3 - .../box/ranges/forInDownTo/forLongInDownTo.kt | 3 - .../forInDownTo/forNullableIntInDownTo.kt | 3 - .../forInCollectionImplicitReceiverIndices.kt | 3 - .../forInIndices/forInCollectionIndices.kt | 3 - .../forInIndices/forInNonOptimizedIndices.kt | 3 - .../forInIndices/forInObjectArrayIndices.kt | 3 - .../forInPrimitiveArrayIndices.kt | 3 - .../forNullableIntInArrayIndices.kt | 3 - .../forNullableIntInCollectionIndices.kt | 3 - .../forInIndices/kt13241_CharSequence.kt | 3 - .../ranges/forInIndices/kt13241_Collection.kt | 3 - .../ranges/forInRangeWithImplicitReceiver.kt | 3 - ...rNullableIntInRangeWithImplicitReceiver.kt | 3 - .../reflection/classLiterals/genericClass.kt | 3 - .../classes/localClassSimpleName.kt | 3 - .../noReflectAtRuntime/propertyInstanceof.kt | 3 - .../testData/codegen/box/reified/checkcast.kt | 3 - .../codegen/box/reified/copyToArray.kt | 3 - .../testData/codegen/box/reified/safecast.kt | 3 - .../testData/codegen/box/reified/spreads.kt | 3 - .../testData/codegen/box/reified/varargs.kt | 3 - .../storeStackBeforeInline/differentTypes.kt | 3 - .../storeStackBeforeInline/primitiveMerge.kt | 3 - .../box/storeStackBeforeInline/simple.kt | 3 - .../unreachableMarker.kt | 3 - .../box/storeStackBeforeInline/withLambda.kt | 3 - .../accessorForProtectedInvokeVirtual.kt | 3 - .../codegen/box/vararg/spreadCopiesArray.kt | 3 - .../box/when/enumOptimization/bigEnum.kt | 3 - .../when/enumOptimization/duplicatingItems.kt | 3 - .../enumOptimization/enumInsideClassObject.kt | 3 - .../box/when/enumOptimization/expression.kt | 3 - .../enumOptimization/manyWhensWithinClass.kt | 3 - .../box/when/enumOptimization/nullability.kt | 3 - .../box/when/enumOptimization/subjectAny.kt | 3 - .../box/when/enumOptimization/withoutElse.kt | 3 - .../stringOptimization/duplicatingItems.kt | 3 - .../box/when/stringOptimization/expression.kt | 3 - .../when/stringOptimization/nullability.kt | 3 - .../box/when/stringOptimization/statement.kt | 3 - .../semantics/JsCodegenBoxTestGenerated.java | 518 +++--------------- 65 files changed, 70 insertions(+), 640 deletions(-) diff --git a/compiler/testData/codegen/box/arrays/arrayConstructorsSimple.kt b/compiler/testData/codegen/box/arrays/arrayConstructorsSimple.kt index d710e8943fd..1c28cf17aa0 100644 --- a/compiler/testData/codegen/box/arrays/arrayConstructorsSimple.kt +++ b/compiler/testData/codegen/box/arrays/arrayConstructorsSimple.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/arrays/multiArrayConstructors.kt b/compiler/testData/codegen/box/arrays/multiArrayConstructors.kt index bad02e334a3..77663265456 100644 --- a/compiler/testData/codegen/box/arrays/multiArrayConstructors.kt +++ b/compiler/testData/codegen/box/arrays/multiArrayConstructors.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/boxingOptimization/casts.kt b/compiler/testData/codegen/box/boxingOptimization/casts.kt index 36bc575ac5e..47ce676892b 100644 --- a/compiler/testData/codegen/box/boxingOptimization/casts.kt +++ b/compiler/testData/codegen/box/boxingOptimization/casts.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/boxingOptimization/fold.kt b/compiler/testData/codegen/box/boxingOptimization/fold.kt index 5309b30fd46..7bb1608458b 100644 --- a/compiler/testData/codegen/box/boxingOptimization/fold.kt +++ b/compiler/testData/codegen/box/boxingOptimization/fold.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/boxingOptimization/foldRange.kt b/compiler/testData/codegen/box/boxingOptimization/foldRange.kt index 49a7c306500..1127090af9e 100644 --- a/compiler/testData/codegen/box/boxingOptimization/foldRange.kt +++ b/compiler/testData/codegen/box/boxingOptimization/foldRange.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/boxingOptimization/kt5844.kt b/compiler/testData/codegen/box/boxingOptimization/kt5844.kt index 3893d78e7ea..acc4da5c729 100644 --- a/compiler/testData/codegen/box/boxingOptimization/kt5844.kt +++ b/compiler/testData/codegen/box/boxingOptimization/kt5844.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/boxingOptimization/kt6842.kt b/compiler/testData/codegen/box/boxingOptimization/kt6842.kt index 2243c0ac8cd..e3162a626a3 100644 --- a/compiler/testData/codegen/box/boxingOptimization/kt6842.kt +++ b/compiler/testData/codegen/box/boxingOptimization/kt6842.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/boxingOptimization/nullCheck.kt b/compiler/testData/codegen/box/boxingOptimization/nullCheck.kt index 2fcff2628a5..4ba74af4165 100644 --- a/compiler/testData/codegen/box/boxingOptimization/nullCheck.kt +++ b/compiler/testData/codegen/box/boxingOptimization/nullCheck.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/boxingOptimization/progressions.kt b/compiler/testData/codegen/box/boxingOptimization/progressions.kt index 58d8a6a942c..6892c12e89d 100644 --- a/compiler/testData/codegen/box/boxingOptimization/progressions.kt +++ b/compiler/testData/codegen/box/boxingOptimization/progressions.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/boxingOptimization/safeCallWithElvis.kt b/compiler/testData/codegen/box/boxingOptimization/safeCallWithElvis.kt index 999e5276b74..1ffec309237 100644 --- a/compiler/testData/codegen/box/boxingOptimization/safeCallWithElvis.kt +++ b/compiler/testData/codegen/box/boxingOptimization/safeCallWithElvis.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/boxingOptimization/simple.kt b/compiler/testData/codegen/box/boxingOptimization/simple.kt index 59b361fd452..fbe93a5233a 100644 --- a/compiler/testData/codegen/box/boxingOptimization/simple.kt +++ b/compiler/testData/codegen/box/boxingOptimization/simple.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/boxingOptimization/simpleUninitializedMerge.kt b/compiler/testData/codegen/box/boxingOptimization/simpleUninitializedMerge.kt index cd62e8e1bf3..9612abbe1bb 100644 --- a/compiler/testData/codegen/box/boxingOptimization/simpleUninitializedMerge.kt +++ b/compiler/testData/codegen/box/boxingOptimization/simpleUninitializedMerge.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/boxingOptimization/unsafeRemoving.kt b/compiler/testData/codegen/box/boxingOptimization/unsafeRemoving.kt index b590c50c2b6..e11a594361d 100644 --- a/compiler/testData/codegen/box/boxingOptimization/unsafeRemoving.kt +++ b/compiler/testData/codegen/box/boxingOptimization/unsafeRemoving.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/boxingOptimization/variables.kt b/compiler/testData/codegen/box/boxingOptimization/variables.kt index 7be86d7fc74..18f6bf3d71e 100644 --- a/compiler/testData/codegen/box/boxingOptimization/variables.kt +++ b/compiler/testData/codegen/box/boxingOptimization/variables.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/labeledExpressionCast.kt b/compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/labeledExpressionCast.kt index 2fa7e4a149f..229afac35f9 100644 --- a/compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/labeledExpressionCast.kt +++ b/compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/labeledExpressionCast.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - class Box(val value: T) fun box() : String { diff --git a/compiler/testData/codegen/box/controlStructures/factorialTest.kt b/compiler/testData/codegen/box/controlStructures/factorialTest.kt index a174755e384..fdb108f8bdc 100644 --- a/compiler/testData/codegen/box/controlStructures/factorialTest.kt +++ b/compiler/testData/codegen/box/controlStructures/factorialTest.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/deadCodeElimination/emptyVariableRange.kt b/compiler/testData/codegen/box/deadCodeElimination/emptyVariableRange.kt index f0713449980..c162fbeec34 100644 --- a/compiler/testData/codegen/box/deadCodeElimination/emptyVariableRange.kt +++ b/compiler/testData/codegen/box/deadCodeElimination/emptyVariableRange.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/functions/localFunctions/callInlineLocalInLambda.kt b/compiler/testData/codegen/box/functions/localFunctions/callInlineLocalInLambda.kt index 25b1e805da3..a59a7507800 100644 --- a/compiler/testData/codegen/box/functions/localFunctions/callInlineLocalInLambda.kt +++ b/compiler/testData/codegen/box/functions/localFunctions/callInlineLocalInLambda.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/functions/localFunctions/definedWithinLambda.kt b/compiler/testData/codegen/box/functions/localFunctions/definedWithinLambda.kt index 734e1373986..935d8b4963c 100644 --- a/compiler/testData/codegen/box/functions/localFunctions/definedWithinLambda.kt +++ b/compiler/testData/codegen/box/functions/localFunctions/definedWithinLambda.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/functions/localFunctions/definedWithinLambdaInnerUsage1.kt b/compiler/testData/codegen/box/functions/localFunctions/definedWithinLambdaInnerUsage1.kt index 6e65e4a0509..6609be78133 100644 --- a/compiler/testData/codegen/box/functions/localFunctions/definedWithinLambdaInnerUsage1.kt +++ b/compiler/testData/codegen/box/functions/localFunctions/definedWithinLambdaInnerUsage1.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/functions/localFunctions/definedWithinLambdaInnerUsage2.kt b/compiler/testData/codegen/box/functions/localFunctions/definedWithinLambdaInnerUsage2.kt index f9dd5abfe08..158e845f9ad 100644 --- a/compiler/testData/codegen/box/functions/localFunctions/definedWithinLambdaInnerUsage2.kt +++ b/compiler/testData/codegen/box/functions/localFunctions/definedWithinLambdaInnerUsage2.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/primitiveTypes/kt13023.kt b/compiler/testData/codegen/box/primitiveTypes/kt13023.kt index 74de8cb7e3d..602654d9563 100644 --- a/compiler/testData/codegen/box/primitiveTypes/kt13023.kt +++ b/compiler/testData/codegen/box/primitiveTypes/kt13023.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInDownTo/forIntInDownTo.kt b/compiler/testData/codegen/box/ranges/forInDownTo/forIntInDownTo.kt index 31c0d7988fe..fd046640e37 100644 --- a/compiler/testData/codegen/box/ranges/forInDownTo/forIntInDownTo.kt +++ b/compiler/testData/codegen/box/ranges/forInDownTo/forIntInDownTo.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInDownTo/forIntInNonOptimizedDownTo.kt b/compiler/testData/codegen/box/ranges/forInDownTo/forIntInNonOptimizedDownTo.kt index 589de085f6f..45214ff7d0e 100644 --- a/compiler/testData/codegen/box/ranges/forInDownTo/forIntInNonOptimizedDownTo.kt +++ b/compiler/testData/codegen/box/ranges/forInDownTo/forIntInNonOptimizedDownTo.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInDownTo/forLongInDownTo.kt b/compiler/testData/codegen/box/ranges/forInDownTo/forLongInDownTo.kt index 1465008e375..4d1e9793cce 100644 --- a/compiler/testData/codegen/box/ranges/forInDownTo/forLongInDownTo.kt +++ b/compiler/testData/codegen/box/ranges/forInDownTo/forLongInDownTo.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInDownTo/forNullableIntInDownTo.kt b/compiler/testData/codegen/box/ranges/forInDownTo/forNullableIntInDownTo.kt index 8b30d236d13..26109378c1b 100644 --- a/compiler/testData/codegen/box/ranges/forInDownTo/forNullableIntInDownTo.kt +++ b/compiler/testData/codegen/box/ranges/forInDownTo/forNullableIntInDownTo.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInIndices/forInCollectionImplicitReceiverIndices.kt b/compiler/testData/codegen/box/ranges/forInIndices/forInCollectionImplicitReceiverIndices.kt index 6de32dac366..ec23e8a7493 100644 --- a/compiler/testData/codegen/box/ranges/forInIndices/forInCollectionImplicitReceiverIndices.kt +++ b/compiler/testData/codegen/box/ranges/forInIndices/forInCollectionImplicitReceiverIndices.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInIndices/forInCollectionIndices.kt b/compiler/testData/codegen/box/ranges/forInIndices/forInCollectionIndices.kt index fbd302af682..f4b018a1ee8 100644 --- a/compiler/testData/codegen/box/ranges/forInIndices/forInCollectionIndices.kt +++ b/compiler/testData/codegen/box/ranges/forInIndices/forInCollectionIndices.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInIndices/forInNonOptimizedIndices.kt b/compiler/testData/codegen/box/ranges/forInIndices/forInNonOptimizedIndices.kt index ebd8f6146f6..b46b4812732 100644 --- a/compiler/testData/codegen/box/ranges/forInIndices/forInNonOptimizedIndices.kt +++ b/compiler/testData/codegen/box/ranges/forInIndices/forInNonOptimizedIndices.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInIndices/forInObjectArrayIndices.kt b/compiler/testData/codegen/box/ranges/forInIndices/forInObjectArrayIndices.kt index 4d02cd0b336..db45263759f 100644 --- a/compiler/testData/codegen/box/ranges/forInIndices/forInObjectArrayIndices.kt +++ b/compiler/testData/codegen/box/ranges/forInIndices/forInObjectArrayIndices.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInIndices/forInPrimitiveArrayIndices.kt b/compiler/testData/codegen/box/ranges/forInIndices/forInPrimitiveArrayIndices.kt index 96135d0aceb..e1e5fb603d7 100644 --- a/compiler/testData/codegen/box/ranges/forInIndices/forInPrimitiveArrayIndices.kt +++ b/compiler/testData/codegen/box/ranges/forInIndices/forInPrimitiveArrayIndices.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInIndices/forNullableIntInArrayIndices.kt b/compiler/testData/codegen/box/ranges/forInIndices/forNullableIntInArrayIndices.kt index e7bb824bde0..2fb6c207bda 100644 --- a/compiler/testData/codegen/box/ranges/forInIndices/forNullableIntInArrayIndices.kt +++ b/compiler/testData/codegen/box/ranges/forInIndices/forNullableIntInArrayIndices.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInIndices/forNullableIntInCollectionIndices.kt b/compiler/testData/codegen/box/ranges/forInIndices/forNullableIntInCollectionIndices.kt index a2d55fdb142..295f66bf5c9 100644 --- a/compiler/testData/codegen/box/ranges/forInIndices/forNullableIntInCollectionIndices.kt +++ b/compiler/testData/codegen/box/ranges/forInIndices/forNullableIntInCollectionIndices.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInIndices/kt13241_CharSequence.kt b/compiler/testData/codegen/box/ranges/forInIndices/kt13241_CharSequence.kt index 0e4b1c0d922..a0d45d7698e 100644 --- a/compiler/testData/codegen/box/ranges/forInIndices/kt13241_CharSequence.kt +++ b/compiler/testData/codegen/box/ranges/forInIndices/kt13241_CharSequence.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInIndices/kt13241_Collection.kt b/compiler/testData/codegen/box/ranges/forInIndices/kt13241_Collection.kt index 2ac971ed164..9bd4610d351 100644 --- a/compiler/testData/codegen/box/ranges/forInIndices/kt13241_Collection.kt +++ b/compiler/testData/codegen/box/ranges/forInIndices/kt13241_Collection.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forInRangeWithImplicitReceiver.kt b/compiler/testData/codegen/box/ranges/forInRangeWithImplicitReceiver.kt index 226074ed5bb..a29e5a77e5e 100644 --- a/compiler/testData/codegen/box/ranges/forInRangeWithImplicitReceiver.kt +++ b/compiler/testData/codegen/box/ranges/forInRangeWithImplicitReceiver.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/ranges/forNullableIntInRangeWithImplicitReceiver.kt b/compiler/testData/codegen/box/ranges/forNullableIntInRangeWithImplicitReceiver.kt index cbb5667c25d..8f9a4534ea6 100644 --- a/compiler/testData/codegen/box/ranges/forNullableIntInRangeWithImplicitReceiver.kt +++ b/compiler/testData/codegen/box/ranges/forNullableIntInRangeWithImplicitReceiver.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/reflection/classLiterals/genericClass.kt b/compiler/testData/codegen/box/reflection/classLiterals/genericClass.kt index bca81cde37b..c80289cb43b 100644 --- a/compiler/testData/codegen/box/reflection/classLiterals/genericClass.kt +++ b/compiler/testData/codegen/box/reflection/classLiterals/genericClass.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_REFLECT import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/reflection/classes/localClassSimpleName.kt b/compiler/testData/codegen/box/reflection/classes/localClassSimpleName.kt index 2fad7cbb973..027c49b58a8 100644 --- a/compiler/testData/codegen/box/reflection/classes/localClassSimpleName.kt +++ b/compiler/testData/codegen/box/reflection/classes/localClassSimpleName.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_REFLECT import kotlin.reflect.KClass diff --git a/compiler/testData/codegen/box/reflection/noReflectAtRuntime/propertyInstanceof.kt b/compiler/testData/codegen/box/reflection/noReflectAtRuntime/propertyInstanceof.kt index 289313e03b0..bbd34af42b9 100644 --- a/compiler/testData/codegen/box/reflection/noReflectAtRuntime/propertyInstanceof.kt +++ b/compiler/testData/codegen/box/reflection/noReflectAtRuntime/propertyInstanceof.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.reflect.* diff --git a/compiler/testData/codegen/box/reified/checkcast.kt b/compiler/testData/codegen/box/reified/checkcast.kt index a5964d92072..3b10a4bd5f8 100644 --- a/compiler/testData/codegen/box/reified/checkcast.kt +++ b/compiler/testData/codegen/box/reified/checkcast.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/reified/copyToArray.kt b/compiler/testData/codegen/box/reified/copyToArray.kt index 9d8934eba56..4cbf10bdec5 100644 --- a/compiler/testData/codegen/box/reified/copyToArray.kt +++ b/compiler/testData/codegen/box/reified/copyToArray.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/reified/safecast.kt b/compiler/testData/codegen/box/reified/safecast.kt index 15bfa3a82b6..10171dd33fe 100644 --- a/compiler/testData/codegen/box/reified/safecast.kt +++ b/compiler/testData/codegen/box/reified/safecast.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/reified/spreads.kt b/compiler/testData/codegen/box/reified/spreads.kt index 1a57b39aa7e..d0861109cbb 100644 --- a/compiler/testData/codegen/box/reified/spreads.kt +++ b/compiler/testData/codegen/box/reified/spreads.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/reified/varargs.kt b/compiler/testData/codegen/box/reified/varargs.kt index 68a5982f679..73eaba238dc 100644 --- a/compiler/testData/codegen/box/reified/varargs.kt +++ b/compiler/testData/codegen/box/reified/varargs.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/storeStackBeforeInline/differentTypes.kt b/compiler/testData/codegen/box/storeStackBeforeInline/differentTypes.kt index ac509b84de8..2d38eb00026 100644 --- a/compiler/testData/codegen/box/storeStackBeforeInline/differentTypes.kt +++ b/compiler/testData/codegen/box/storeStackBeforeInline/differentTypes.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/storeStackBeforeInline/primitiveMerge.kt b/compiler/testData/codegen/box/storeStackBeforeInline/primitiveMerge.kt index 9ed38c4cbd7..7a0c44138c9 100644 --- a/compiler/testData/codegen/box/storeStackBeforeInline/primitiveMerge.kt +++ b/compiler/testData/codegen/box/storeStackBeforeInline/primitiveMerge.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/storeStackBeforeInline/simple.kt b/compiler/testData/codegen/box/storeStackBeforeInline/simple.kt index a83549408db..02c77ef3f87 100644 --- a/compiler/testData/codegen/box/storeStackBeforeInline/simple.kt +++ b/compiler/testData/codegen/box/storeStackBeforeInline/simple.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/storeStackBeforeInline/unreachableMarker.kt b/compiler/testData/codegen/box/storeStackBeforeInline/unreachableMarker.kt index 403bf8b2c90..303293d3cd8 100644 --- a/compiler/testData/codegen/box/storeStackBeforeInline/unreachableMarker.kt +++ b/compiler/testData/codegen/box/storeStackBeforeInline/unreachableMarker.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/storeStackBeforeInline/withLambda.kt b/compiler/testData/codegen/box/storeStackBeforeInline/withLambda.kt index 17feeb5be36..44e64d5a9bc 100644 --- a/compiler/testData/codegen/box/storeStackBeforeInline/withLambda.kt +++ b/compiler/testData/codegen/box/storeStackBeforeInline/withLambda.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/syntheticAccessors/accessorForProtectedInvokeVirtual.kt b/compiler/testData/codegen/box/syntheticAccessors/accessorForProtectedInvokeVirtual.kt index b084d500a04..f68dda4d4b1 100644 --- a/compiler/testData/codegen/box/syntheticAccessors/accessorForProtectedInvokeVirtual.kt +++ b/compiler/testData/codegen/box/syntheticAccessors/accessorForProtectedInvokeVirtual.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME // FILE: 1.kt diff --git a/compiler/testData/codegen/box/vararg/spreadCopiesArray.kt b/compiler/testData/codegen/box/vararg/spreadCopiesArray.kt index 70beb606ccb..d5b7fc1fe65 100644 --- a/compiler/testData/codegen/box/vararg/spreadCopiesArray.kt +++ b/compiler/testData/codegen/box/vararg/spreadCopiesArray.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.* diff --git a/compiler/testData/codegen/box/when/enumOptimization/bigEnum.kt b/compiler/testData/codegen/box/when/enumOptimization/bigEnum.kt index b07201c1d70..fb76910b59d 100644 --- a/compiler/testData/codegen/box/when/enumOptimization/bigEnum.kt +++ b/compiler/testData/codegen/box/when/enumOptimization/bigEnum.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/when/enumOptimization/duplicatingItems.kt b/compiler/testData/codegen/box/when/enumOptimization/duplicatingItems.kt index 5986b5ef337..2760d6daa88 100644 --- a/compiler/testData/codegen/box/when/enumOptimization/duplicatingItems.kt +++ b/compiler/testData/codegen/box/when/enumOptimization/duplicatingItems.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/when/enumOptimization/enumInsideClassObject.kt b/compiler/testData/codegen/box/when/enumOptimization/enumInsideClassObject.kt index e1d9fa43d99..18131fed078 100644 --- a/compiler/testData/codegen/box/when/enumOptimization/enumInsideClassObject.kt +++ b/compiler/testData/codegen/box/when/enumOptimization/enumInsideClassObject.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/when/enumOptimization/expression.kt b/compiler/testData/codegen/box/when/enumOptimization/expression.kt index 4f82b9007c9..e1774794dea 100644 --- a/compiler/testData/codegen/box/when/enumOptimization/expression.kt +++ b/compiler/testData/codegen/box/when/enumOptimization/expression.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/when/enumOptimization/manyWhensWithinClass.kt b/compiler/testData/codegen/box/when/enumOptimization/manyWhensWithinClass.kt index d5101818084..3a29f080cb3 100644 --- a/compiler/testData/codegen/box/when/enumOptimization/manyWhensWithinClass.kt +++ b/compiler/testData/codegen/box/when/enumOptimization/manyWhensWithinClass.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/when/enumOptimization/nullability.kt b/compiler/testData/codegen/box/when/enumOptimization/nullability.kt index 06d3c8fa9b7..d8734f77526 100644 --- a/compiler/testData/codegen/box/when/enumOptimization/nullability.kt +++ b/compiler/testData/codegen/box/when/enumOptimization/nullability.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/when/enumOptimization/subjectAny.kt b/compiler/testData/codegen/box/when/enumOptimization/subjectAny.kt index 902e9559e11..0f21003c5f6 100644 --- a/compiler/testData/codegen/box/when/enumOptimization/subjectAny.kt +++ b/compiler/testData/codegen/box/when/enumOptimization/subjectAny.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/when/enumOptimization/withoutElse.kt b/compiler/testData/codegen/box/when/enumOptimization/withoutElse.kt index f503ab0c01f..abaea695949 100644 --- a/compiler/testData/codegen/box/when/enumOptimization/withoutElse.kt +++ b/compiler/testData/codegen/box/when/enumOptimization/withoutElse.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/when/stringOptimization/duplicatingItems.kt b/compiler/testData/codegen/box/when/stringOptimization/duplicatingItems.kt index 3b95da8987b..d000aa96cfa 100644 --- a/compiler/testData/codegen/box/when/stringOptimization/duplicatingItems.kt +++ b/compiler/testData/codegen/box/when/stringOptimization/duplicatingItems.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/when/stringOptimization/expression.kt b/compiler/testData/codegen/box/when/stringOptimization/expression.kt index 12be262fdf4..bc9759e64ee 100644 --- a/compiler/testData/codegen/box/when/stringOptimization/expression.kt +++ b/compiler/testData/codegen/box/when/stringOptimization/expression.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/when/stringOptimization/nullability.kt b/compiler/testData/codegen/box/when/stringOptimization/nullability.kt index 848556d7ca3..d2d047fb153 100644 --- a/compiler/testData/codegen/box/when/stringOptimization/nullability.kt +++ b/compiler/testData/codegen/box/when/stringOptimization/nullability.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/when/stringOptimization/statement.kt b/compiler/testData/codegen/box/when/stringOptimization/statement.kt index 1a56b83b702..4f9bdc05158 100644 --- a/compiler/testData/codegen/box/when/stringOptimization/statement.kt +++ b/compiler/testData/codegen/box/when/stringOptimization/statement.kt @@ -1,6 +1,3 @@ -// TODO: muted automatically, investigate should it be ran for JS or not -// IGNORE_BACKEND: JS - // WITH_RUNTIME import kotlin.test.assertEquals 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 c54745131b2..9f7bb7a9313 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 @@ -446,13 +446,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("arrayConstructorsSimple.kt") public void testArrayConstructorsSimple() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/arrayConstructorsSimple.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("arrayGetAssignMultiIndex.kt") @@ -830,13 +824,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("multiArrayConstructors.kt") public void testMultiArrayConstructors() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/arrays/multiArrayConstructors.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("nonLocalReturnArrayConstructor.kt") @@ -1115,13 +1103,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("casts.kt") public void testCasts() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/boxingOptimization/casts.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("checkcastAndInstanceOf.kt") @@ -1139,25 +1121,13 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("fold.kt") public void testFold() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/boxingOptimization/fold.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("foldRange.kt") public void testFoldRange() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/boxingOptimization/foldRange.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("kt5493.kt") @@ -1175,13 +1145,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("kt5844.kt") public void testKt5844() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/boxingOptimization/kt5844.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("kt6047.kt") @@ -1199,97 +1163,49 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("kt6842.kt") public void testKt6842() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/boxingOptimization/kt6842.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("nullCheck.kt") public void testNullCheck() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/boxingOptimization/nullCheck.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("progressions.kt") public void testProgressions() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/boxingOptimization/progressions.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("safeCallWithElvis.kt") public void testSafeCallWithElvis() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/boxingOptimization/safeCallWithElvis.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("simple.kt") public void testSimple() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/boxingOptimization/simple.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("simpleUninitializedMerge.kt") public void testSimpleUninitializedMerge() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/boxingOptimization/simpleUninitializedMerge.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("unsafeRemoving.kt") public void testUnsafeRemoving() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/boxingOptimization/unsafeRemoving.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("variables.kt") public void testVariables() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/boxingOptimization/variables.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } } @@ -3097,13 +3013,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("labeledExpressionCast.kt") public void testLabeledExpressionCast() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/casts/literalExpressionAsGenericArgument/labeledExpressionCast.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("parenthesizedExpressionCast.kt") @@ -4931,13 +4841,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("factorialTest.kt") public void testFactorialTest() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/controlStructures/factorialTest.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("finallyOnEmptyReturn.kt") @@ -6434,13 +6338,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("emptyVariableRange.kt") public void testEmptyVariableRange() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/deadCodeElimination/emptyVariableRange.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("intersectingVariableRange.kt") @@ -7108,6 +7006,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { doTest(fileName); } + @TestMetadata("kt13557.kt") + public void testKt13557() throws Exception { + String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/kt13557.kt"); + doTest(fileName); + } + @TestMetadata("localVal.kt") public void testLocalVal() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/local/localVal.kt"); @@ -9067,49 +8971,25 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("callInlineLocalInLambda.kt") public void testCallInlineLocalInLambda() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/functions/localFunctions/callInlineLocalInLambda.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("definedWithinLambda.kt") public void testDefinedWithinLambda() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/functions/localFunctions/definedWithinLambda.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("definedWithinLambdaInnerUsage1.kt") public void testDefinedWithinLambdaInnerUsage1() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/functions/localFunctions/definedWithinLambdaInnerUsage1.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("definedWithinLambdaInnerUsage2.kt") public void testDefinedWithinLambdaInnerUsage2() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/functions/localFunctions/definedWithinLambdaInnerUsage2.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("kt2895.kt") @@ -12899,13 +12779,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("kt13023.kt") public void testKt13023() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/primitiveTypes/kt13023.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("kt1508.kt") @@ -14009,13 +13883,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("forInRangeWithImplicitReceiver.kt") public void testForInRangeWithImplicitReceiver() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInRangeWithImplicitReceiver.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("forIntRange.kt") @@ -14027,13 +13895,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("forNullableIntInRangeWithImplicitReceiver.kt") public void testForNullableIntInRangeWithImplicitReceiver() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forNullableIntInRangeWithImplicitReceiver.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("multiAssignmentIterationOverIntRange.kt") @@ -14449,49 +14311,25 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("forIntInDownTo.kt") public void testForIntInDownTo() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInDownTo/forIntInDownTo.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("forIntInNonOptimizedDownTo.kt") public void testForIntInNonOptimizedDownTo() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInDownTo/forIntInNonOptimizedDownTo.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("forLongInDownTo.kt") public void testForLongInDownTo() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInDownTo/forLongInDownTo.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("forNullableIntInDownTo.kt") public void testForNullableIntInDownTo() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInDownTo/forNullableIntInDownTo.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } } @@ -14512,85 +14350,43 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("forInCollectionImplicitReceiverIndices.kt") public void testForInCollectionImplicitReceiverIndices() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInIndices/forInCollectionImplicitReceiverIndices.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("forInCollectionIndices.kt") public void testForInCollectionIndices() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInIndices/forInCollectionIndices.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("forInNonOptimizedIndices.kt") public void testForInNonOptimizedIndices() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInIndices/forInNonOptimizedIndices.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("forInObjectArrayIndices.kt") public void testForInObjectArrayIndices() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInIndices/forInObjectArrayIndices.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("forInPrimitiveArrayIndices.kt") public void testForInPrimitiveArrayIndices() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInIndices/forInPrimitiveArrayIndices.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("forNullableIntInArrayIndices.kt") public void testForNullableIntInArrayIndices() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInIndices/forNullableIntInArrayIndices.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("forNullableIntInCollectionIndices.kt") public void testForNullableIntInCollectionIndices() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInIndices/forNullableIntInCollectionIndices.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("kt12983_forInGenericArrayIndices.kt") @@ -14632,25 +14428,13 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("kt13241_CharSequence.kt") public void testKt13241_CharSequence() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInIndices/kt13241_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."); + doTest(fileName); } @TestMetadata("kt13241_Collection.kt") public void testKt13241_Collection() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/ranges/forInIndices/kt13241_Collection.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } } @@ -15577,13 +15361,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("genericClass.kt") public void testGenericClass() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/classLiterals/genericClass.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("reifiedTypeClassLiteral.kt") @@ -15676,13 +15454,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("localClassSimpleName.kt") public void testLocalClassSimpleName() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/classes/localClassSimpleName.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("nestedClasses.kt") @@ -17446,13 +17218,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("propertyInstanceof.kt") public void testPropertyInstanceof() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/noReflectAtRuntime/propertyInstanceof.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("reifiedTypeJavaClass.kt") @@ -19133,25 +18899,13 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("checkcast.kt") public void testCheckcast() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reified/checkcast.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("copyToArray.kt") public void testCopyToArray() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reified/copyToArray.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("DIExample.kt") @@ -19361,13 +19115,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("safecast.kt") public void testSafecast() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reified/safecast.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("sameIndexRecursive.kt") @@ -19385,25 +19133,13 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("spreads.kt") public void testSpreads() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reified/spreads.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("varargs.kt") public void testVarargs() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reified/varargs.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("compiler/testData/codegen/box/reified/arraysReification") @@ -20267,61 +20003,31 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("differentTypes.kt") public void testDifferentTypes() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/storeStackBeforeInline/differentTypes.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("primitiveMerge.kt") public void testPrimitiveMerge() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/storeStackBeforeInline/primitiveMerge.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("simple.kt") public void testSimple() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/storeStackBeforeInline/simple.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("unreachableMarker.kt") public void testUnreachableMarker() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/storeStackBeforeInline/unreachableMarker.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("withLambda.kt") public void testWithLambda() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/storeStackBeforeInline/withLambda.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } } @@ -20785,13 +20491,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("accessorForProtectedInvokeVirtual.kt") public void testAccessorForProtectedInvokeVirtual() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/syntheticAccessors/accessorForProtectedInvokeVirtual.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } public void testAllFilesPresentInSyntheticAccessors() throws Exception { @@ -21608,13 +21308,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("spreadCopiesArray.kt") public void testSpreadCopiesArray() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/vararg/spreadCopiesArray.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("varargInFunParam.kt") @@ -21865,49 +21559,25 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("bigEnum.kt") public void testBigEnum() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/when/enumOptimization/bigEnum.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("duplicatingItems.kt") public void testDuplicatingItems() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/when/enumOptimization/duplicatingItems.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("enumInsideClassObject.kt") public void testEnumInsideClassObject() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/when/enumOptimization/enumInsideClassObject.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("expression.kt") public void testExpression() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/when/enumOptimization/expression.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("functionLiteralInTopLevel.kt") @@ -21919,13 +21589,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("manyWhensWithinClass.kt") public void testManyWhensWithinClass() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/when/enumOptimization/manyWhensWithinClass.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("nonConstantEnum.kt") @@ -21937,13 +21601,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("nullability.kt") public void testNullability() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/when/enumOptimization/nullability.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("nullableEnum.kt") @@ -21955,25 +21613,13 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("subjectAny.kt") public void testSubjectAny() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/when/enumOptimization/subjectAny.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("withoutElse.kt") public void testWithoutElse() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/when/enumOptimization/withoutElse.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } } @@ -21988,13 +21634,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("duplicatingItems.kt") public void testDuplicatingItems() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/when/stringOptimization/duplicatingItems.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("duplicatingItemsSameHashCode.kt") @@ -22012,25 +21652,13 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("expression.kt") public void testExpression() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/when/stringOptimization/expression.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("nullability.kt") public void testNullability() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/when/stringOptimization/nullability.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } @TestMetadata("sameHashCode.kt") @@ -22048,13 +21676,7 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { @TestMetadata("statement.kt") public void testStatement() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/when/stringOptimization/statement.kt"); - try { - doTest(fileName); - } - catch (Throwable ignore) { - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); + doTest(fileName); } } }