[JS IR] Add JS BE diagnostic tests
Add tests for: - EXPORTING_JS_NAME_CLASH - EXPORTING_JS_NAME_CLASH_ES ^KT-61710
This commit is contained in:
+64
@@ -25,6 +25,70 @@ public class FirPsiJsOldFrontendDiagnosticsWithBackendTestGenerated extends Abst
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation"), Pattern.compile("^([^_](.+))\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class ExportedNamesClash {
|
||||
@Test
|
||||
public void testAllFilesPresentInExportedNamesClash() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash"), Pattern.compile("^([^_](.+))\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionAndFunction.kt")
|
||||
public void testFunctionAndFunction() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash/functionAndFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionAndProperty.kt")
|
||||
public void testFunctionAndProperty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash/functionAndProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionDifferentPackages.kt")
|
||||
public void testFunctionDifferentPackages() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash/functionDifferentPackages.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multipleClash.kt")
|
||||
public void testMultipleClash() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash/multipleClash.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multipleClashESModules.kt")
|
||||
public void testMultipleClashESModules() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash/multipleClashESModules.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("packageAndFunction.kt")
|
||||
public void testPackageAndFunction() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash/packageAndFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("packageAndProperty.kt")
|
||||
public void testPackageAndProperty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash/packageAndProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyAndProperty.kt")
|
||||
public void testPropertyAndProperty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash/propertyAndProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyDifferentPackages.kt")
|
||||
public void testPropertyDifferentPackages() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash/propertyDifferentPackages.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/inline")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
+64
@@ -25,6 +25,70 @@ public class DiagnosticsWithJsStdLibAndBackendTestGenerated extends AbstractDiag
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation"), Pattern.compile("^([^_](.+))\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class ExportedNamesClash {
|
||||
@Test
|
||||
public void testAllFilesPresentInExportedNamesClash() throws Exception {
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash"), Pattern.compile("^([^_](.+))\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), TargetBackend.JS_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionAndFunction.kt")
|
||||
public void testFunctionAndFunction() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash/functionAndFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionAndProperty.kt")
|
||||
public void testFunctionAndProperty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash/functionAndProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("functionDifferentPackages.kt")
|
||||
public void testFunctionDifferentPackages() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash/functionDifferentPackages.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multipleClash.kt")
|
||||
public void testMultipleClash() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash/multipleClash.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("multipleClashESModules.kt")
|
||||
public void testMultipleClashESModules() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash/multipleClashESModules.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("packageAndFunction.kt")
|
||||
public void testPackageAndFunction() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash/packageAndFunction.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("packageAndProperty.kt")
|
||||
public void testPackageAndProperty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash/packageAndProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyAndProperty.kt")
|
||||
public void testPropertyAndProperty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash/propertyAndProperty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("propertyDifferentPackages.kt")
|
||||
public void testPropertyDifferentPackages() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/exportedNamesClash/propertyDifferentPackages.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@Nested
|
||||
@TestMetadata("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/inline")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
|
||||
Reference in New Issue
Block a user