[JS IR] Add serialization regressions tests

This commit is contained in:
Svyatoslav Kuzmich
2020-01-10 14:46:57 +03:00
parent fbf71be30c
commit 1333267983
11 changed files with 340 additions and 0 deletions
@@ -14483,6 +14483,39 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/ir/primitiveNumberComparisons/mixedNumberTypes.kt");
}
}
@TestMetadata("compiler/testData/codegen/box/ir/serializationRegressions")
@TestDataPath("$PROJECT_ROOT")
@RunWith(JUnit3RunnerWithInners.class)
public static class SerializationRegressions extends AbstractBlackBoxCodegenTest {
private void runTest(String testDataFilePath) throws Exception {
KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM, testDataFilePath);
}
public void testAllFilesPresentInSerializationRegressions() throws Exception {
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/ir/serializationRegressions"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@TestMetadata("dispatchReceiverValue.kt")
public void testDispatchReceiverValue() throws Exception {
runTest("compiler/testData/codegen/box/ir/serializationRegressions/dispatchReceiverValue.kt");
}
@TestMetadata("genericProperty.kt")
public void testGenericProperty() throws Exception {
runTest("compiler/testData/codegen/box/ir/serializationRegressions/genericProperty.kt");
}
@TestMetadata("innerClassInEnumEntryClass.kt")
public void testInnerClassInEnumEntryClass() throws Exception {
runTest("compiler/testData/codegen/box/ir/serializationRegressions/innerClassInEnumEntryClass.kt");
}
@TestMetadata("useImportedMember.kt")
public void testUseImportedMember() throws Exception {
runTest("compiler/testData/codegen/box/ir/serializationRegressions/useImportedMember.kt");
}
}
}
@TestMetadata("compiler/testData/codegen/box/javaInterop")