FIR JS: temporarily mute remaining codegen tests
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
@@ -1,4 +1,5 @@
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
|
||||
class Outer(val x: Any) {
|
||||
inner class Inner(
|
||||
|
||||
+1
@@ -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,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
@@ -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
@@ -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
@@ -1,6 +1,7 @@
|
||||
// WITH_STDLIB
|
||||
// IGNORE_LIGHT_ANALYSIS
|
||||
// IGNORE_BACKEND: JVM
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// LANGUAGE: +InlineClassImplementationByDelegation
|
||||
|
||||
interface I {
|
||||
|
||||
Vendored
+1
@@ -1,6 +1,7 @@
|
||||
// WITH_STDLIB
|
||||
// IGNORE_LIGHT_ANALYSIS
|
||||
// IGNORE_BACKEND: JVM
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// LANGUAGE: +InlineClassImplementationByDelegation, +GenericInlineClassParameter
|
||||
|
||||
interface I {
|
||||
|
||||
+1
@@ -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,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,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
|
||||
|
||||
Reference in New Issue
Block a user