From b0445496bbe54118eb990113c112317fbc2574fd Mon Sep 17 00:00:00 2001 From: Svyatoslav Kuzmich Date: Wed, 3 Jun 2020 15:19:36 +0300 Subject: [PATCH] [JS] Autogenerate and mute missing test --- .../IrJsTypeScriptExportES6TestGenerated.java | 18 ++++++++++++++++++ .../constructors/constructors.kt | 2 ++ 2 files changed, 20 insertions(+) diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/IrJsTypeScriptExportES6TestGenerated.java b/js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/IrJsTypeScriptExportES6TestGenerated.java index 27952472c96..1778f562586 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/IrJsTypeScriptExportES6TestGenerated.java +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/es6/semantics/IrJsTypeScriptExportES6TestGenerated.java @@ -29,6 +29,24 @@ public class IrJsTypeScriptExportES6TestGenerated extends AbstractIrJsTypeScript KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); } + @TestMetadata("js/js.translator/testData/typescript-export/constructors") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Constructors extends AbstractIrJsTypeScriptExportES6Test { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest0(this::doTest, TargetBackend.JS_IR_ES6, testDataFilePath); + } + + public void testAllFilesPresentInConstructors() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/typescript-export/constructors"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true); + } + + @TestMetadata("constructors.kt") + public void testConstructors() throws Exception { + runTest("js/js.translator/testData/typescript-export/constructors/constructors.kt"); + } + } + @TestMetadata("js/js.translator/testData/typescript-export/declarations") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) diff --git a/js/js.translator/testData/typescript-export/constructors/constructors.kt b/js/js.translator/testData/typescript-export/constructors/constructors.kt index c6a428f5b89..78e38d429ec 100644 --- a/js/js.translator/testData/typescript-export/constructors/constructors.kt +++ b/js/js.translator/testData/typescript-export/constructors/constructors.kt @@ -7,6 +7,8 @@ // TODO fix statics export in DCE-driven mode // SKIP_DCE_DRIVEN +// IGNORE_BACKEND: JS_IR_ES6 + @file:JsExport class ClassWithDefaultCtor {