[K2 JS] Unmute and link to issue some JS K2 tests

This commit is contained in:
Alexander Korepanov
2024-01-02 14:45:36 +01:00
committed by Space Team
parent 7773fdab9a
commit f5d0c22736
21 changed files with 231 additions and 29 deletions
@@ -1,4 +1,5 @@
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6, WASM
// K2 issue: KT-64801
class Outer(val x: Any) {
inner class Inner(
@@ -6,4 +7,4 @@ class Outer(val x: Any) {
)
}
fun box() = Outer("OK").Inner().fn()
fun box() = Outer("OK").Inner().fn()
@@ -1,4 +1,5 @@
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6, WASM
// K2 issue: KT-64801
class Outer(val x: Any) {
inner class Inner(
@@ -11,4 +12,4 @@ class Outer(val x: Any) {
}
}
fun box() = Outer("OK").Inner(1).fn()
fun box() = Outer("OK").Inner(1).fn()
@@ -1,5 +1,4 @@
// TARGET_BACKEND: JVM
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6
// WITH_REFLECT
// WITH_STDLIB
// FILE: J.java
@@ -1,6 +1,5 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6
// WITH_STDLIB
class A(val ok: String)
@@ -1,5 +1,5 @@
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6, WASM
// K2 issue: KT-64801
// KT-40686
@@ -22,4 +22,4 @@ fun box(): String {
if (rr != "ABC") return "FAIL: $rr"
return "OK"
}
}
@@ -1,5 +1,4 @@
// !LANGUAGE: +MultiPlatformProjects
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
// FIR status: expect/actual in the same module (ACTUAL_WITHOUT_EXPECT)
// TARGET_BACKEND: JVM
// IGNORE_BACKEND_K2: ANY
@@ -1,8 +1,5 @@
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6
// CHECK_CASES_COUNT: function=crash count=2 TARGET_BACKENDS=JS
// CHECK_CASES_COUNT: function=crash count=0 IGNORED_BACKENDS=JS
// CHECK_IF_COUNT: function=crash count=1 TARGET_BACKENDS=JS
// CHECK_IF_COUNT: function=crash count=3 IGNORED_BACKENDS=JS
class EncapsulatedEnum<T : Enum<T>>(val value: T)
@@ -28,4 +25,4 @@ var res = "fail"
fun box(): String {
crash(EncapsulatedEnum(MyEnum.VALUE_A))
return res
}
}
@@ -1,9 +1,6 @@
// IGNORE_BACKEND_K2: JS_IR, JS_IR_ES6
// JVM_ABI_K1_K2_DIFF: KT-62903
// CHECK_CASES_COUNT: function=doTheThing count=2 TARGET_BACKENDS=JS
// CHECK_CASES_COUNT: function=doTheThing count=0 IGNORED_BACKENDS=JS
// CHECK_IF_COUNT: function=doTheThing count=2 TARGET_BACKENDS=JS
// CHECK_IF_COUNT: function=doTheThing count=4 IGNORED_BACKENDS=JS
private fun Any?.doTheThing(): String {
when (this) {
@@ -28,4 +25,4 @@ enum class Level {
fun box(): String {
return "O".doTheThing() + Level.K.doTheThing()
}
}