[JS IR] Fixes in tests

- Compilation of tests
- add arguments to extra help
This commit is contained in:
Ilya Goncharov
2021-05-17 18:32:56 +03:00
committed by TeamCityServer
parent b76f5547e4
commit d65cbdf44d
5 changed files with 20 additions and 1 deletions
+4
View File
@@ -8,6 +8,7 @@ where advanced options include:
-Xfriend-modules-disabled Disable internal declaration export
-Xgenerate-dts Generate TypeScript declarations .d.ts file alongside JS file. Available in IR backend only.
-Xinclude=<path> A path to an intermediate library that should be processed in the same manner as source files.
-Xir-base-class-in-metadata Write base class into metadata
-Xir-build-cache Use compiler to build cache
-Xir-dce Perform experimental dead code elimination
-Xir-dce-driven Perform a more experimental faster dead code elimination
@@ -15,9 +16,12 @@ where advanced options include:
Print declarations' reachability info to stdout during performing DCE
-Xir-dce-runtime-diagnostic={log|exception}
Enable runtime diagnostics when performing DCE instead of removing declarations
-Xir-force-all-js Compile all the code unconditionally
-Xir-legacy-property-access Force property access via JS properties (requires -Xir-export-all)
-Xir-module-name=<name> Specify a compilation module name for IR backend
-Xir-only Disables pre-IR backend
-Xir-per-module Splits generated .js per-module
-Xir-per-module-output-name Adds a custom output name to the splitted js files
-Xir-produce-js Generates JS file using IR backend. Also disables pre-IR backend
-Xir-produce-klib-dir Generate unpacked KLIB into parent directory of output JS file.
In combination with -meta-info generates both IR and pre-IR versions of library.
@@ -492,7 +492,7 @@ class GenerateIrRuntime {
emptyList(),
true,
perFile,
null
jsOutputName = null
)
return tmpKlibDir
@@ -5246,6 +5246,11 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
runTest("js/js.translator/testData/box/jsModule/externalClass.kt");
}
@TestMetadata("externalClassNameClash.kt")
public void testExternalClassNameClash() throws Exception {
runTest("js/js.translator/testData/box/jsModule/externalClassNameClash.kt");
}
@TestMetadata("externalClassWithDefaults.kt")
public void testExternalClassWithDefaults() throws Exception {
runTest("js/js.translator/testData/box/jsModule/externalClassWithDefaults.kt");
@@ -5246,6 +5246,11 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
runTest("js/js.translator/testData/box/jsModule/externalClass.kt");
}
@TestMetadata("externalClassNameClash.kt")
public void testExternalClassNameClash() throws Exception {
runTest("js/js.translator/testData/box/jsModule/externalClassNameClash.kt");
}
@TestMetadata("externalClassWithDefaults.kt")
public void testExternalClassWithDefaults() throws Exception {
runTest("js/js.translator/testData/box/jsModule/externalClassWithDefaults.kt");
@@ -5256,6 +5256,11 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
runTest("js/js.translator/testData/box/jsModule/externalClass.kt");
}
@TestMetadata("externalClassNameClash.kt")
public void testExternalClassNameClash() throws Exception {
runTest("js/js.translator/testData/box/jsModule/externalClassNameClash.kt");
}
@TestMetadata("externalClassWithDefaults.kt")
public void testExternalClassWithDefaults() throws Exception {
runTest("js/js.translator/testData/box/jsModule/externalClassWithDefaults.kt");