diff --git a/compiler/tests-common/tests/org/jetbrains/kotlin/test/jsIrBackendTestWhitelist.kt b/compiler/tests-common/tests/org/jetbrains/kotlin/test/jsIrBackendTestWhitelist.kt index 9d2e07eca0c..08102a7845d 100644 --- a/compiler/tests-common/tests/org/jetbrains/kotlin/test/jsIrBackendTestWhitelist.kt +++ b/compiler/tests-common/tests/org/jetbrains/kotlin/test/jsIrBackendTestWhitelist.kt @@ -13,5 +13,7 @@ val JS_IR_BACKEND_TEST_WHITELIST = listOf( "js/js.translator/testData/box/package/deeplyNestedPackageFunctionCalled.kt", "js/js.translator/testData/box/multiPackage/nestedPackageFunctionCalledFromOtherPackage.kt", "js/js.translator/testData/box/expression/identifierClash/useVariableOfNameOfFunction.kt", - "js/js.translator/testData/box/expression/stringClass/stringConstant.kt" + "js/js.translator/testData/box/expression/stringClass/stringConstant.kt", + "js/js.translator/testData/box/expression/when/empty.kt", + "js/js.translator/testData/box/simple/notBoolean.kt" ).map { File(it) } diff --git a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/IrBoxJsTestGenerated.java b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/IrBoxJsTestGenerated.java index a37df5e196e..38547438ed7 100644 --- a/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/IrBoxJsTestGenerated.java +++ b/js/js.tests/test/org/jetbrains/kotlin/js/test/semantics/IrBoxJsTestGenerated.java @@ -8912,18 +8912,7 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest { @TestMetadata("empty.kt") public void testEmpty() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/expression/when/empty.kt"); - if (KotlinTestUtils.RUN_IGNORED_TESTS_AS_REGULAR) { - doTest(fileName); - return; - } - try { - doTest(fileName); - } - catch (Throwable ignore) { - ignore.printStackTrace(); - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive or add it to whitelist for that."); + doTest(fileName); } @TestMetadata("exhaustiveCheckException.kt") @@ -21345,18 +21334,7 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest { @TestMetadata("notBoolean.kt") public void testNotBoolean() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/simple/notBoolean.kt"); - if (KotlinTestUtils.RUN_IGNORED_TESTS_AS_REGULAR) { - doTest(fileName); - return; - } - try { - doTest(fileName); - } - catch (Throwable ignore) { - ignore.printStackTrace(); - return; - } - throw new AssertionError("Looks like this test can be unmuted. Remove IGNORE_BACKEND directive or add it to whitelist for that."); + doTest(fileName); } @TestMetadata("plusAssign.kt")