Make some tests JVM only

This commit is contained in:
Ilya Gorbunov
2016-11-17 00:13:18 +03:00
parent 38840bb529
commit 0899a0fdda
38 changed files with 52 additions and 523 deletions
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
import java.util.ArrayList import java.util.ArrayList
@@ -1,3 +1,5 @@
// TARGET_BACKEND: JVM
import java.util.AbstractList import java.util.AbstractList
class A : AbstractList<String>() { class A : AbstractList<String>() {
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
import java.util.AbstractMap import java.util.AbstractMap
import java.util.Collections import java.util.Collections
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// FILE: Test.java // FILE: Test.java
@@ -1,13 +1,11 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS // WITH_RUNTIME
import java.util.Collections
class A<U : Number, V : U, W : V> : Set<W> { class A<U : Number, V : U, W : V> : Set<W> {
override val size: Int get() = 0 override val size: Int get() = 0
override fun isEmpty(): Boolean = true override fun isEmpty(): Boolean = true
override fun contains(o: W): Boolean = false override fun contains(o: W): Boolean = false
override fun iterator(): Iterator<W> = Collections.emptySet<W>().iterator() override fun iterator(): Iterator<W> = emptySet<W>().iterator()
override fun containsAll(c: Collection<W>): Boolean = c.isEmpty() override fun containsAll(c: Collection<W>): Boolean = c.isEmpty()
} }
+2
View File
@@ -1,3 +1,5 @@
// TARGET_BACKEND: JVM
import java.util.AbstractList import java.util.AbstractList
class MyList(): AbstractList<String>() { class MyList(): AbstractList<String>() {
+1 -2
View File
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// FILE: J.java // FILE: J.java
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// FILE: J.java // FILE: J.java
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// FILE: J.java // FILE: J.java
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// FILE: J.java // FILE: J.java
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// FILE: J.java // FILE: J.java
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// FILE: J.java // FILE: J.java
+1 -2
View File
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// FILE: J.java // FILE: J.java
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// FILE: J.java // FILE: J.java
+1 -2
View File
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// FILE: J.java // FILE: J.java
+1 -2
View File
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// FILE: J.java // FILE: J.java
+1 -2
View File
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// FILE: J.java // FILE: J.java
+1 -2
View File
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// FILE: J.java // FILE: J.java
+1 -2
View File
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
// FULL_JDK // FULL_JDK
+1 -2
View File
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// FULL_JDK // FULL_JDK
+1 -2
View File
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// FULL_JDK // FULL_JDK
+1 -2
View File
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// FULL_JDK // FULL_JDK
@@ -1,20 +1,19 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// FULL_JDK // FULL_JDK
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger
import java.util.concurrent.CountDownLatch; import java.util.concurrent.CountDownLatch
import java.util.concurrent.locks.ReentrantLock; import java.util.concurrent.locks.ReentrantLock
fun <T> Int.latch(op: CountDownLatch.() -> T) : T { fun <T> Int.latch(op: CountDownLatch.() -> T) : T {
val cdl = CountDownLatch(this) val cdl = CountDownLatch(this)
val res = cdl.op() val res = cdl.op()
cdl.await() cdl.await()
return res return res
} }
fun id(op : ()->Unit) = op() fun id(op: () -> Unit) = op()
fun box() : String { fun box() : String {
1.latch{ 1.latch{
+1 -2
View File
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// FULL_JDK // FULL_JDK
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// FULL_JDK // FULL_JDK
@@ -1,7 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
import java.util.HashSet
fun box(): String { fun box(): String {
val a = HashSet<String>() val a = HashSet<String>()
@@ -1,7 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
import java.util.ArrayList
open class A : Cloneable { open class A : Cloneable {
public override fun clone(): A = super.clone() as A public override fun clone(): A = super.clone() as A
+1 -2
View File
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
+1 -4
View File
@@ -1,7 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
import java.util.ArrayList
public object SomeObject { public object SomeObject {
private val workerThread = object : Thread() { private val workerThread = object : Thread() {
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// WITH_REFLECT // WITH_REFLECT
// FILE: J.java // FILE: J.java
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// WITH_REFLECT // WITH_REFLECT
// FILE: J.java // FILE: J.java
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// WITH_REFLECT // WITH_REFLECT
// FILE: J.java // FILE: J.java
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// WITH_REFLECT // WITH_REFLECT
// FILE: J.java // FILE: J.java
+3 -3
View File
@@ -1,12 +1,12 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
// FULL_JDK // FULL_JDK
package testeval package testeval
import java.util.* import java.util.LinkedList
import java.util.Deque
interface Expression interface Expression
class Num(val value : Int) : Expression class Num(val value : Int) : Expression
+2 -4
View File
@@ -1,17 +1,15 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
// FULL_JDK // FULL_JDK
package pack package pack
import java.util.ArrayList
import java.util.regex.Pattern import java.util.regex.Pattern
class C{ class C{
public fun foo(){ public fun foo(){
val items : Collection<Item> = java.util.Collections.singleton(Item())!! val items : Collection<Item> = listOf(Item())
val result = ArrayList<Item>() val result = ArrayList<Item>()
val pattern: Pattern? = Pattern.compile("...") val pattern: Pattern? = Pattern.compile("...")
items.filterTo(result) { items.filterTo(result) {
+4 -7
View File
@@ -1,14 +1,11 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
import java.util.Arrays
class MyCollection<T>(val delegate: Collection<T>): Collection<T> by delegate class MyCollection<T>(val delegate: Collection<T>): Collection<T> by delegate
fun box(): String { fun box(): String {
val collection = MyCollection(Arrays.asList(2, 3, 9)) as java.util.Collection<*> val collection = MyCollection(listOf(2, 3, 9)) as java.util.Collection<*>
val array1 = collection.toArray() val array1 = collection.toArray()
val array2 = collection.toArray(arrayOfNulls<Int>(3) as Array<Int>) val array2 = collection.toArray(arrayOfNulls<Int>(3) as Array<Int>)
@@ -16,8 +13,8 @@ fun box(): String {
if (!array1.isArrayOf<Any>()) return (array1 as Object).getClass().toString() if (!array1.isArrayOf<Any>()) return (array1 as Object).getClass().toString()
if (!array2.isArrayOf<Int>()) return (array2 as Object).getClass().toString() if (!array2.isArrayOf<Int>()) return (array2 as Object).getClass().toString()
val s1 = Arrays.toString(array1) val s1 = array1.contentToString()
val s2 = Arrays.toString(array2) val s2 = array2.contentToString()
if (s1 != "[2, 3, 9]") return "s1 = $s1" if (s1 != "[2, 3, 9]") return "s1 = $s1"
if (s2 != "[2, 3, 9]") return "s2 = $s2" if (s2 != "[2, 3, 9]") return "s2 = $s2"
@@ -1,5 +1,4 @@
// TODO: muted automatically, investigate should it be ran for JS or not // TARGET_BACKEND: JVM
// IGNORE_BACKEND: JS
// WITH_RUNTIME // WITH_RUNTIME
@@ -1619,18 +1619,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
doTest(fileName); doTest(fileName);
} }
@TestMetadata("delegationToArrayList.kt")
public void testDelegationToArrayList() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/builtinStubMethods/delegationToArrayList.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("immutableRemove.kt") @TestMetadata("immutableRemove.kt")
public void testImmutableRemove() throws Exception { public void testImmutableRemove() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/builtinStubMethods/immutableRemove.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/builtinStubMethods/immutableRemove.kt");
@@ -1739,18 +1727,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
} }
@TestMetadata("manyTypeParametersWithUpperBounds.kt")
public void testManyTypeParametersWithUpperBounds() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/builtinStubMethods/manyTypeParametersWithUpperBounds.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("Map.kt") @TestMetadata("Map.kt")
public void testMap() throws Exception { public void testMap() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/builtinStubMethods/Map.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/builtinStubMethods/Map.kt");
@@ -1863,24 +1839,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
public static class ExtendJavaCollections extends AbstractJsCodegenBoxTest { public static class ExtendJavaCollections extends AbstractJsCodegenBoxTest {
@TestMetadata("abstractList.kt")
public void testAbstractList() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractList.kt");
doTest(fileName);
}
@TestMetadata("abstractMap.kt")
public void testAbstractMap() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractMap.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("abstractSet.kt") @TestMetadata("abstractSet.kt")
public void testAbstractSet() throws Exception { public void testAbstractSet() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractSet.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/abstractSet.kt");
@@ -1909,17 +1867,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
doTest(fileName); doTest(fileName);
} }
@TestMetadata("mapEntry.kt")
public void testMapEntry() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/builtinStubMethods/extendJavaCollections/mapEntry.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
} }
} }
@@ -3692,12 +3639,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
doTest(fileName); doTest(fileName);
} }
@TestMetadata("kt2395.kt")
public void testKt2395() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/classes/kt2395.kt");
doTest(fileName);
}
@TestMetadata("kt2417.kt") @TestMetadata("kt2417.kt")
public void testKt2417() throws Exception { public void testKt2417() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/classes/kt2417.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/classes/kt2417.kt");
@@ -4457,30 +4398,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/collections"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS, true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/collections"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS, true);
} }
@TestMetadata("charSequence.kt")
public void testCharSequence() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/charSequence.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("implementCollectionThroughKotlin.kt")
public void testImplementCollectionThroughKotlin() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/implementCollectionThroughKotlin.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("inSetWithSmartCast.kt") @TestMetadata("inSetWithSmartCast.kt")
public void testInSetWithSmartCast() throws Exception { public void testInSetWithSmartCast() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/inSetWithSmartCast.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/inSetWithSmartCast.kt");
@@ -4511,18 +4428,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
} }
@TestMetadata("irrelevantImplMutableList.kt")
public void testIrrelevantImplMutableList() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/irrelevantImplMutableList.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("irrelevantImplMutableListKotlin.kt") @TestMetadata("irrelevantImplMutableListKotlin.kt")
public void testIrrelevantImplMutableListKotlin() throws Exception { public void testIrrelevantImplMutableListKotlin() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/irrelevantImplMutableListKotlin.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/irrelevantImplMutableListKotlin.kt");
@@ -4535,54 +4440,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
} }
@TestMetadata("irrelevantImplMutableListSubstitution.kt")
public void testIrrelevantImplMutableListSubstitution() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/irrelevantImplMutableListSubstitution.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("irrelevantRemoveAtOverrideInJava.kt")
public void testIrrelevantRemoveAtOverrideInJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/irrelevantRemoveAtOverrideInJava.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("irrelevantSizeOverrideInJava.kt")
public void testIrrelevantSizeOverrideInJava() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/irrelevantSizeOverrideInJava.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("mutableList.kt")
public void testMutableList() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/mutableList.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("noStubsInJavaSuperClass.kt") @TestMetadata("noStubsInJavaSuperClass.kt")
public void testNoStubsInJavaSuperClass() throws Exception { public void testNoStubsInJavaSuperClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/noStubsInJavaSuperClass.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/noStubsInJavaSuperClass.kt");
@@ -4595,66 +4452,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
} }
@TestMetadata("platformValueContains.kt")
public void testPlatformValueContains() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/platformValueContains.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("readOnlyList.kt")
public void testReadOnlyList() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/readOnlyList.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("readOnlyMap.kt")
public void testReadOnlyMap() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/readOnlyMap.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("removeAtInt.kt")
public void testRemoveAtInt() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/removeAtInt.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("strList.kt")
public void testStrList() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/strList.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("toArrayInJavaClass.kt") @TestMetadata("toArrayInJavaClass.kt")
public void testToArrayInJavaClass() throws Exception { public void testToArrayInJavaClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/toArrayInJavaClass.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/collections/toArrayInJavaClass.kt");
@@ -5006,18 +4803,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
doTest(fileName); doTest(fileName);
} }
@TestMetadata("kt2423.kt")
public void testKt2423() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/controlStructures/kt2423.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("kt2577.kt") @TestMetadata("kt2577.kt")
public void testKt2577() throws Exception { public void testKt2577() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/controlStructures/kt2577.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/controlStructures/kt2577.kt");
@@ -8387,78 +8172,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/fullJdk"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS, true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/fullJdk"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS, true);
} }
@TestMetadata("charBuffer.kt")
public void testCharBuffer() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/fullJdk/charBuffer.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("classpath.kt")
public void testClasspath() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/fullJdk/classpath.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("ifInWhile.kt")
public void testIfInWhile() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/fullJdk/ifInWhile.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("intCountDownLatchExtension.kt")
public void testIntCountDownLatchExtension() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/fullJdk/intCountDownLatchExtension.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("kt434.kt")
public void testKt434() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/fullJdk/kt434.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("platformTypeAssertionStackTrace.kt")
public void testPlatformTypeAssertionStackTrace() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/fullJdk/platformTypeAssertionStackTrace.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("compiler/testData/codegen/box/fullJdk/native") @TestMetadata("compiler/testData/codegen/box/fullJdk/native")
@TestDataPath("$PROJECT_ROOT") @TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class) @RunWith(JUnit3RunnerWithInners.class)
@@ -9871,30 +9584,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
} }
@TestMetadata("cloneHashSet.kt")
public void testCloneHashSet() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/javaInterop/objectMethods/cloneHashSet.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("cloneHierarchy.kt")
public void testCloneHierarchy() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/javaInterop/objectMethods/cloneHierarchy.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("cloneableClassWithoutClone.kt") @TestMetadata("cloneableClassWithoutClone.kt")
public void testCloneableClassWithoutClone() throws Exception { public void testCloneableClassWithoutClone() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/javaInterop/objectMethods/cloneableClassWithoutClone.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/javaInterop/objectMethods/cloneableClassWithoutClone.kt");
@@ -11996,18 +11685,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/nonLocalReturns"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS, true); KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/nonLocalReturns"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS, true);
} }
@TestMetadata("kt6895.kt")
public void testKt6895() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/nonLocalReturns/kt6895.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("kt9644let.kt") @TestMetadata("kt9644let.kt")
public void testKt9644let() throws Exception { public void testKt9644let() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/nonLocalReturns/kt9644let.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/nonLocalReturns/kt9644let.kt");
@@ -12104,18 +11781,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
doTest(fileName); doTest(fileName);
} }
@TestMetadata("kt1136.kt")
public void testKt1136() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/objects/kt1136.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("kt1186.kt") @TestMetadata("kt1186.kt")
public void testKt1186() throws Exception { public void testKt1186() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/objects/kt1186.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/objects/kt1186.kt");
@@ -16153,18 +15818,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
} }
@TestMetadata("javaMethodsSmokeTest.kt")
public void testJavaMethodsSmokeTest() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/functions/javaMethodsSmokeTest.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("platformName.kt") @TestMetadata("platformName.kt")
public void testPlatformName() throws Exception { public void testPlatformName() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/functions/platformName.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/functions/platformName.kt");
@@ -16776,18 +16429,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
} }
@TestMetadata("rawTypeArgument.kt")
public void testRawTypeArgument() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/mapping/types/rawTypeArgument.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("supertypes.kt") @TestMetadata("supertypes.kt")
public void testSupertypes() throws Exception { public void testSupertypes() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/mapping/types/supertypes.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/mapping/types/supertypes.kt");
@@ -18073,18 +17714,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
} }
@TestMetadata("platformTypeClassifier.kt")
public void testPlatformTypeClassifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/platformTypeClassifier.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("platformTypeNotEqualToKotlinType.kt") @TestMetadata("platformTypeNotEqualToKotlinType.kt")
public void testPlatformTypeNotEqualToKotlinType() throws Exception { public void testPlatformTypeNotEqualToKotlinType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/platformTypeNotEqualToKotlinType.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/platformTypeNotEqualToKotlinType.kt");
@@ -18097,18 +17726,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
} }
@TestMetadata("platformTypeToString.kt")
public void testPlatformTypeToString() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/platformTypeToString.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("typeArguments.kt") @TestMetadata("typeArguments.kt")
public void testTypeArguments() throws Exception { public void testTypeArguments() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/typeArguments.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/reflection/types/typeArguments.kt");
@@ -18383,36 +18000,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
} }
@TestMetadata("kt1202.kt")
public void testKt1202() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt1202.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("kt13381.kt") @TestMetadata("kt13381.kt")
public void testKt13381() throws Exception { public void testKt13381() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt13381.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt13381.kt");
doTest(fileName); doTest(fileName);
} }
@TestMetadata("kt1406.kt")
public void testKt1406() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt1406.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("kt14447.kt") @TestMetadata("kt14447.kt")
public void testKt14447() throws Exception { public void testKt14447() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt14447.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt14447.kt");
@@ -20603,30 +20196,6 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that."); throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
} }
@TestMetadata("toArray.kt")
public void testToArray() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/toArray/toArray.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("toArrayAlreadyPresent.kt")
public void testToArrayAlreadyPresent() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/toArray/toArrayAlreadyPresent.kt");
try {
doTest(fileName);
}
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("toTypedArray.kt") @TestMetadata("toTypedArray.kt")
public void testToTypedArray() throws Exception { public void testToTypedArray() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/toArray/toTypedArray.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/toArray/toTypedArray.kt");