[JS IR BE] Update test data

This commit is contained in:
Roman Artemev
2018-05-16 17:59:49 +03:00
parent eeb16a38e8
commit 06a170b05d
26 changed files with 34 additions and 25 deletions
@@ -86,6 +86,11 @@ 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("classMemberFromClass.kt")
public void testClassMemberFromClass() throws Exception {
runTest("js/js.translator/testData/box/callableReference/function/classMemberFromClass.kt");
@@ -196,6 +201,11 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
runTest("js/js.translator/testData/box/callableReference/function/extensionWithClosure.kt");
}
@TestMetadata("functionReferenceName.kt")
public void testFunctionReferenceName() throws Exception {
runTest("js/js.translator/testData/box/callableReference/function/functionReferenceName.kt");
}
@TestMetadata("localAndTopLevelExtensions.kt")
public void testLocalAndTopLevelExtensions() throws Exception {
runTest("js/js.translator/testData/box/callableReference/function/localAndTopLevelExtensions.kt");
@@ -86,6 +86,11 @@ 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("classMemberFromClass.kt")
public void testClassMemberFromClass() throws Exception {
runTest("js/js.translator/testData/box/callableReference/function/classMemberFromClass.kt");
@@ -196,6 +201,11 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/callableReference/function/extensionWithClosure.kt");
}
@TestMetadata("functionReferenceName.kt")
public void testFunctionReferenceName() throws Exception {
runTest("js/js.translator/testData/box/callableReference/function/functionReferenceName.kt");
}
@TestMetadata("localAndTopLevelExtensions.kt")
public void testLocalAndTopLevelExtensions() throws Exception {
runTest("js/js.translator/testData/box/callableReference/function/localAndTopLevelExtensions.kt");
@@ -0,0 +1,14 @@
// 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,5 +1,4 @@
// EXPECTED_REACHABLE_NODES: 1109
// This test was adapted from compiler/testData/codegen/box/callableReference/function/local/.
package foo
import kotlin.reflect.KFunction
@@ -9,8 +8,6 @@ fun foo1(a: String) = "O" + a
fun foo2(a: String, b: String) = a + b
fun refName0(ref: KFunction<String>) = ref.name
//fun refName1(ref: KFunction1<String, String>) = ref.name
//fun refName2(ref: KFunction2<String, String, String>) = ref.name
fun box(): String {
val name = refName0(::foo0)
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1121
// This test was adapted from compiler/testData/codegen/box/callableReference/property/.
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1125
// This test was adapted from compiler/testData/codegen/box/callableReference/property/.
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1118
// This test was adapted from compiler/testData/codegen/box/callableReference/property/.
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1127
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1123
// This test was adapted from compiler/testData/codegen/box/callableReference/property/.
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1113
// This test was adapted from compiler/testData/codegen/box/callableReference/property/.
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1114
// This test was adapted from compiler/testData/codegen/box/callableReference/property/.
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1115
// This test was adapted from compiler/testData/codegen/box/callableReference/property/.
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1119
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1158
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1120
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1120
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1120
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1117
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1123
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1119
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1122
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1117
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1119
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1123
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1164
package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1127
// FILE: a.kt
package bar