[JS FIR] Add JS_NAME_CLASH tests for constructors

^KT-64867 Related
This commit is contained in:
Alexander Korepanov
2024-01-15 15:45:43 +01:00
committed by Space Team
parent 5da4d31d37
commit 3dd4a0d868
12 changed files with 237 additions and 0 deletions
@@ -3250,6 +3250,12 @@ public class FirJsES6BoxTestGenerated extends AbstractFirJsES6BoxTest {
runTest("js/js.translator/testData/box/export/reservedModuleNameInExportedFile.kt");
}
@Test
@TestMetadata("topLevelAndClassCtrNameClash.kt")
public void testTopLevelAndClassCtrNameClash() throws Exception {
runTest("js/js.translator/testData/box/export/topLevelAndClassCtrNameClash.kt");
}
@Test
@TestMetadata("vararg.kt")
public void testVararg() throws Exception {
@@ -3144,6 +3144,12 @@ public class FirLightTreeJsBoxTestGenerated extends AbstractFirLightTreeJsBoxTes
runTest("js/js.translator/testData/box/export/reservedModuleNameInExportedFile.kt");
}
@Test
@TestMetadata("topLevelAndClassCtrNameClash.kt")
public void testTopLevelAndClassCtrNameClash() throws Exception {
runTest("js/js.translator/testData/box/export/topLevelAndClassCtrNameClash.kt");
}
@Test
@TestMetadata("vararg.kt")
public void testVararg() throws Exception {
@@ -700,6 +700,12 @@ public class FirLightTreeJsOldFrontendDiagnosticsTestGenerated extends AbstractF
runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/conflictingNamesFromSuperclass.kt");
}
@Test
@TestMetadata("constructorsWithSameJsName.kt")
public void testConstructorsWithSameJsName() throws Exception {
runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/constructorsWithSameJsName.kt");
}
@Test
@TestMetadata("declarationClash.kt")
public void testDeclarationClash() throws Exception {
@@ -3144,6 +3144,12 @@ public class FirPsiJsBoxTestGenerated extends AbstractFirPsiJsBoxTest {
runTest("js/js.translator/testData/box/export/reservedModuleNameInExportedFile.kt");
}
@Test
@TestMetadata("topLevelAndClassCtrNameClash.kt")
public void testTopLevelAndClassCtrNameClash() throws Exception {
runTest("js/js.translator/testData/box/export/topLevelAndClassCtrNameClash.kt");
}
@Test
@TestMetadata("vararg.kt")
public void testVararg() throws Exception {
@@ -700,6 +700,12 @@ public class FirPsiJsOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiJ
runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/conflictingNamesFromSuperclass.kt");
}
@Test
@TestMetadata("constructorsWithSameJsName.kt")
public void testConstructorsWithSameJsName() throws Exception {
runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/constructorsWithSameJsName.kt");
}
@Test
@TestMetadata("declarationClash.kt")
public void testDeclarationClash() throws Exception {
@@ -700,6 +700,12 @@ public class DiagnosticsWithJsStdLibTestGenerated extends AbstractDiagnosticsTes
runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/conflictingNamesFromSuperclass.kt");
}
@Test
@TestMetadata("constructorsWithSameJsName.kt")
public void testConstructorsWithSameJsName() throws Exception {
runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/constructorsWithSameJsName.kt");
}
@Test
@TestMetadata("declarationClash.kt")
public void testDeclarationClash() throws Exception {
@@ -3250,6 +3250,12 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
runTest("js/js.translator/testData/box/export/reservedModuleNameInExportedFile.kt");
}
@Test
@TestMetadata("topLevelAndClassCtrNameClash.kt")
public void testTopLevelAndClassCtrNameClash() throws Exception {
runTest("js/js.translator/testData/box/export/topLevelAndClassCtrNameClash.kt");
}
@Test
@TestMetadata("vararg.kt")
public void testVararg() throws Exception {
@@ -3144,6 +3144,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/export/reservedModuleNameInExportedFile.kt");
}
@Test
@TestMetadata("topLevelAndClassCtrNameClash.kt")
public void testTopLevelAndClassCtrNameClash() throws Exception {
runTest("js/js.translator/testData/box/export/topLevelAndClassCtrNameClash.kt");
}
@Test
@TestMetadata("vararg.kt")
public void testVararg() throws Exception {