Unmute already worked tests and regenerate tests

This commit is contained in:
Zalim Bashorov
2016-11-15 17:27:12 +03:00
committed by Zalim Bashorov
parent 8c3d2872c3
commit bde9f99d7c
8 changed files with 7 additions and 69 deletions
-2
View File
@@ -1,5 +1,3 @@
// TODO: Enable when JS backend supports Java class library
// IGNORE_BACKEND: JS
import java.util.AbstractList import java.util.AbstractList
class MyList(): AbstractList<String>() { class MyList(): AbstractList<String>() {
@@ -1,6 +1,3 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
import kotlin.reflect.KProperty import kotlin.reflect.KProperty
public open class TestDelegate<T: Any>(private val initializer: () -> T) { public open class TestDelegate<T: Any>(private val initializer: () -> T) {
@@ -1,6 +1,3 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
import C.f import C.f
import C.p import C.p
import C.ext import C.ext
@@ -1,6 +1,3 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
import Class.C.f import Class.C.f
import Class.C.p import Class.C.p
import Class.C.ext import Class.C.ext
@@ -1,6 +1,3 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
abstract class Your { abstract class Your {
abstract val your: String abstract val your: String
-3
View File
@@ -1,6 +1,3 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
class Thing(delegate: CharSequence) : CharSequence by delegate class Thing(delegate: CharSequence) : CharSequence by delegate
fun box(): String { fun box(): String {
-3
View File
@@ -1,6 +1,3 @@
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// KT-5956 java.lang.AbstractMethodError: test.Thing.subSequence(II)Ljava/lang/CharSequence // KT-5956 java.lang.AbstractMethodError: test.Thing.subSequence(II)Ljava/lang/CharSequence
class Thing(val delegate: CharSequence) : CharSequence { class Thing(val delegate: CharSequence) : CharSequence {
@@ -3785,14 +3785,8 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
@TestMetadata("kt2395.kt") @TestMetadata("kt2395.kt")
public void testKt2395() throws Exception { public void testKt2395() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/classes/kt2395.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/classes/kt2395.kt");
try {
doTest(fileName); doTest(fileName);
} }
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("kt2417.kt") @TestMetadata("kt2417.kt")
public void testKt2417() throws Exception { public void testKt2417() throws Exception {
@@ -8804,14 +8798,8 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
@TestMetadata("delegates.kt") @TestMetadata("delegates.kt")
public void testDelegates() throws Exception { public void testDelegates() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/fieldRename/delegates.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/fieldRename/delegates.kt");
try {
doTest(fileName); doTest(fileName);
} }
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("genericPropertyWithItself.kt") @TestMetadata("genericPropertyWithItself.kt")
public void testGenericPropertyWithItself() throws Exception { public void testGenericPropertyWithItself() throws Exception {
@@ -12863,26 +12851,14 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
@TestMetadata("useImportedMember.kt") @TestMetadata("useImportedMember.kt")
public void testUseImportedMember() throws Exception { public void testUseImportedMember() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/objects/useImportedMember.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/objects/useImportedMember.kt");
try {
doTest(fileName); doTest(fileName);
} }
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("useImportedMemberFromCompanion.kt") @TestMetadata("useImportedMemberFromCompanion.kt")
public void testUseImportedMemberFromCompanion() throws Exception { public void testUseImportedMemberFromCompanion() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/objects/useImportedMemberFromCompanion.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/objects/useImportedMemberFromCompanion.kt");
try {
doTest(fileName); 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/operatorConventions") @TestMetadata("compiler/testData/codegen/box/operatorConventions")
@@ -13916,14 +13892,8 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
@TestMetadata("fieldInsideNested.kt") @TestMetadata("fieldInsideNested.kt")
public void testFieldInsideNested() throws Exception { public void testFieldInsideNested() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/properties/fieldInsideNested.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/properties/fieldInsideNested.kt");
try {
doTest(fileName); doTest(fileName);
} }
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("fieldSimple.kt") @TestMetadata("fieldSimple.kt")
public void testFieldSimple() throws Exception { public void testFieldSimple() throws Exception {
@@ -20810,14 +20780,8 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
@TestMetadata("kt3571.kt") @TestMetadata("kt3571.kt")
public void testKt3571() throws Exception { public void testKt3571() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/strings/kt3571.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/strings/kt3571.kt");
try {
doTest(fileName); doTest(fileName);
} }
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("kt3652.kt") @TestMetadata("kt3652.kt")
public void testKt3652() throws Exception { public void testKt3652() throws Exception {
@@ -20834,14 +20798,8 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
@TestMetadata("kt5956.kt") @TestMetadata("kt5956.kt")
public void testKt5956() throws Exception { public void testKt5956() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/strings/kt5956.kt"); String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/strings/kt5956.kt");
try {
doTest(fileName); doTest(fileName);
} }
catch (Throwable ignore) {
return;
}
throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive for that.");
}
@TestMetadata("kt881.kt") @TestMetadata("kt881.kt")
public void testKt881() throws Exception { public void testKt881() throws Exception {