[JS] Add test for KT-43374

This commit is contained in:
Roman Artemev
2021-09-24 13:52:50 +07:00
parent af5ec9d289
commit 9123d426c3
4 changed files with 124 additions and 0 deletions
@@ -3040,6 +3040,11 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/when"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
@TestMetadata("constantsInWhen.kt")
public void testConstantsInWhen() throws Exception {
runTest("js/js.translator/testData/box/expression/when/constantsInWhen.kt");
}
@TestMetadata("doWhileWithOneStmWhen.kt")
public void testDoWhileWithOneStmWhen() throws Exception {
runTest("js/js.translator/testData/box/expression/when/doWhileWithOneStmWhen.kt");
@@ -3040,6 +3040,11 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/when"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS_IR, true);
}
@TestMetadata("constantsInWhen.kt")
public void testConstantsInWhen() throws Exception {
runTest("js/js.translator/testData/box/expression/when/constantsInWhen.kt");
}
@TestMetadata("doWhileWithOneStmWhen.kt")
public void testDoWhileWithOneStmWhen() throws Exception {
runTest("js/js.translator/testData/box/expression/when/doWhileWithOneStmWhen.kt");
@@ -3055,6 +3055,11 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("js/js.translator/testData/box/expression/when"), Pattern.compile("^([^_](.+))\\.kt$"), null, TargetBackend.JS, true);
}
@TestMetadata("constantsInWhen.kt")
public void testConstantsInWhen() throws Exception {
runTest("js/js.translator/testData/box/expression/when/constantsInWhen.kt");
}
@TestMetadata("doWhileWithOneStmWhen.kt")
public void testDoWhileWithOneStmWhen() throws Exception {
runTest("js/js.translator/testData/box/expression/when/doWhileWithOneStmWhen.kt");