From 4f9b54da269801eeeea1d755f68ff8674d3ec5b0 Mon Sep 17 00:00:00 2001 From: Igor Yakovlev Date: Thu, 25 Nov 2021 18:23:09 +0100 Subject: [PATCH] [WASM] Remove ignore from wasm std text tests --- .../box/callableReference/adaptedReferences/inlineDefault.kt | 2 -- .../box/callableReference/adaptedReferences/inlineVararg.kt | 2 -- .../codegen/box/classes/comanionObjectFieldVsClassField.kt | 2 -- .../testData/codegen/box/constants/foldingBinaryOpsUnsigned.kt | 1 - .../coroutines/featureIntersection/tailrec/controlFlowIf.kt | 2 -- .../coroutines/featureIntersection/tailrec/controlFlowWhen.kt | 2 -- .../redundantLocalsElimination/ktor_receivedMessage.kt | 2 -- compiler/testData/codegen/box/inlineArgsInPlace/kt49370.kt | 1 - .../box/inlineClasses/boxReturnValueOnOverride/kt35234.kt | 2 -- .../box/inlineClasses/boxReturnValueOnOverride/kt35234a.kt | 2 -- compiler/testData/codegen/box/inlineClasses/customIterator.kt | 2 -- compiler/testData/codegen/box/inlineClasses/kt28405.kt | 2 -- .../codegen/box/intrinsics/trimMarginWithBlankString.kt | 3 --- compiler/testData/codegen/box/multiDecl/component.kt | 2 -- compiler/testData/codegen/box/optimizations/kt20844.kt | 2 -- compiler/testData/codegen/box/properties/kt1398.kt | 2 -- .../testData/codegen/box/ranges/contains/inCharSequence.kt | 2 -- .../codegen/box/ranges/forInIndices/forInArrayListIndices.kt | 2 -- .../typeOf/nonReifiedTypeParameters/defaultUpperBound.kt | 2 +- .../typeOf/nonReifiedTypeParameters/simpleFunctionParameter.kt | 2 +- .../typeOf/nonReifiedTypeParameters/simplePropertyParameter.kt | 2 +- .../nonReifiedTypeParameters/starProjectionInUpperBound.kt | 2 -- compiler/testData/codegen/box/regressions/generic.kt | 2 -- compiler/testData/codegen/box/strings/kt13213.kt | 1 - compiler/testData/codegen/box/strings/trimOptimization.kt | 1 - .../testData/codegen/box/unsignedTypes/unsignedLongToString.kt | 2 -- .../unsignedTypePrefixIncrementDecrementBoxing.kt | 2 -- .../unsignedTypes/unsignedTypeValuesInsideStringTemplates.kt | 2 -- compiler/testData/codegen/box/when/kt45081.kt | 2 -- .../callableReference/adaptedReferences/inlineDefault.kt | 2 -- 30 files changed, 3 insertions(+), 54 deletions(-) diff --git a/compiler/testData/codegen/box/callableReference/adaptedReferences/inlineDefault.kt b/compiler/testData/codegen/box/callableReference/adaptedReferences/inlineDefault.kt index 3bbdc476694..187e7ef32c2 100644 --- a/compiler/testData/codegen/box/callableReference/adaptedReferences/inlineDefault.kt +++ b/compiler/testData/codegen/box/callableReference/adaptedReferences/inlineDefault.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT // WITH_STDLIB inline fun foo(mkString: () -> String): String = diff --git a/compiler/testData/codegen/box/callableReference/adaptedReferences/inlineVararg.kt b/compiler/testData/codegen/box/callableReference/adaptedReferences/inlineVararg.kt index 228121eb98c..8ac7cef7504 100644 --- a/compiler/testData/codegen/box/callableReference/adaptedReferences/inlineVararg.kt +++ b/compiler/testData/codegen/box/callableReference/adaptedReferences/inlineVararg.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: IGNORED_IN_JS // WITH_STDLIB inline fun foo(mkString: (Char, Char) -> String): String = diff --git a/compiler/testData/codegen/box/classes/comanionObjectFieldVsClassField.kt b/compiler/testData/codegen/box/classes/comanionObjectFieldVsClassField.kt index 80ba0b14d3f..c8f47b50fa1 100644 --- a/compiler/testData/codegen/box/classes/comanionObjectFieldVsClassField.kt +++ b/compiler/testData/codegen/box/classes/comanionObjectFieldVsClassField.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT // WITH_STDLIB class Host { diff --git a/compiler/testData/codegen/box/constants/foldingBinaryOpsUnsigned.kt b/compiler/testData/codegen/box/constants/foldingBinaryOpsUnsigned.kt index ae8a182acf4..c79ee672f50 100644 --- a/compiler/testData/codegen/box/constants/foldingBinaryOpsUnsigned.kt +++ b/compiler/testData/codegen/box/constants/foldingBinaryOpsUnsigned.kt @@ -1,5 +1,4 @@ // WITH_STDLIB -// IGNORE_BACKEND: WASM val a = "INT " + 0x8fffffffU val b = "BYTE " + 0x8ffU diff --git a/compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/controlFlowIf.kt b/compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/controlFlowIf.kt index 5115e44e239..a9e81368daa 100644 --- a/compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/controlFlowIf.kt +++ b/compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/controlFlowIf.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT // WITH_STDLIB // WITH_COROUTINES import helpers.* diff --git a/compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/controlFlowWhen.kt b/compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/controlFlowWhen.kt index ec24ac975e6..5f4ce39f3bf 100644 --- a/compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/controlFlowWhen.kt +++ b/compiler/testData/codegen/box/coroutines/featureIntersection/tailrec/controlFlowWhen.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT // WITH_STDLIB // WITH_COROUTINES import helpers.* diff --git a/compiler/testData/codegen/box/coroutines/redundantLocalsElimination/ktor_receivedMessage.kt b/compiler/testData/codegen/box/coroutines/redundantLocalsElimination/ktor_receivedMessage.kt index f137b60ad11..c5068114741 100644 --- a/compiler/testData/codegen/box/coroutines/redundantLocalsElimination/ktor_receivedMessage.kt +++ b/compiler/testData/codegen/box/coroutines/redundantLocalsElimination/ktor_receivedMessage.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT // WITH_STDLIB // WITH_COROUTINES import helpers.* diff --git a/compiler/testData/codegen/box/inlineArgsInPlace/kt49370.kt b/compiler/testData/codegen/box/inlineArgsInPlace/kt49370.kt index a7e7c3b6ebf..f541ccee802 100644 --- a/compiler/testData/codegen/box/inlineArgsInPlace/kt49370.kt +++ b/compiler/testData/codegen/box/inlineArgsInPlace/kt49370.kt @@ -1,6 +1,5 @@ // !OPT_IN: kotlin.ExperimentalStdlibApi // WITH_STDLIB -// IGNORE_BACKEND: WASM fun box(): String { 1L.mod("123a".indexOfAny("a".toCharArray())) diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234.kt index 973962a86f9..f2d400604a8 100644 --- a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234.kt +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT // WITH_STDLIB @Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE") diff --git a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234a.kt b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234a.kt index 028e83cc554..f6d835eded6 100644 --- a/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234a.kt +++ b/compiler/testData/codegen/box/inlineClasses/boxReturnValueOnOverride/kt35234a.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT // WITH_STDLIB @Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE") diff --git a/compiler/testData/codegen/box/inlineClasses/customIterator.kt b/compiler/testData/codegen/box/inlineClasses/customIterator.kt index 9d4771047eb..48d41ae3b34 100644 --- a/compiler/testData/codegen/box/inlineClasses/customIterator.kt +++ b/compiler/testData/codegen/box/inlineClasses/customIterator.kt @@ -1,6 +1,4 @@ // IGNORE_BACKEND: JVM -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT // WITH_STDLIB // KT-44529 diff --git a/compiler/testData/codegen/box/inlineClasses/kt28405.kt b/compiler/testData/codegen/box/inlineClasses/kt28405.kt index 5c4345e7514..cf29f6322a6 100644 --- a/compiler/testData/codegen/box/inlineClasses/kt28405.kt +++ b/compiler/testData/codegen/box/inlineClasses/kt28405.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT // WITH_STDLIB import kotlin.test.* diff --git a/compiler/testData/codegen/box/intrinsics/trimMarginWithBlankString.kt b/compiler/testData/codegen/box/intrinsics/trimMarginWithBlankString.kt index f06baec30a2..85682573b5e 100644 --- a/compiler/testData/codegen/box/intrinsics/trimMarginWithBlankString.kt +++ b/compiler/testData/codegen/box/intrinsics/trimMarginWithBlankString.kt @@ -1,8 +1,5 @@ // WITH_STDLIB -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT - fun box(): String { try { "a b c".trimMargin(" ") diff --git a/compiler/testData/codegen/box/multiDecl/component.kt b/compiler/testData/codegen/box/multiDecl/component.kt index e7b60b09668..16c1c7393f4 100644 --- a/compiler/testData/codegen/box/multiDecl/component.kt +++ b/compiler/testData/codegen/box/multiDecl/component.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT // WITH_STDLIB class S(val a: String, val b: String) { diff --git a/compiler/testData/codegen/box/optimizations/kt20844.kt b/compiler/testData/codegen/box/optimizations/kt20844.kt index 9c620fb5601..a8c69d5f6e5 100644 --- a/compiler/testData/codegen/box/optimizations/kt20844.kt +++ b/compiler/testData/codegen/box/optimizations/kt20844.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_GENERATED // WITH_STDLIB fun foo(x: String, ys: List) = diff --git a/compiler/testData/codegen/box/properties/kt1398.kt b/compiler/testData/codegen/box/properties/kt1398.kt index 5cb30a41685..e233720b628 100644 --- a/compiler/testData/codegen/box/properties/kt1398.kt +++ b/compiler/testData/codegen/box/properties/kt1398.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT // WITH_STDLIB open class Base(val bar: String) diff --git a/compiler/testData/codegen/box/ranges/contains/inCharSequence.kt b/compiler/testData/codegen/box/ranges/contains/inCharSequence.kt index 7903faa4c13..a3998ca4733 100644 --- a/compiler/testData/codegen/box/ranges/contains/inCharSequence.kt +++ b/compiler/testData/codegen/box/ranges/contains/inCharSequence.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT // WITH_STDLIB val charSeq: String = "123" diff --git a/compiler/testData/codegen/box/ranges/forInIndices/forInArrayListIndices.kt b/compiler/testData/codegen/box/ranges/forInIndices/forInArrayListIndices.kt index 799b99983bc..de4f308bbde 100644 --- a/compiler/testData/codegen/box/ranges/forInIndices/forInArrayListIndices.kt +++ b/compiler/testData/codegen/box/ranges/forInIndices/forInArrayListIndices.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT // WITH_STDLIB fun foo(): String { diff --git a/compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/defaultUpperBound.kt b/compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/defaultUpperBound.kt index 55c398da0e8..e9f9e707a3e 100644 --- a/compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/defaultUpperBound.kt +++ b/compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/defaultUpperBound.kt @@ -1,7 +1,7 @@ // WITH_REFLECT // KJS_WITH_FULL_RUNTIME // IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT +// WASM_MUTE_REASON: INVALID_TEST_DATA package test import kotlin.reflect.typeOf diff --git a/compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/simpleFunctionParameter.kt b/compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/simpleFunctionParameter.kt index 331998a4567..1839c1a0c72 100644 --- a/compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/simpleFunctionParameter.kt +++ b/compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/simpleFunctionParameter.kt @@ -1,7 +1,7 @@ // WITH_REFLECT // KJS_WITH_FULL_RUNTIME // IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT +// WASM_MUTE_REASON: INVALID_TEST_DATA package test import kotlin.reflect.typeOf diff --git a/compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/simplePropertyParameter.kt b/compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/simplePropertyParameter.kt index adb26885789..25bad1d4930 100644 --- a/compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/simplePropertyParameter.kt +++ b/compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/simplePropertyParameter.kt @@ -1,7 +1,7 @@ // WITH_REFLECT // KJS_WITH_FULL_RUNTIME // IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT +// WASM_MUTE_REASON: INVALID_TEST_DATA package test import kotlin.reflect.typeOf diff --git a/compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/starProjectionInUpperBound.kt b/compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/starProjectionInUpperBound.kt index caccacfe0c9..c16277faa8b 100644 --- a/compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/starProjectionInUpperBound.kt +++ b/compiler/testData/codegen/box/reflection/typeOf/nonReifiedTypeParameters/starProjectionInUpperBound.kt @@ -1,7 +1,5 @@ // WITH_REFLECT // KJS_WITH_FULL_RUNTIME -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT import kotlin.reflect.KType import kotlin.reflect.typeOf diff --git a/compiler/testData/codegen/box/regressions/generic.kt b/compiler/testData/codegen/box/regressions/generic.kt index 51237f8de9e..e22cd2def17 100644 --- a/compiler/testData/codegen/box/regressions/generic.kt +++ b/compiler/testData/codegen/box/regressions/generic.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT // WITH_STDLIB fun ArrayList.findAll(predicate: (T) -> Boolean): ArrayList { diff --git a/compiler/testData/codegen/box/strings/kt13213.kt b/compiler/testData/codegen/box/strings/kt13213.kt index c2128937192..612f8267023 100644 --- a/compiler/testData/codegen/box/strings/kt13213.kt +++ b/compiler/testData/codegen/box/strings/kt13213.kt @@ -1,5 +1,4 @@ // IGNORE_BACKEND: JVM -// IGNORE_BACKEND: WASM // WITH_STDLIB fun box(): String { diff --git a/compiler/testData/codegen/box/strings/trimOptimization.kt b/compiler/testData/codegen/box/strings/trimOptimization.kt index 45e1dc36369..6aa5540115d 100644 --- a/compiler/testData/codegen/box/strings/trimOptimization.kt +++ b/compiler/testData/codegen/box/strings/trimOptimization.kt @@ -1,6 +1,5 @@ // WITH_STDLIB // IGNORE_BACKEND: JS -// IGNORE_BACKEND: WASM import kotlin.test.assertEquals diff --git a/compiler/testData/codegen/box/unsignedTypes/unsignedLongToString.kt b/compiler/testData/codegen/box/unsignedTypes/unsignedLongToString.kt index 0c22b24edfb..e65649f8854 100644 --- a/compiler/testData/codegen/box/unsignedTypes/unsignedLongToString.kt +++ b/compiler/testData/codegen/box/unsignedTypes/unsignedLongToString.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT // WITH_STDLIB fun box(): String { diff --git a/compiler/testData/codegen/box/unsignedTypes/unsignedTypePrefixIncrementDecrementBoxing.kt b/compiler/testData/codegen/box/unsignedTypes/unsignedTypePrefixIncrementDecrementBoxing.kt index ef87af97f33..69204a99b26 100644 --- a/compiler/testData/codegen/box/unsignedTypes/unsignedTypePrefixIncrementDecrementBoxing.kt +++ b/compiler/testData/codegen/box/unsignedTypes/unsignedTypePrefixIncrementDecrementBoxing.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: ULONG_TOSTRING // KJS_WITH_FULL_RUNTIME // WITH_REFLECT diff --git a/compiler/testData/codegen/box/unsignedTypes/unsignedTypeValuesInsideStringTemplates.kt b/compiler/testData/codegen/box/unsignedTypes/unsignedTypeValuesInsideStringTemplates.kt index d23e783d8a7..25a0a0749d0 100644 --- a/compiler/testData/codegen/box/unsignedTypes/unsignedTypeValuesInsideStringTemplates.kt +++ b/compiler/testData/codegen/box/unsignedTypes/unsignedTypeValuesInsideStringTemplates.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT // WITH_STDLIB const val MAX_BYTE: UByte = 0xFFu diff --git a/compiler/testData/codegen/box/when/kt45081.kt b/compiler/testData/codegen/box/when/kt45081.kt index 488e4f96472..d5910d79b0e 100644 --- a/compiler/testData/codegen/box/when/kt45081.kt +++ b/compiler/testData/codegen/box/when/kt45081.kt @@ -1,6 +1,4 @@ // WITH_STDLIB -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT fun test(text: String): String { when (text.takeWhile { it.isLetter() }) { diff --git a/compiler/testData/codegen/boxInline/callableReference/adaptedReferences/inlineDefault.kt b/compiler/testData/codegen/boxInline/callableReference/adaptedReferences/inlineDefault.kt index 5cdede9416f..90a4f61c74e 100644 --- a/compiler/testData/codegen/boxInline/callableReference/adaptedReferences/inlineDefault.kt +++ b/compiler/testData/codegen/boxInline/callableReference/adaptedReferences/inlineDefault.kt @@ -1,5 +1,3 @@ -// IGNORE_BACKEND: WASM -// WASM_MUTE_REASON: STDLIB_TEXT // WITH_STDLIB // KJS_WITH_FULL_RUNTIME