[JS IR] Add tests for JS code KLIB diagnostics
^KT-62425
This commit is contained in:
committed by
Space Team
parent
261527939b
commit
4ebfed04d3
+6
@@ -7104,6 +7104,12 @@ public class FirJsBoxTestGenerated extends AbstractFirJsBoxTest {
|
||||
runTest("js/js.translator/testData/box/jsCode/comments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compileTimeString.kt")
|
||||
public void testCompileTimeString() throws Exception {
|
||||
runTest("js/js.translator/testData/box/jsCode/compileTimeString.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constantExpression.kt")
|
||||
public void testConstantExpression() throws Exception {
|
||||
|
||||
+6
@@ -7210,6 +7210,12 @@ public class FirJsES6BoxTestGenerated extends AbstractFirJsES6BoxTest {
|
||||
runTest("js/js.translator/testData/box/jsCode/comments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compileTimeString.kt")
|
||||
public void testCompileTimeString() throws Exception {
|
||||
runTest("js/js.translator/testData/box/jsCode/compileTimeString.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constantExpression.kt")
|
||||
public void testConstantExpression() throws Exception {
|
||||
|
||||
+60
@@ -144,6 +144,48 @@ public class FirPsiJsOldFrontendDiagnosticsWithBackendTestGenerated extends Abst
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/badAssignment.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compileTimeString.kt")
|
||||
public void testCompileTimeString() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/compileTimeString.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compileTimeStringWithCompanionVal.kt")
|
||||
public void testCompileTimeStringWithCompanionVal() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/compileTimeStringWithCompanionVal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compileTimeStringWithConstVal.kt")
|
||||
public void testCompileTimeStringWithConstVal() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/compileTimeStringWithConstVal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compileTimeStringWithFunCall.kt")
|
||||
public void testCompileTimeStringWithFunCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/compileTimeStringWithFunCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compileTimeStringWithIntrinConstCall.kt")
|
||||
public void testCompileTimeStringWithIntrinConstCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/compileTimeStringWithIntrinConstCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compileTimeStringWithTopLevelVal.kt")
|
||||
public void testCompileTimeStringWithTopLevelVal() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/compileTimeStringWithTopLevelVal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compileTimeStringWithVal.kt")
|
||||
public void testCompileTimeStringWithVal() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/compileTimeStringWithVal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("deleteOperation.kt")
|
||||
public void testDeleteOperation() throws Exception {
|
||||
@@ -156,6 +198,24 @@ public class FirPsiJsOldFrontendDiagnosticsWithBackendTestGenerated extends Abst
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/error.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaScriptEmpty.kt")
|
||||
public void testJavaScriptEmpty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/javaScriptEmpty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaScriptError.kt")
|
||||
public void testJavaScriptError() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/javaScriptError.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaScriptWarning.kt")
|
||||
public void testJavaScriptWarning() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/javaScriptWarning.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noJavaScriptProduced.kt")
|
||||
public void testNoJavaScriptProduced() throws Exception {
|
||||
|
||||
+60
@@ -144,6 +144,48 @@ public class DiagnosticsWithJsStdLibAndBackendTestGenerated extends AbstractDiag
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/badAssignment.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compileTimeString.kt")
|
||||
public void testCompileTimeString() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/compileTimeString.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compileTimeStringWithCompanionVal.kt")
|
||||
public void testCompileTimeStringWithCompanionVal() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/compileTimeStringWithCompanionVal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compileTimeStringWithConstVal.kt")
|
||||
public void testCompileTimeStringWithConstVal() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/compileTimeStringWithConstVal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compileTimeStringWithFunCall.kt")
|
||||
public void testCompileTimeStringWithFunCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/compileTimeStringWithFunCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compileTimeStringWithIntrinConstCall.kt")
|
||||
public void testCompileTimeStringWithIntrinConstCall() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/compileTimeStringWithIntrinConstCall.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compileTimeStringWithTopLevelVal.kt")
|
||||
public void testCompileTimeStringWithTopLevelVal() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/compileTimeStringWithTopLevelVal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compileTimeStringWithVal.kt")
|
||||
public void testCompileTimeStringWithVal() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/compileTimeStringWithVal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("deleteOperation.kt")
|
||||
public void testDeleteOperation() throws Exception {
|
||||
@@ -156,6 +198,24 @@ public class DiagnosticsWithJsStdLibAndBackendTestGenerated extends AbstractDiag
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/error.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaScriptEmpty.kt")
|
||||
public void testJavaScriptEmpty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/javaScriptEmpty.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaScriptError.kt")
|
||||
public void testJavaScriptError() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/javaScriptError.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaScriptWarning.kt")
|
||||
public void testJavaScriptWarning() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/jsCode/javaScriptWarning.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("noJavaScriptProduced.kt")
|
||||
public void testNoJavaScriptProduced() throws Exception {
|
||||
|
||||
+6
@@ -7210,6 +7210,12 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
|
||||
runTest("js/js.translator/testData/box/jsCode/comments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compileTimeString.kt")
|
||||
public void testCompileTimeString() throws Exception {
|
||||
runTest("js/js.translator/testData/box/jsCode/compileTimeString.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constantExpression.kt")
|
||||
public void testConstantExpression() throws Exception {
|
||||
|
||||
+6
@@ -7104,6 +7104,12 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
|
||||
runTest("js/js.translator/testData/box/jsCode/comments.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("compileTimeString.kt")
|
||||
public void testCompileTimeString() throws Exception {
|
||||
runTest("js/js.translator/testData/box/jsCode/compileTimeString.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("constantExpression.kt")
|
||||
public void testConstantExpression() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user