From ac1a97ad83f513be125902db9acdf9a4b881bd17 Mon Sep 17 00:00:00 2001 From: Anton Bannykh Date: Tue, 10 Jul 2018 17:07:54 +0300 Subject: [PATCH] JS IR: unmute tests --- compiler/testData/codegen/box/binaryOp/callAny.kt | 1 - compiler/testData/codegen/box/binaryOp/compareBoxedChars.kt | 1 - compiler/testData/codegen/box/binaryOp/intrinsicAny.kt | 1 - compiler/testData/codegen/box/binaryOp/overflowChar.kt | 1 - compiler/testData/codegen/box/dataClasses/hashCode/char.kt | 1 - compiler/testData/codegen/box/dataClasses/privateValParams.kt | 1 - .../box/defaultArguments/function/extensionFunctionManyArgs.kt | 1 - .../defaultArguments/function/innerExtentionFunctionManyArgs.kt | 1 - .../box/extensionProperties/genericValForPrimitiveType.kt | 1 - .../box/extensionProperties/genericVarForPrimitiveType.kt | 1 - .../referToPropertyInCompanionObjectOfInlineClass.kt | 1 - .../superConstructorCall/objectExtendsLocalWithClosure.kt | 1 - compiler/testData/codegen/box/intrinsics/charToInt.kt | 1 - .../codegen/box/package/nullablePrimitiveNoFieldInitializer.kt | 1 - .../equalityWithObject/generated/boxedEqPrimitiveChar.kt | 1 - .../equalityWithObject/generated/primitiveEqBoxedChar.kt | 1 - .../equalityWithObject/generated/primitiveEqObjectChar.kt | 1 - .../codegen/box/primitiveTypes/equalsHashCodeToString.kt | 1 - .../codegen/box/primitiveTypes/incrementByteCharShort.kt | 1 - compiler/testData/codegen/box/primitiveTypes/kt2251.kt | 1 - compiler/testData/codegen/box/primitiveTypes/kt2794.kt | 1 - compiler/testData/codegen/box/primitiveTypes/kt4251.kt | 1 - .../testData/codegen/box/primitiveTypes/nullableCharBoolean.kt | 1 - compiler/testData/codegen/box/strings/kt3652.kt | 1 - js/js.translator/testData/box/char/charBinaryOperations.kt | 1 - js/js.translator/testData/box/char/charCompareToIntrinsic.kt | 1 - js/js.translator/testData/box/char/charConversions.kt | 1 - js/js.translator/testData/box/char/charElvis.kt | 1 - js/js.translator/testData/box/char/charEquals.kt | 1 - js/js.translator/testData/box/char/charIsCheck.kt | 1 - js/js.translator/testData/box/char/charUnaryOperations.kt | 1 - .../testData/box/inlineMultiFile/simpleCapturingInClass.kt | 1 - .../testData/box/inlineMultiFile/simpleCapturingInPackage.kt | 1 - .../testData/box/number/conversionsWithTruncation.kt | 1 - js/js.translator/testData/box/number/hashCode.kt | 1 - js/js.translator/testData/box/reified/isChar.kt | 1 - 36 files changed, 36 deletions(-) diff --git a/compiler/testData/codegen/box/binaryOp/callAny.kt b/compiler/testData/codegen/box/binaryOp/callAny.kt index e7006e7c01d..7969cb5ec79 100644 --- a/compiler/testData/codegen/box/binaryOp/callAny.kt +++ b/compiler/testData/codegen/box/binaryOp/callAny.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box(): String { val a1: Any = 1.toByte().plus(1) val a2: Any = 1.toShort().plus(1) diff --git a/compiler/testData/codegen/box/binaryOp/compareBoxedChars.kt b/compiler/testData/codegen/box/binaryOp/compareBoxedChars.kt index d1de8d0e2c1..f472ebfc47d 100644 --- a/compiler/testData/codegen/box/binaryOp/compareBoxedChars.kt +++ b/compiler/testData/codegen/box/binaryOp/compareBoxedChars.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun id(x: T) = x fun box(): String { diff --git a/compiler/testData/codegen/box/binaryOp/intrinsicAny.kt b/compiler/testData/codegen/box/binaryOp/intrinsicAny.kt index 575517841a9..fd240b08a58 100644 --- a/compiler/testData/codegen/box/binaryOp/intrinsicAny.kt +++ b/compiler/testData/codegen/box/binaryOp/intrinsicAny.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box(): String { val a1: Any = 1.toByte() + 1 val a2: Any = 1.toShort() + 1 diff --git a/compiler/testData/codegen/box/binaryOp/overflowChar.kt b/compiler/testData/codegen/box/binaryOp/overflowChar.kt index bae156b44f3..0f06f4969fd 100644 --- a/compiler/testData/codegen/box/binaryOp/overflowChar.kt +++ b/compiler/testData/codegen/box/binaryOp/overflowChar.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box(): String { val c1: Char = 0.toChar() val c2 = c1 - 1 diff --git a/compiler/testData/codegen/box/dataClasses/hashCode/char.kt b/compiler/testData/codegen/box/dataClasses/hashCode/char.kt index 4e86ec7bceb..e2ac5e67291 100644 --- a/compiler/testData/codegen/box/dataClasses/hashCode/char.kt +++ b/compiler/testData/codegen/box/dataClasses/hashCode/char.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR data class A(val a: Char) fun box() : String { diff --git a/compiler/testData/codegen/box/dataClasses/privateValParams.kt b/compiler/testData/codegen/box/dataClasses/privateValParams.kt index 52e477e2b86..d667588ab98 100644 --- a/compiler/testData/codegen/box/dataClasses/privateValParams.kt +++ b/compiler/testData/codegen/box/dataClasses/privateValParams.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR data class D(private val x: Long, private val y: Char) { fun foo() = "${component1()}${component2()}" } diff --git a/compiler/testData/codegen/box/defaultArguments/function/extensionFunctionManyArgs.kt b/compiler/testData/codegen/box/defaultArguments/function/extensionFunctionManyArgs.kt index 4a4769e9f09..82984a99369 100644 --- a/compiler/testData/codegen/box/defaultArguments/function/extensionFunctionManyArgs.kt +++ b/compiler/testData/codegen/box/defaultArguments/function/extensionFunctionManyArgs.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun Int.foo(a: Int = 1, b: Int = 2, c: Int = 3, diff --git a/compiler/testData/codegen/box/defaultArguments/function/innerExtentionFunctionManyArgs.kt b/compiler/testData/codegen/box/defaultArguments/function/innerExtentionFunctionManyArgs.kt index f4c41521926..3ed1be3d6c4 100644 --- a/compiler/testData/codegen/box/defaultArguments/function/innerExtentionFunctionManyArgs.kt +++ b/compiler/testData/codegen/box/defaultArguments/function/innerExtentionFunctionManyArgs.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR class A { fun Int.foo(a: Int = 1, b: Int = 2, diff --git a/compiler/testData/codegen/box/extensionProperties/genericValForPrimitiveType.kt b/compiler/testData/codegen/box/extensionProperties/genericValForPrimitiveType.kt index 855f122ee3c..787ea1c0245 100644 --- a/compiler/testData/codegen/box/extensionProperties/genericValForPrimitiveType.kt +++ b/compiler/testData/codegen/box/extensionProperties/genericValForPrimitiveType.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR val T.valProp: T get() = this diff --git a/compiler/testData/codegen/box/extensionProperties/genericVarForPrimitiveType.kt b/compiler/testData/codegen/box/extensionProperties/genericVarForPrimitiveType.kt index 6810741178c..a96514698c8 100644 --- a/compiler/testData/codegen/box/extensionProperties/genericVarForPrimitiveType.kt +++ b/compiler/testData/codegen/box/extensionProperties/genericVarForPrimitiveType.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR var T.varProp: T get() = this set(value: T) {} diff --git a/compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClass.kt b/compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClass.kt index 73e8b6d99f7..631f8a38c28 100644 --- a/compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClass.kt +++ b/compiler/testData/codegen/box/inlineClasses/referToPropertyInCompanionObjectOfInlineClass.kt @@ -1,6 +1,5 @@ // !LANGUAGE: +InlineClasses // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR inline class Foo(val c: Char) { companion object { diff --git a/compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsLocalWithClosure.kt b/compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsLocalWithClosure.kt index 5b7a2a2eb4d..62a55f762c8 100644 --- a/compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsLocalWithClosure.kt +++ b/compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsLocalWithClosure.kt @@ -1,5 +1,4 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR fun box(): String { val d = 42.0 val c = 'C' diff --git a/compiler/testData/codegen/box/intrinsics/charToInt.kt b/compiler/testData/codegen/box/intrinsics/charToInt.kt index 541f50c8834..371632e071c 100644 --- a/compiler/testData/codegen/box/intrinsics/charToInt.kt +++ b/compiler/testData/codegen/box/intrinsics/charToInt.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box(): String { val x: Any = 'A' var y = 0 diff --git a/compiler/testData/codegen/box/package/nullablePrimitiveNoFieldInitializer.kt b/compiler/testData/codegen/box/package/nullablePrimitiveNoFieldInitializer.kt index 3ab83195924..c0f72702d06 100644 --- a/compiler/testData/codegen/box/package/nullablePrimitiveNoFieldInitializer.kt +++ b/compiler/testData/codegen/box/package/nullablePrimitiveNoFieldInitializer.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR val zint : Int? = 1 val zlong : Long? = 2 val zbyte : Byte? = 3 diff --git a/compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/boxedEqPrimitiveChar.kt b/compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/boxedEqPrimitiveChar.kt index 92e311c5d63..589fe0b563f 100644 --- a/compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/boxedEqPrimitiveChar.kt +++ b/compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/boxedEqPrimitiveChar.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // Auto-generated by GeneratePrimitiveVsObjectEqualityTestData. Do not edit! val nx: Char? = '0' diff --git a/compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqBoxedChar.kt b/compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqBoxedChar.kt index de2be4b66cd..331ab442988 100644 --- a/compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqBoxedChar.kt +++ b/compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqBoxedChar.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // Auto-generated by GeneratePrimitiveVsObjectEqualityTestData. Do not edit! val nx: Char? = '0' diff --git a/compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqObjectChar.kt b/compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqObjectChar.kt index e54684476dc..6122439bcb6 100644 --- a/compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqObjectChar.kt +++ b/compiler/testData/codegen/box/primitiveTypes/equalityWithObject/generated/primitiveEqObjectChar.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // Auto-generated by GeneratePrimitiveVsObjectEqualityTestData. Do not edit! val nx: Any? = '0' diff --git a/compiler/testData/codegen/box/primitiveTypes/equalsHashCodeToString.kt b/compiler/testData/codegen/box/primitiveTypes/equalsHashCodeToString.kt index eee69de21f1..7d4684e70bd 100644 --- a/compiler/testData/codegen/box/primitiveTypes/equalsHashCodeToString.kt +++ b/compiler/testData/codegen/box/primitiveTypes/equalsHashCodeToString.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box(): String { val b: Byte = 42 val c: Char = 'z' diff --git a/compiler/testData/codegen/box/primitiveTypes/incrementByteCharShort.kt b/compiler/testData/codegen/box/primitiveTypes/incrementByteCharShort.kt index d596211c8fb..59b3f12b2ef 100644 --- a/compiler/testData/codegen/box/primitiveTypes/incrementByteCharShort.kt +++ b/compiler/testData/codegen/box/primitiveTypes/incrementByteCharShort.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun byteArg(b: Byte) {} fun charArg(c: Char) {} fun shortArg(s: Short) {} diff --git a/compiler/testData/codegen/box/primitiveTypes/kt2251.kt b/compiler/testData/codegen/box/primitiveTypes/kt2251.kt index d3ef9375f30..1c477a35d33 100644 --- a/compiler/testData/codegen/box/primitiveTypes/kt2251.kt +++ b/compiler/testData/codegen/box/primitiveTypes/kt2251.kt @@ -1,5 +1,4 @@ // IGNORE_BACKEND: JVM_IR -// IGNORE_BACKEND: JS_IR class A(var b: Byte) { fun c(d: Short) = (b + d.toByte()).toChar() } diff --git a/compiler/testData/codegen/box/primitiveTypes/kt2794.kt b/compiler/testData/codegen/box/primitiveTypes/kt2794.kt index aabf4f34c1c..bd6c80dced5 100644 --- a/compiler/testData/codegen/box/primitiveTypes/kt2794.kt +++ b/compiler/testData/codegen/box/primitiveTypes/kt2794.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box () : String { val b = 4.toByte() val s = 5.toShort() diff --git a/compiler/testData/codegen/box/primitiveTypes/kt4251.kt b/compiler/testData/codegen/box/primitiveTypes/kt4251.kt index 65eb83188a5..eda602589c0 100644 --- a/compiler/testData/codegen/box/primitiveTypes/kt4251.kt +++ b/compiler/testData/codegen/box/primitiveTypes/kt4251.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box(): String { val a: Char? = 'a' val result = a!! < 'b' diff --git a/compiler/testData/codegen/box/primitiveTypes/nullableCharBoolean.kt b/compiler/testData/codegen/box/primitiveTypes/nullableCharBoolean.kt index 3f889533b2f..ddc86b85777 100644 --- a/compiler/testData/codegen/box/primitiveTypes/nullableCharBoolean.kt +++ b/compiler/testData/codegen/box/primitiveTypes/nullableCharBoolean.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box(): String { val c: Char? = 'a' if (c!! - 'a' != 0) return "Fail c" diff --git a/compiler/testData/codegen/box/strings/kt3652.kt b/compiler/testData/codegen/box/strings/kt3652.kt index 4e7f880988c..f9e678089b8 100644 --- a/compiler/testData/codegen/box/strings/kt3652.kt +++ b/compiler/testData/codegen/box/strings/kt3652.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR fun box(): String { var a = 'a' diff --git a/js/js.translator/testData/box/char/charBinaryOperations.kt b/js/js.translator/testData/box/char/charBinaryOperations.kt index fd3b5fad943..e7216a56e0f 100644 --- a/js/js.translator/testData/box/char/charBinaryOperations.kt +++ b/js/js.translator/testData/box/char/charBinaryOperations.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1112 package foo diff --git a/js/js.translator/testData/box/char/charCompareToIntrinsic.kt b/js/js.translator/testData/box/char/charCompareToIntrinsic.kt index 247e7df9f58..0bb347a5af4 100644 --- a/js/js.translator/testData/box/char/charCompareToIntrinsic.kt +++ b/js/js.translator/testData/box/char/charCompareToIntrinsic.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1112 package foo diff --git a/js/js.translator/testData/box/char/charConversions.kt b/js/js.translator/testData/box/char/charConversions.kt index 58559da3e60..278e3517cd1 100644 --- a/js/js.translator/testData/box/char/charConversions.kt +++ b/js/js.translator/testData/box/char/charConversions.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1114 package foo diff --git a/js/js.translator/testData/box/char/charElvis.kt b/js/js.translator/testData/box/char/charElvis.kt index 3e7175a75d3..d8ec37ad4c4 100644 --- a/js/js.translator/testData/box/char/charElvis.kt +++ b/js/js.translator/testData/box/char/charElvis.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1112 package foo diff --git a/js/js.translator/testData/box/char/charEquals.kt b/js/js.translator/testData/box/char/charEquals.kt index 7e45516aded..3e42df28aa6 100644 --- a/js/js.translator/testData/box/char/charEquals.kt +++ b/js/js.translator/testData/box/char/charEquals.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1094 package foo diff --git a/js/js.translator/testData/box/char/charIsCheck.kt b/js/js.translator/testData/box/char/charIsCheck.kt index e95365abbde..87f21d5218a 100644 --- a/js/js.translator/testData/box/char/charIsCheck.kt +++ b/js/js.translator/testData/box/char/charIsCheck.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1112 package foo diff --git a/js/js.translator/testData/box/char/charUnaryOperations.kt b/js/js.translator/testData/box/char/charUnaryOperations.kt index 6b02656a022..8651c1c5f8c 100644 --- a/js/js.translator/testData/box/char/charUnaryOperations.kt +++ b/js/js.translator/testData/box/char/charUnaryOperations.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1114 package foo diff --git a/js/js.translator/testData/box/inlineMultiFile/simpleCapturingInClass.kt b/js/js.translator/testData/box/inlineMultiFile/simpleCapturingInClass.kt index f3c2e57b0e8..488e9b836bc 100644 --- a/js/js.translator/testData/box/inlineMultiFile/simpleCapturingInClass.kt +++ b/js/js.translator/testData/box/inlineMultiFile/simpleCapturingInClass.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1116 /* * Copy of JVM-backend test diff --git a/js/js.translator/testData/box/inlineMultiFile/simpleCapturingInPackage.kt b/js/js.translator/testData/box/inlineMultiFile/simpleCapturingInPackage.kt index 8b6893551c3..63ef5323f50 100644 --- a/js/js.translator/testData/box/inlineMultiFile/simpleCapturingInPackage.kt +++ b/js/js.translator/testData/box/inlineMultiFile/simpleCapturingInPackage.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1112 /* * Copy of JVM-backend test diff --git a/js/js.translator/testData/box/number/conversionsWithTruncation.kt b/js/js.translator/testData/box/number/conversionsWithTruncation.kt index 7445ff87e9b..b1d807ef643 100644 --- a/js/js.translator/testData/box/number/conversionsWithTruncation.kt +++ b/js/js.translator/testData/box/number/conversionsWithTruncation.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1114 package foo diff --git a/js/js.translator/testData/box/number/hashCode.kt b/js/js.translator/testData/box/number/hashCode.kt index 9865ea0d8ae..2ea5edd7ca1 100644 --- a/js/js.translator/testData/box/number/hashCode.kt +++ b/js/js.translator/testData/box/number/hashCode.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1108 fun box(): String { diff --git a/js/js.translator/testData/box/reified/isChar.kt b/js/js.translator/testData/box/reified/isChar.kt index 87a77001895..ddc96889b5e 100644 --- a/js/js.translator/testData/box/reified/isChar.kt +++ b/js/js.translator/testData/box/reified/isChar.kt @@ -1,4 +1,3 @@ -// IGNORE_BACKEND: JS_IR // EXPECTED_REACHABLE_NODES: 1112 package foo