JS IR: mute codegen box tests automatically

This commit is contained in:
Anton Bannykh
2018-06-07 14:17:45 +03:00
parent 7e1713af44
commit 96355e2732
2384 changed files with 2384 additions and 0 deletions
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun test1(f: (Int) -> Int) = f(1)
fun test2(f: Int.() -> Int) = 2.f()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
interface Expr {
public fun ttFun() : Int = 12
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
val sb = StringBuilder()
operator fun String.unaryPlus() {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class A {
private val sb: StringBuilder = StringBuilder()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
var result = "Fail"
class A
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class A {
companion object
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box() : String {
val array = ArrayList<String>()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun String.foo() : String {
fun Int.bar() : String {
fun Long.baz() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class Template() {
val collected = ArrayList<String>()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
infix fun <T> T.mustBe(t : T) {
assert("$this must be $t") {this == t}
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun StringBuilder.first() = this.get(0)
fun foo() = StringBuilder("foo").first()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS