From e7f044be92607f706b2af115f2dddb1ba978b2bb Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Wed, 2 Nov 2016 17:31:17 +0300 Subject: [PATCH] JS: enable coroutine tests that don't enter infinite loop anymore --- .../box/coroutines/multipleInvokeCalls.kt | 2 -- .../multipleInvokeCallsInsideInlineLambda1.kt | 2 -- .../multipleInvokeCallsInsideInlineLambda2.kt | 2 -- .../multipleInvokeCallsInsideInlineLambda3.kt | 2 -- .../semantics/JsCodegenBoxTestGenerated.java | 18 ------------------ 5 files changed, 26 deletions(-) diff --git a/compiler/testData/codegen/box/coroutines/multipleInvokeCalls.kt b/compiler/testData/codegen/box/coroutines/multipleInvokeCalls.kt index f442d5e1842..f9a28899110 100644 --- a/compiler/testData/codegen/box/coroutines/multipleInvokeCalls.kt +++ b/compiler/testData/codegen/box/coroutines/multipleInvokeCalls.kt @@ -1,5 +1,3 @@ -// TARGET_BACKEND: JVM - class Controller { var lastSuspension: Continuation? = null var result = "fail" diff --git a/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda1.kt b/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda1.kt index 90e5221db27..75a2a71e1d1 100644 --- a/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda1.kt +++ b/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda1.kt @@ -1,5 +1,3 @@ -// TARGET_BACKEND: JVM - class Controller { var lastSuspension: Continuation? = null var result = "fail" diff --git a/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda2.kt b/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda2.kt index c7433a098cb..d2e93661f23 100644 --- a/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda2.kt +++ b/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda2.kt @@ -1,5 +1,3 @@ -// TARGET_BACKEND: JVM - class Controller { var lastSuspension: Continuation? = null var result = "fail" diff --git a/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda3.kt b/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda3.kt index 73fd6e2cb1d..a54bf7ae7af 100644 --- a/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda3.kt +++ b/compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda3.kt @@ -1,5 +1,3 @@ -// TARGET_BACKEND: JVM - class Controller { var lastSuspension: Continuation? = null var result = "fail" diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java index 353ee898fbb..782d8d3bffe 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/JsCodegenBoxTestGenerated.java @@ -5672,12 +5672,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { doTest(fileName); } - @TestMetadata("illegalState.kt") - public void testIllegalState() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/illegalState.kt"); - doTest(fileName); - } - @TestMetadata("inlineSuspendFunction.kt") public void testInlineSuspendFunction() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/inlineSuspendFunction.kt"); @@ -5932,24 +5926,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest { doTest(fileName); } - @TestMetadata("usedInArrayStore.kt") - public void testUsedInArrayStore() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInArrayStore.kt"); - doTest(fileName); - } - @TestMetadata("usedInMethodCall.kt") public void testUsedInMethodCall() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInMethodCall.kt"); doTest(fileName); } - @TestMetadata("usedInPutfield.kt") - public void testUsedInPutfield() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInPutfield.kt"); - doTest(fileName); - } - @TestMetadata("usedInVarStore.kt") public void testUsedInVarStore() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/coroutines/intLikeVarSpilling/usedInVarStore.kt");