Temporary disable coroutine tests in JS backend

#KT-14924 In Progress
This commit is contained in:
Denis Zharkov
2016-11-25 16:18:04 +03:00
parent 1f98accad2
commit 27e4caf046
71 changed files with 539 additions and 67 deletions
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
class Controller {
var exception: Throwable? = null
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
class Controller {
suspend fun suspendHere(): Any = suspendWithCurrentContinuation { x ->}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
var result = "fail"
operator fun handleResult(u: Unit, c: Continuation<Nothing>) {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
var result = false
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
suspend fun suspendHere(a: String = "abc", i: Int = 2): String = suspendWithCurrentContinuation { x ->
x.resume(a + "#" + (i + 1))
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
var result = 0
class Controller {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
suspend fun <T> suspendHere(v: T): T = suspendWithCurrentContinuation { x ->
x.resume(v)
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// FULL_JDK
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
class Controller {
var exception: Throwable? = null
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
var isCompleted = false
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
var log = ""
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// TARGET_BACKEND: JVM
// NO_INTERCEPT_RESUME_TESTS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// WITH_REFLECT
// CHECK_NOT_CALLED: suspendInline_die06n$
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
var globalResult = ""
var wasCalled = false
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
var i = 0
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// WITH_REFLECT
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x ->
x.resume(Unit)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x ->
x.resume(Unit)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x ->
x.resume(Unit)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x ->
x.resume(Unit)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x ->
x.resume(Unit)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x ->
x.resume(Unit)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// TARGET_BACKEND: JVM
class Controller {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x ->
x.resume(Unit)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// TARGET_BACKEND: JVM
class Controller {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
suspend fun suspendHere(): Unit = suspendWithCurrentContinuation { x ->
x.resume(Unit)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
x.resume("OK")
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
var result = "fail"
suspend fun <V> suspendHere(v: V): V = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
suspend fun suspendHere(v: String): String = suspendWithCurrentContinuation { x ->
x.resume(v)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
var result = ""
var ok = false
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
var wasHandleResultCalled = false
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
var wasHandleResultCalled = false
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
var ok = false
var v = "fail"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
class Controller {
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// MODULE: controller
// FILE: controller.kt
package lib
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// MODULE: controller
// FILE: controller.kt
package lib
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
var lastSuspension: Continuation<String>? = null
var result = "fail"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
var lastSuspension: Continuation<String>? = null
var result = "fail"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
var lastSuspension: Continuation<String>? = null
var result = "fail"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
var lastSuspension: Continuation<String>? = null
var result = "fail"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
var globalResult = ""
var wasCalled = false
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
var cResult = 0
suspend fun suspendHere(v: Int): Int = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
class Controller {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
var res = 0
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
x.resume("OK")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
x.resumeWithException(RuntimeException("OK"))
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
var res = 0
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
var globalResult = ""
class Controller {
suspend fun suspendWithValue(v: String): String = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
suspend fun suspendHere(): String = suspendThere()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
@AllowSuspendExtensions
class Controller {
suspend fun String.suspendHere(): String = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
suspend fun suspendHere(v: Int): Int = suspendWithCurrentContinuation { x ->
x.resume(v * 2)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
var i = 0
suspend fun suspendHere(): Int = suspendWithCurrentContinuation { x ->
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
x.resume("K")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
var globalResult = ""
var wasCalled = false
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
var globalResult = ""
var wasCalled = false
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
suspend fun suspendHere(v: String): String = suspendWithCurrentContinuation { x ->
x.resume(v)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// WITH_RUNTIME
var globalResult = ""
var wasCalled = false
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
x.resume("OK")
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
class Controller {
suspend fun suspendHere(): String = suspendWithCurrentContinuation { x ->
x.resume("OK")