[FIR JS] Add more tests for JS_NAME_CLASH and JS_FAKE_NAME_CLASH
^KT-59425 Related ^KT-59370 Related
This commit is contained in:
committed by
Space Team
parent
6bb939c6cb
commit
ea9e2eb41a
+6
@@ -5178,6 +5178,12 @@ public class FirJsBoxTestGenerated extends AbstractFirJsBoxTest {
|
||||
runTest("js/js.translator/testData/box/inheritance/fromNestedNativeClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritExtensionsWithSameNames.kt")
|
||||
public void testInheritExtensionsWithSameNames() throws Exception {
|
||||
runTest("js/js.translator/testData/box/inheritance/inheritExtensionsWithSameNames.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritFromCharIterator.kt")
|
||||
public void testInheritFromCharIterator() throws Exception {
|
||||
|
||||
+6
@@ -5284,6 +5284,12 @@ public class FirJsES6BoxTestGenerated extends AbstractFirJsES6BoxTest {
|
||||
runTest("js/js.translator/testData/box/inheritance/fromNestedNativeClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritExtensionsWithSameNames.kt")
|
||||
public void testInheritExtensionsWithSameNames() throws Exception {
|
||||
runTest("js/js.translator/testData/box/inheritance/inheritExtensionsWithSameNames.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritFromCharIterator.kt")
|
||||
public void testInheritFromCharIterator() throws Exception {
|
||||
|
||||
+36
@@ -698,12 +698,30 @@ public class FirPsiJsOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiJ
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/classAndTypealias.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classInheritance.kt")
|
||||
public void testClassInheritance() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/classInheritance.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classInheritanceExtensions.kt")
|
||||
public void testClassInheritanceExtensions() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/classInheritanceExtensions.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classLevelMethodAndProperty.kt")
|
||||
public void testClassLevelMethodAndProperty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/classLevelMethodAndProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("classMembers.kt")
|
||||
public void testClassMembers() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/classMembers.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("conflictingNamesFromSuperclass.kt")
|
||||
public void testConflictingNamesFromSuperclass() throws Exception {
|
||||
@@ -722,6 +740,18 @@ public class FirPsiJsOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiJ
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/extensionPropertyAndMethod.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("extensionPropertyAndMethodWithJsName.kt")
|
||||
public void testExtensionPropertyAndMethodWithJsName() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/extensionPropertyAndMethodWithJsName.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("externalClassInheritance.kt")
|
||||
public void testExternalClassInheritance() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/externalClassInheritance.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("illegalName.kt")
|
||||
public void testIllegalName() throws Exception {
|
||||
@@ -854,6 +884,12 @@ public class FirPsiJsOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiJ
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/propertyAndMethodInSubclass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("topLevelDeclarations.kt")
|
||||
public void testTopLevelDeclarations() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/name/topLevelDeclarations.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("topLevelMethodAndJsNameConstructor.kt")
|
||||
public void testTopLevelMethodAndJsNameConstructor() throws Exception {
|
||||
|
||||
+6
@@ -5284,6 +5284,12 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
|
||||
runTest("js/js.translator/testData/box/inheritance/fromNestedNativeClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritExtensionsWithSameNames.kt")
|
||||
public void testInheritExtensionsWithSameNames() throws Exception {
|
||||
runTest("js/js.translator/testData/box/inheritance/inheritExtensionsWithSameNames.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritFromCharIterator.kt")
|
||||
public void testInheritFromCharIterator() throws Exception {
|
||||
|
||||
+6
@@ -5178,6 +5178,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
|
||||
runTest("js/js.translator/testData/box/inheritance/fromNestedNativeClass.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritExtensionsWithSameNames.kt")
|
||||
public void testInheritExtensionsWithSameNames() throws Exception {
|
||||
runTest("js/js.translator/testData/box/inheritance/inheritExtensionsWithSameNames.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("inheritFromCharIterator.kt")
|
||||
public void testInheritFromCharIterator() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user