[JS IR] Update test data

This commit is contained in:
Roman Artemev
2020-02-26 17:05:12 +03:00
committed by romanart
parent 97b97ddbd7
commit 161bb72439
14 changed files with 7 additions and 36 deletions
@@ -1,5 +1,5 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: JS, JS_IR
enum class E {
A, B;
@@ -1,5 +1,5 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: JS, JS_IR
fun box(): String {
fun bar() {}
@@ -1,5 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JS_IR
fun box(): String {
fun OK() {}
@@ -1,5 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
// WITH_COROUTINES
@@ -1,5 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_COROUTINES
// WITH_RUNTIME
@@ -1,6 +1,6 @@
// !LANGUAGE: +ReleaseCoroutines
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JS_IR, NATIVE
// IGNORE_BACKEND: NATIVE
// WITH_RUNTIME
// WITH_COROUTINES
import helpers.*
@@ -1,8 +1,8 @@
// !LANGUAGE: +NewInference +FunctionalInterfaceConversion +SamConversionPerArgument +SamConversionForKotlinFunctions
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_COROUTINES
// WITH_RUNTIME
// SKIP_DCE_DRIVEN
import helpers.*
import kotlin.coroutines.*
@@ -1,6 +1,4 @@
// IGNORE_BACKEND_FIR: JVM_IR
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_REFLECT
@@ -1,4 +1,6 @@
// IGNORE_BACKEND: JS, NATIVE
// IGNORE_BACKEND: JS
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: NATIVE
// WITH_REFLECT
@@ -104,11 +104,6 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/callableReference/function/classMemberAndNonExtensionCompatibility.kt");
}
@TestMetadata("classMemberDirectCache.kt")
public void testClassMemberDirectCache() throws Exception {
runTest("js/js.translator/testData/box/callableReference/function/classMemberDirectCache.kt");
}
@TestMetadata("classMemberOverridden.kt")
public void testClassMemberOverridden() throws Exception {
runTest("js/js.translator/testData/box/callableReference/function/classMemberOverridden.kt");
@@ -104,11 +104,6 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
runTest("js/js.translator/testData/box/callableReference/function/classMemberAndNonExtensionCompatibility.kt");
}
@TestMetadata("classMemberDirectCache.kt")
public void testClassMemberDirectCache() throws Exception {
runTest("js/js.translator/testData/box/callableReference/function/classMemberDirectCache.kt");
}
@TestMetadata("classMemberOverridden.kt")
public void testClassMemberOverridden() throws Exception {
runTest("js/js.translator/testData/box/callableReference/function/classMemberOverridden.kt");
@@ -1,14 +0,0 @@
// IGNORE_BACKEND: JS
package foo
class A(val v: String) {
fun foo() = v
}
fun box(): String {
val aRef1 = A::foo
val aRef2 = A::foo
if (aRef1 !== aRef2) return "Fail != "
return aRef1(A("O")) + aRef2(A("K"))
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1303
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1334
package foo