Add tests for obsolete codegen issues

#KT-16790 Obsolete
 #KT-16858 Obsolete
 #KT-17441 Obsolete
This commit is contained in:
Alexander Udalov
2019-01-09 18:50:37 +01:00
parent 0bb97cf590
commit cca6ba38be
8 changed files with 100 additions and 0 deletions
@@ -10694,6 +10694,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsLocalWithClosure.kt");
}
@TestMetadata("objectExtendsLocal_kt16858.kt")
public void testObjectExtendsLocal_kt16858() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsLocal_kt16858.kt");
}
@TestMetadata("objectOuterDiffersFromInnerOuter.kt")
public void testObjectOuterDiffersFromInnerOuter() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectOuterDiffersFromInnerOuter.kt");
@@ -11465,6 +11470,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/localClasses"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS_IR, true);
}
@TestMetadata("anonymousObjectInExtension.kt")
public void testAnonymousObjectInExtension() throws Exception {
runTest("compiler/testData/codegen/box/localClasses/anonymousObjectInExtension.kt");
}
@TestMetadata("anonymousObjectInInitializer.kt")
public void testAnonymousObjectInInitializer() throws Exception {
runTest("compiler/testData/codegen/box/localClasses/anonymousObjectInInitializer.kt");
@@ -11739,6 +11739,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsLocalWithClosure.kt");
}
@TestMetadata("objectExtendsLocal_kt16858.kt")
public void testObjectExtendsLocal_kt16858() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectExtendsLocal_kt16858.kt");
}
@TestMetadata("objectOuterDiffersFromInnerOuter.kt")
public void testObjectOuterDiffersFromInnerOuter() throws Exception {
runTest("compiler/testData/codegen/box/innerNested/superConstructorCall/objectOuterDiffersFromInnerOuter.kt");
@@ -12510,6 +12515,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/box/localClasses"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.JS, true);
}
@TestMetadata("anonymousObjectInExtension.kt")
public void testAnonymousObjectInExtension() throws Exception {
runTest("compiler/testData/codegen/box/localClasses/anonymousObjectInExtension.kt");
}
@TestMetadata("anonymousObjectInInitializer.kt")
public void testAnonymousObjectInInitializer() throws Exception {
runTest("compiler/testData/codegen/box/localClasses/anonymousObjectInInitializer.kt");