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
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class C() {
companion object {
fun create() = C()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
var global = 0;
class C {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: Enable for JS when it supports Java class library.
// IGNORE_BACKEND: JS, NATIVE
class SomeClass { companion object }
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
class Host {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
open class A(val x: String) {
constructor(`in`: String, y: String) : this(`in` + y)
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
interface One {
public open fun foo() : Int
public open fun faz() : Int = 10
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
interface First {
public open fun foo() : Int
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
interface A<T> {
fun foo(t: T): String
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
interface A<T: Number> {
fun foo(t: T): String
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
interface A<T, U> {
fun foo(t: T, u: U): String
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// Enable for JS when it supports Java class library.
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
package test
interface TextField {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class GameError(msg: String): Exception(msg) {
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// See KT-12865
package foo
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: NATIVE
interface A : Set<String>
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
class World() {
public val items: ArrayList<Item> = ArrayList<Item>()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
open class A(val value: String) {
inner class B(val s: String) {
val result = value + "_" + s
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
open class A(val value: String) {
inner class B(val s: String) {
val result = value + "_" + s
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class C(val value: String = "C") {
inner class B(val s: String) {
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class Outer(val foo: StringBuilder) {
inner class Inner() {
fun len() : Int {
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
public class StockMarketTableModel() {
public fun getColumnCount() : Int {
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// Won't ever work with JS backend.
// TODO: Consider rewriting this test without using threads, since the issue is not about threads at all.
// IGNORE_BACKEND: JS, NATIVE
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: Enable when JS backend supports Java class library
// IGNORE_BACKEND: JS, NATIVE
public class SomeClass() : java.lang.Object() {
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
interface Creator<T> {
fun create() : T
}
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: Enable when JS backend supports Java class library, since FunctionX are required for interoperation
// IGNORE_BACKEND: JS
class Works() : Function0<Any> {
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class Pair<First, Second>(val first: First, val second: Second)
fun parseCatalogs(hashMap: Any?) {
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class T(val f : () -> Any?) {
fun call() : Any? = f()
}
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class Bar {
}
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
public inline fun Int.times(body : () -> Unit) {
var count = this;
while (count > 0) {
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: Enable when JS backend supports Java class library
// IGNORE_BACKEND: JS, NATIVE
public open class Test(): java.util.RandomAccess, Cloneable, java.io.Serializable
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
public interface LoggerAware {
public val logger: StringBuilder
}
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun box() : String{
val set = HashSet<String>()
set.add("foo")
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
package example2
fun box() = Context.OsType.OK.toString()
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class IntRange {
operator fun contains(a: Int) = (1..2).contains(a)
}
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class KeySpan(val left: String) {
public fun matches(value : String) : Boolean {
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun launch(f : () -> Unit) {
f()
}
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class MyNumber(val i: Int) {
operator fun inc(): MyNumber = MyNumber(i+1)
}
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun test1() : Boolean {
try {
return true
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
var GUEST_USER_ID = 3
val USER_ID =
try {
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class Reluctant() {
init {
throw Exception("I'm not coming out")
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
operator fun <K, V> MutableMap<K, V>.set(key : K, value : V) = put(key, value)
fun box() : String {
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
fun test1(str: String): String {
data class A(val x: Int) {
fun foo() = str
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
interface Id<T> {
val id: T
}
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class mInt(val i : Int) {
override fun toString() : String = "mint: $i"
operator fun plus(i : Int) = mInt(this.i + i)
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
public class CalculatorConstants(
val id: Long = 0,
val detour: Double = 0.0,
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: Enable for JS when it supports Java class library.
// IGNORE_BACKEND: JS, NATIVE
class List<T>(val head: T, val tail: List<T>? = null)
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
operator fun Int?.inc() : Int { if (this != null) return this.inc() else throw NullPointerException() }
public fun box() : String {
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
fun testFun1(str: String): String {
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class ArrayWrapper<T>() {
val contents = ArrayList<T>()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class ArrayWrapper<T>() {
val contents = ArrayList<T>()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class ArrayWrapper<T>() {
val contents = ArrayList<T>()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class ArrayWrapper<T>() {
val contents = ArrayList<T>()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
class ArrayWrapper<T>() {
val contents = ArrayList<T>()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class A<in I>(init_o: I, private val init_k: I) {
private val o: I = init_o
private fun k(): I = init_k
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class Outer() {
val s = "xyzzy"
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS
class `A!u00A0`() {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
interface A<T> {
var zzzValue : T
fun zzz() : T