[JS IR] Add tests for checking constant inlining with JS IR IC

^KT-62425
This commit is contained in:
Alexander Korepanov
2023-10-11 16:48:12 +02:00
committed by Space Team
parent 4ebfed04d3
commit 91edbeb747
49 changed files with 543 additions and 0 deletions
@@ -61,6 +61,12 @@ public class JsFirInvalidationPerFileTestGenerated extends AbstractJsFirInvalida
runTest("js/js.translator/testData/incremental/invalidation/classFunctionsAndFields/");
}
@Test
@TestMetadata("companionConstVal")
public void testCompanionConstVal() throws Exception {
runTest("js/js.translator/testData/incremental/invalidation/companionConstVal/");
}
@Test
@TestMetadata("companionFunction")
public void testCompanionFunction() throws Exception {
@@ -307,6 +313,12 @@ public class JsFirInvalidationPerFileTestGenerated extends AbstractJsFirInvalida
runTest("js/js.translator/testData/incremental/invalidation/jsCodeWithConstString/");
}
@Test
@TestMetadata("jsCodeWithConstStringFromOtherModule")
public void testJsCodeWithConstStringFromOtherModule() throws Exception {
runTest("js/js.translator/testData/incremental/invalidation/jsCodeWithConstStringFromOtherModule/");
}
@Test
@TestMetadata("jsExport")
public void testJsExport() throws Exception {
@@ -61,6 +61,12 @@ public class JsFirInvalidationPerModuleTestGenerated extends AbstractJsFirInvali
runTest("js/js.translator/testData/incremental/invalidation/classFunctionsAndFields/");
}
@Test
@TestMetadata("companionConstVal")
public void testCompanionConstVal() throws Exception {
runTest("js/js.translator/testData/incremental/invalidation/companionConstVal/");
}
@Test
@TestMetadata("companionFunction")
public void testCompanionFunction() throws Exception {
@@ -307,6 +313,12 @@ public class JsFirInvalidationPerModuleTestGenerated extends AbstractJsFirInvali
runTest("js/js.translator/testData/incremental/invalidation/jsCodeWithConstString/");
}
@Test
@TestMetadata("jsCodeWithConstStringFromOtherModule")
public void testJsCodeWithConstStringFromOtherModule() throws Exception {
runTest("js/js.translator/testData/incremental/invalidation/jsCodeWithConstStringFromOtherModule/");
}
@Test
@TestMetadata("jsExport")
public void testJsExport() throws Exception {
@@ -61,6 +61,12 @@ public class JsIrES6InvalidationPerFileTestGenerated extends AbstractJsIrES6Inva
runTest("js/js.translator/testData/incremental/invalidation/classFunctionsAndFields/");
}
@Test
@TestMetadata("companionConstVal")
public void testCompanionConstVal() throws Exception {
runTest("js/js.translator/testData/incremental/invalidation/companionConstVal/");
}
@Test
@TestMetadata("companionFunction")
public void testCompanionFunction() throws Exception {
@@ -307,6 +313,12 @@ public class JsIrES6InvalidationPerFileTestGenerated extends AbstractJsIrES6Inva
runTest("js/js.translator/testData/incremental/invalidation/jsCodeWithConstString/");
}
@Test
@TestMetadata("jsCodeWithConstStringFromOtherModule")
public void testJsCodeWithConstStringFromOtherModule() throws Exception {
runTest("js/js.translator/testData/incremental/invalidation/jsCodeWithConstStringFromOtherModule/");
}
@Test
@TestMetadata("jsExport")
public void testJsExport() throws Exception {
@@ -61,6 +61,12 @@ public class JsIrES6InvalidationPerModuleTestGenerated extends AbstractJsIrES6In
runTest("js/js.translator/testData/incremental/invalidation/classFunctionsAndFields/");
}
@Test
@TestMetadata("companionConstVal")
public void testCompanionConstVal() throws Exception {
runTest("js/js.translator/testData/incremental/invalidation/companionConstVal/");
}
@Test
@TestMetadata("companionFunction")
public void testCompanionFunction() throws Exception {
@@ -307,6 +313,12 @@ public class JsIrES6InvalidationPerModuleTestGenerated extends AbstractJsIrES6In
runTest("js/js.translator/testData/incremental/invalidation/jsCodeWithConstString/");
}
@Test
@TestMetadata("jsCodeWithConstStringFromOtherModule")
public void testJsCodeWithConstStringFromOtherModule() throws Exception {
runTest("js/js.translator/testData/incremental/invalidation/jsCodeWithConstStringFromOtherModule/");
}
@Test
@TestMetadata("jsExport")
public void testJsExport() throws Exception {
@@ -61,6 +61,12 @@ public class JsIrInvalidationPerFileTestGenerated extends AbstractJsIrInvalidati
runTest("js/js.translator/testData/incremental/invalidation/classFunctionsAndFields/");
}
@Test
@TestMetadata("companionConstVal")
public void testCompanionConstVal() throws Exception {
runTest("js/js.translator/testData/incremental/invalidation/companionConstVal/");
}
@Test
@TestMetadata("companionFunction")
public void testCompanionFunction() throws Exception {
@@ -307,6 +313,12 @@ public class JsIrInvalidationPerFileTestGenerated extends AbstractJsIrInvalidati
runTest("js/js.translator/testData/incremental/invalidation/jsCodeWithConstString/");
}
@Test
@TestMetadata("jsCodeWithConstStringFromOtherModule")
public void testJsCodeWithConstStringFromOtherModule() throws Exception {
runTest("js/js.translator/testData/incremental/invalidation/jsCodeWithConstStringFromOtherModule/");
}
@Test
@TestMetadata("jsExport")
public void testJsExport() throws Exception {
@@ -61,6 +61,12 @@ public class JsIrInvalidationPerModuleTestGenerated extends AbstractJsIrInvalida
runTest("js/js.translator/testData/incremental/invalidation/classFunctionsAndFields/");
}
@Test
@TestMetadata("companionConstVal")
public void testCompanionConstVal() throws Exception {
runTest("js/js.translator/testData/incremental/invalidation/companionConstVal/");
}
@Test
@TestMetadata("companionFunction")
public void testCompanionFunction() throws Exception {
@@ -307,6 +313,12 @@ public class JsIrInvalidationPerModuleTestGenerated extends AbstractJsIrInvalida
runTest("js/js.translator/testData/incremental/invalidation/jsCodeWithConstString/");
}
@Test
@TestMetadata("jsCodeWithConstStringFromOtherModule")
public void testJsCodeWithConstStringFromOtherModule() throws Exception {
runTest("js/js.translator/testData/incremental/invalidation/jsCodeWithConstStringFromOtherModule/");
}
@Test
@TestMetadata("jsExport")
public void testJsExport() throws Exception {