[JS IR] Move tests for JS code diagnostics
^KT-62425
This commit is contained in:
committed by
Space Team
parent
78aa34b3e8
commit
04809a6b3b
-46
@@ -539,52 +539,6 @@ public class FirPsiJsOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiJ
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/jsCode")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class JsCode {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInJsCode() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib/jsCode"), Pattern.compile("^([^_](.+))\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), TargetBackend.JS_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("argumentIsLiteral.kt")
|
|
||||||
public void testArgumentIsLiteral() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/jsCode/argumentIsLiteral.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("badAssignment.kt")
|
|
||||||
public void testBadAssignment() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/jsCode/badAssignment.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("deleteOperation.kt")
|
|
||||||
public void testDeleteOperation() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/jsCode/deleteOperation.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("error.kt")
|
|
||||||
public void testError() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/jsCode/error.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("noJavaScriptProduced.kt")
|
|
||||||
public void testNoJavaScriptProduced() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/jsCode/noJavaScriptProduced.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("warning.kt")
|
|
||||||
public void testWarning() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/jsCode/warning.kt");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/jvmDeclarations")
|
@TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/jvmDeclarations")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+46
@@ -123,6 +123,52 @@ public class FirPsiJsOldFrontendDiagnosticsWithBackendTestGenerated extends Abst
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class JsCode {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInJsCode() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode"), Pattern.compile("^([^_](.+))\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), TargetBackend.JS_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("argumentIsLiteral.kt")
|
||||||
|
public void testArgumentIsLiteral() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/argumentIsLiteral.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("badAssignment.kt")
|
||||||
|
public void testBadAssignment() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/badAssignment.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("deleteOperation.kt")
|
||||||
|
public void testDeleteOperation() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/deleteOperation.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("error.kt")
|
||||||
|
public void testError() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/error.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("noJavaScriptProduced.kt")
|
||||||
|
public void testNoJavaScriptProduced() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/noJavaScriptProduced.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("warning.kt")
|
||||||
|
public void testWarning() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/warning.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/unsupportedFeatures")
|
@TestMetadata("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/unsupportedFeatures")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
+46
@@ -123,6 +123,52 @@ public class DiagnosticsWithJsStdLibAndBackendTestGenerated extends AbstractDiag
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nested
|
||||||
|
@TestMetadata("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode")
|
||||||
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
public class JsCode {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInJsCode() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode"), Pattern.compile("^([^_](.+))\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), TargetBackend.JS_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("argumentIsLiteral.kt")
|
||||||
|
public void testArgumentIsLiteral() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/argumentIsLiteral.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("badAssignment.kt")
|
||||||
|
public void testBadAssignment() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/badAssignment.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("deleteOperation.kt")
|
||||||
|
public void testDeleteOperation() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/deleteOperation.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("error.kt")
|
||||||
|
public void testError() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/error.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("noJavaScriptProduced.kt")
|
||||||
|
public void testNoJavaScriptProduced() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/noJavaScriptProduced.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("warning.kt")
|
||||||
|
public void testWarning() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/warning.kt");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/unsupportedFeatures")
|
@TestMetadata("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/unsupportedFeatures")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
Generated
-46
@@ -539,52 +539,6 @@ public class DiagnosticsWithJsStdLibTestGenerated extends AbstractDiagnosticsTes
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nested
|
|
||||||
@TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/jsCode")
|
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
|
||||||
public class JsCode {
|
|
||||||
@Test
|
|
||||||
public void testAllFilesPresentInJsCode() throws Exception {
|
|
||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/testsWithJsStdLib/jsCode"), Pattern.compile("^([^_](.+))\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), TargetBackend.JS_IR, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("argumentIsLiteral.kt")
|
|
||||||
public void testArgumentIsLiteral() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/jsCode/argumentIsLiteral.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("badAssignment.kt")
|
|
||||||
public void testBadAssignment() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/jsCode/badAssignment.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("deleteOperation.kt")
|
|
||||||
public void testDeleteOperation() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/jsCode/deleteOperation.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("error.kt")
|
|
||||||
public void testError() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/jsCode/error.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("noJavaScriptProduced.kt")
|
|
||||||
public void testNoJavaScriptProduced() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/jsCode/noJavaScriptProduced.kt");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
@TestMetadata("warning.kt")
|
|
||||||
public void testWarning() throws Exception {
|
|
||||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/jsCode/warning.kt");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Nested
|
@Nested
|
||||||
@TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/jvmDeclarations")
|
@TestMetadata("compiler/testData/diagnostics/testsWithJsStdLib/jvmDeclarations")
|
||||||
@TestDataPath("$PROJECT_ROOT")
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
|
|||||||
Reference in New Issue
Block a user