Mute some tests in JS_IR after adding basic dynamic expressions support

This commit is contained in:
Dmitry Petrov
2019-02-13 15:25:46 +03:00
parent 77cbd10f9c
commit 740d5ec468
32 changed files with 30 additions and 6 deletions
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String { fun box(): String {
for (x in BooleanArray(5)) { for (x in BooleanArray(5)) {
if (x != false) return "Fail $x" if (x != false) return "Fail $x"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String { fun box(): String {
for (x in CharArray(5)) { for (x in CharArray(5)) {
if (x != 0.toChar()) return "Fail $x" if (x != 0.toChar()) return "Fail $x"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String { fun box(): String {
for (x in LongArray(5)) { for (x in LongArray(5)) {
if (x != 0.toLong()) return "Fail $x" if (x != 0.toLong()) return "Fail $x"
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// KJS_WITH_FULL_RUNTIME // KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String { fun box(): String {
val a = LongArray(5) val a = LongArray(5)
val x = a.iterator() val x = a.iterator()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String { fun box(): String {
val a = LongArray(5) val a = LongArray(5)
val x = a.iterator() val x = a.iterator()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String { fun box(): String {
val transform = transform(Array(1) { BooleanArray(1) }) val transform = transform(Array(1) { BooleanArray(1) })
if (!transform[0][0]) return "OK" if (!transform[0][0]) return "OK"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// KJS_WITH_FULL_RUNTIME // KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// KJS_WITH_FULL_RUNTIME // KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,5 +1,5 @@
// !LANGUAGE: +NewInference // !LANGUAGE: +NewInference
// IGNORE_BACKEND: JS, JVM_IR // IGNORE_BACKEND: JS, JVM_IR, JS_IR
fun foo(vararg l: Long, s: String = "OK"): String = fun foo(vararg l: Long, s: String = "OK"): String =
if (l.size == 0) s else "Fail" if (l.size == 0) s else "Fail"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String { fun box(): String {
val aByte: Array<Byte> = arrayOf<Byte>(1) val aByte: Array<Byte> = arrayOf<Byte>(1)
val bByte: ByteArray = byteArrayOf(1) val bByte: ByteArray = byteArrayOf(1)
@@ -1,6 +1,6 @@
// !LANGUAGE: +InlineClasses // !LANGUAGE: +InlineClasses
// WITH_RUNTIME // WITH_RUNTIME
// IGNORE_BACKEND: JVM_IR // IGNORE_BACKEND: JVM_IR, JS_IR
inline class Z(val x: Int) { inline class Z(val x: Int) {
constructor(vararg ys: Long) : this(ys.size) constructor(vararg ys: Long) : this(ys.size)
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// KJS_WITH_FULL_RUNTIME // KJS_WITH_FULL_RUNTIME
// WITH_RUNTIME // WITH_RUNTIME
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
var res = "" var res = ""
fun getM(): String { fun getM(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class CustomException : Throwable { class CustomException : Throwable {
constructor(message: String?, cause: Throwable?) : super(message, cause) constructor(message: String?, cause: Throwable?) : super(message, cause)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String { fun box(): String {
try { try {
throw Throwable("OK", null) throw Throwable("OK", null)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String { fun box(): String {
var t = Throwable("O", Throwable("K")) var t = Throwable("O", Throwable("K"))
if (t.message != "O" || t.cause?.message != "K") return "fail1" if (t.message != "O" || t.cause?.message != "K") return "fail1"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun booleanVararg(vararg xs: Boolean) { fun booleanVararg(vararg xs: Boolean) {
if (xs.size != 1 && xs[0] != true) throw AssertionError() if (xs.size != 1 && xs[0] != true) throw AssertionError()
} }
+1 -1
View File
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun barB(vararg args: Byte) = args fun barB(vararg args: Byte) = args
fun barC(vararg args: Char) = args fun barC(vararg args: Char) = args
fun barD(vararg args: Double) = args fun barD(vararg args: Double) = args
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1295 // EXPECTED_REACHABLE_NODES: 1295
package foo package foo
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1282 // EXPECTED_REACHABLE_NODES: 1282
package foo package foo
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1290 // EXPECTED_REACHABLE_NODES: 1290
package foo package foo
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1231 // EXPECTED_REACHABLE_NODES: 1231
package foo package foo
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS // IGNORE_BACKEND: JS, JS_IR
// EXPECTED_REACHABLE_NODES: 1298 // EXPECTED_REACHABLE_NODES: 1298
package foo package foo
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1294 // EXPECTED_REACHABLE_NODES: 1294
package foo package foo
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1298 // EXPECTED_REACHABLE_NODES: 1298
package foo package foo
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1287 // EXPECTED_REACHABLE_NODES: 1287
package foo package foo
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1288 // EXPECTED_REACHABLE_NODES: 1288
package foo package foo
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1321 // EXPECTED_REACHABLE_NODES: 1321
package foo package foo
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1318 // EXPECTED_REACHABLE_NODES: 1318
package foo package foo
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1320 // EXPECTED_REACHABLE_NODES: 1320
package foo package foo
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1283 // EXPECTED_REACHABLE_NODES: 1283
package foo package foo