FIR JS: temporarily mute remaining codegen tests

This commit is contained in:
Ilya Chernikov
2022-08-22 16:46:30 +02:00
parent 78ca733c38
commit 7e4ee399c8
23 changed files with 26 additions and 0 deletions
@@ -1,4 +1,5 @@
// IGNORE_LEAKED_INTERNAL_TYPES: KT-54517
// IGNORE_BACKEND_K2: JS_IR
// MODULE: lib
// FILE: l1.kt
package ann
@@ -1,3 +1,5 @@
// IGNORE_BACKEND_K2: JS_IR
//test [], get and iterator calls
fun test(createIntNotLong: Boolean): String {
val a = if (createIntNotLong) IntArray(5) else LongArray(5)
+2
View File
@@ -1,3 +1,5 @@
// IGNORE_BACKEND_K2: JS_IR
fun test(b: Boolean): String {
val a = if (b) IntArray(5) else LongArray(5)
if (a is IntArray) {
@@ -1,4 +1,5 @@
// IGNORE_BACKEND: JS_IR_ES6
// IGNORE_BACKEND_K2: JS_IR
class Outer(val x: Any) {
inner class Inner(
@@ -1,4 +1,5 @@
// IGNORE_BACKEND: JS_IR_ES6
// IGNORE_BACKEND_K2: JS_IR
class Outer(val x: Any) {
inner class Inner(
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_K2: JS_IR
// MODULE: lib
// FILE: Typography.kt
object Typography {
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_K2: JS_IR
// WITH_STDLIB
import kotlin.math.*
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_K2: JS_IR
// WITH_STDLIB
const val a = "INT " + 0x8fffffffU
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_K2: JS_IR
// FILE: lib.kt
interface ResolutionScope {
fun getContributedDescriptors(s: String = "OK"): String
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_K2: JS_IR
enum class Test {
A(0),
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_K2: JS_IR
enum class Test(val x: Int, val str: String) {
OK;
constructor(x: Int = 0) : this(x, "OK")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_K2: JS_IR
enum class Test(val x: Int, val str: String) {
OK;
constructor(vararg xs: Int) : this(xs.size + 42, "OK")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_K2: JS_IR
package test
enum class My(val s: String) {
@@ -1,6 +1,7 @@
// WITH_STDLIB
// IGNORE_LIGHT_ANALYSIS
// IGNORE_BACKEND: JVM
// IGNORE_BACKEND_K2: JS_IR
// LANGUAGE: +InlineClassImplementationByDelegation
interface I {
@@ -1,6 +1,7 @@
// WITH_STDLIB
// IGNORE_LIGHT_ANALYSIS
// IGNORE_BACKEND: JVM
// IGNORE_BACKEND_K2: JS_IR
// LANGUAGE: +InlineClassImplementationByDelegation, +GenericInlineClassParameter
interface I {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_K2: JS_IR
// ISSUE: KT-52057
// MODULE: lib
// FILE: Class.kt
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_K2: JS_IR
// KT-40686
+1
View File
@@ -1,5 +1,6 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// IGNORE_BACKEND_K2: JS_IR
fun box(): String {
if (239.toByte().toString() != (239.toByte() as Byte?).toString()) return "byte failed"
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_K2: JS_IR
// WITH_STDLIB
import kotlin.test.assertEquals
@@ -1,3 +1,5 @@
// IGNORE_BACKEND_K2: JS_IR
// MODULE: lib1
// FILE: lib1.kt
object L1 {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_K2: JS_IR
enum class A1(val prop1: String) {
X("asd"),
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_K2: JS_IR
// 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
@@ -1,3 +1,4 @@
// IGNORE_BACKEND_K2: JS_IR
// 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