[JS IR BE] Unmute tests after adding stdlib

This commit is contained in:
Svyatoslav Kuzmich
2018-08-23 15:57:13 +03:00
parent 197a5969e2
commit ad58fdd158
75 changed files with 3 additions and 78 deletions
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
import kotlin.experimental.* import kotlin.experimental.*
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
import kotlin.experimental.* import kotlin.experimental.*
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
import kotlin.experimental.* import kotlin.experimental.*
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
import kotlin.test.assertEquals import kotlin.test.assertEquals
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
//WITH_RUNTIME //WITH_RUNTIME
fun box(): String { fun box(): String {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
// Just make sure there's no VerifyError // Just make sure there's no VerifyError
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
open class Content() { open class Content() {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
class Host { class Host {
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class Outer(val foo: StringBuilder) { class Outer(val foo: StringBuilder) {
inner class Inner() { inner class Inner() {
fun len() : Int { fun len() : Int {
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
data class Pair<First, Second>(val first: First, val second: Second) data class Pair<First, Second>(val first: First, val second: Second)
fun parseCatalogs(hashMap: Any?) { fun parseCatalogs(hashMap: Any?) {
@@ -1,5 +1,4 @@
// !LANGUAGE: +NewInference // !LANGUAGE: +NewInference
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
object A { object A {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
val xs = listOf<Any>() val xs = listOf<Any>()
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
val xs = listOf<Any>().asSequence() val xs = listOf<Any>().asSequence()
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME // WITH_RUNTIME
// WITH_COROUTINES // WITH_COROUTINES
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME // WITH_RUNTIME
// WITH_COROUTINES // WITH_COROUTINES
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME // WITH_RUNTIME
// WITH_COROUTINES // WITH_COROUTINES
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
// See KT-10107: 'Variable must be initialized' for delegate with private set // See KT-10107: 'Variable must be initialized' for delegate with private set
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
interface T { interface T {
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
import kotlin.properties.Delegates import kotlin.properties.Delegates
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
//WITH_RUNTIME //WITH_RUNTIME
fun box(): String { fun box(): String {
val x by lazy { "OK" } val x by lazy { "OK" }
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
//WITH_REFLECT //WITH_REFLECT
import kotlin.properties.Delegates import kotlin.properties.Delegates
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
//WITH_REFLECT //WITH_REFLECT
import kotlin.properties.Delegates import kotlin.properties.Delegates
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
import kotlin.properties.Delegates import kotlin.properties.Delegates
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
import kotlin.properties.ReadOnlyProperty import kotlin.properties.ReadOnlyProperty
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
abstract class BaseClass { abstract class BaseClass {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun Int.thisRef1() = fun () = this fun Int.thisRef1() = fun () = this
fun Int.thisRef2() = fun (): Int {return this} fun Int.thisRef2() = fun (): Int {return this}
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
class S(val a: String, val b: String) { class S(val a: String, val b: String) {
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
fun foo() { fun foo() {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit! // Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit! // Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit! // Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit! // Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit! // Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit! // Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit! // Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit! // Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit! // Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
val charSeq: String = "123" val charSeq: String = "123"
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
class A(val z: Int) : Comparable<A> { class A(val z: Int) : Comparable<A> {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
import kotlin.test.* import kotlin.test.*
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
fun inInt(x: Long): Boolean { fun inInt(x: Long): Boolean {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
val progression = 1 .. 3 step 2 val progression = 1 .. 3 step 2
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
fun box(): String { fun box(): String {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
val x: Int? = 42 val x: Int? = 42
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
fun box(): String { fun box(): String {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
import kotlin.test.* import kotlin.test.*
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME // WITH_RUNTIME
@@ -14,4 +13,4 @@ fun box(): String {
} }
if (count != 1) throw AssertionError("Should be executed once") if (count != 1) throw AssertionError("Should be executed once")
return "OK" return "OK"
} }
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
const val M = Int.MIN_VALUE const val M = Int.MIN_VALUE
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
const val M = Long.MIN_VALUE const val M = Long.MIN_VALUE
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
const val M = Int.MAX_VALUE const val M = Int.MAX_VALUE
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
const val M = Long.MAX_VALUE const val M = Long.MAX_VALUE
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
const val M = Int.MIN_VALUE const val M = Int.MIN_VALUE
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
import kotlin.collections.AbstractIterator import kotlin.collections.AbstractIterator
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
fun box(): String { fun box(): String {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
interface Stream<T> { interface Stream<T> {
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME // WITH_RUNTIME
val b: First by lazy { val b: First by lazy {
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun foo() { fun foo() {
val l = ArrayList<Int>(2) val l = ArrayList<Int>(2)
l.add(1) l.add(1)
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: NATIVE // IGNORE_BACKEND: NATIVE
open class Base<Target : DatabaseEntity>() : HashSet<Target>() { open class Base<Target : DatabaseEntity>() : HashSet<Target>() {
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun typeName(a: Any?) : String { fun typeName(a: Any?) : String {
return when(a) { return when(a) {
is ArrayList<*> -> "array list" is ArrayList<*> -> "array list"
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// FILE: 1.kt // FILE: 1.kt
//WITH_RUNTIME //WITH_RUNTIME
package test package test
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// FILE: 1.kt // FILE: 1.kt
//WITH_RUNTIME //WITH_RUNTIME
package test package test
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1152 // EXPECTED_REACHABLE_NODES: 1152
// CHECK_DEBUGGER_COUNT: function=doResume count=1 // CHECK_DEBUGGER_COUNT: function=doResume count=1
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1116 // EXPECTED_REACHABLE_NODES: 1116
class Outer(val foo: StringBuilder) { class Outer(val foo: StringBuilder) {
inner class Inner() { inner class Inner() {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1132 // EXPECTED_REACHABLE_NODES: 1132
// CHECK_VARS_COUNT: function=test count=2 // CHECK_VARS_COUNT: function=test count=2
var log = "" var log = ""
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1121 // EXPECTED_REACHABLE_NODES: 1121
// CHECK_CONTAINS_NO_CALLS: testRangeTo // CHECK_CONTAINS_NO_CALLS: testRangeTo
// CHECK_CONTAINS_NO_CALLS: testRangeToFunction // CHECK_CONTAINS_NO_CALLS: testRangeToFunction
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1120 // EXPECTED_REACHABLE_NODES: 1120
package foo package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1117 // EXPECTED_REACHABLE_NODES: 1117
package foo package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1240 // EXPECTED_REACHABLE_NODES: 1240
// see KT-7683 // see KT-7683
// WhenTranslator must recognize KtWhenConditionInRange in general case of a class that has rangeTo method // WhenTranslator must recognize KtWhenConditionInRange in general case of a class that has rangeTo method
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1806 // EXPECTED_REACHABLE_NODES: 1806
// See KT-11711 // See KT-11711
package foo package foo
@@ -100,4 +99,4 @@ c()
""", pullLog().replace(';', '\n')) """, pullLog().replace(';', '\n'))
return "OK" return "OK"
} }
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1114 // EXPECTED_REACHABLE_NODES: 1114
/* /*
* Copy of JVM-backend test * Copy of JVM-backend test
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1127 // EXPECTED_REACHABLE_NODES: 1127
/* /*
* Copy of JVM-backend test * Copy of JVM-backend test
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1108 // EXPECTED_REACHABLE_NODES: 1108
// PROPERTY_WRITE_COUNT: name=publishedTopLevel_61zpoe$ count=1 // PROPERTY_WRITE_COUNT: name=publishedTopLevel_61zpoe$ count=1
// PROPERTY_WRITE_COUNT: name=published_61zpoe$ count=1 // PROPERTY_WRITE_COUNT: name=published_61zpoe$ count=1
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1236 // EXPECTED_REACHABLE_NODES: 1236
package foo package foo
@@ -41,4 +40,4 @@ fun box(): String {
if (s != "n") return "s != 'n', it: " + s if (s != "n") return "s != 'n', it: " + s
return "OK" return "OK"
} }
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1113 // EXPECTED_REACHABLE_NODES: 1113
fun f(x: Int) = x * 2 fun f(x: Int) = x * 2
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1116 // EXPECTED_REACHABLE_NODES: 1116
package foo package foo