[JS] Fix compile kotlin against custom binaries
This commit is contained in:
committed by
Space Team
parent
b6803b2400
commit
a6d461dbe8
-19
@@ -101,17 +101,6 @@ class CompileKotlinAgainstCustomBinariesTest : AbstractKotlinCompilerIntegration
|
||||
compileKotlin("source.kt", tmpdir, listOf(library), K2JVMCompiler(), additionalOptions.toList())
|
||||
}
|
||||
|
||||
private fun doTestKotlinLibraryWithWrongMetadataVersionJs(libraryName: String, vararg additionalOptions: String) {
|
||||
val library = compileJsLibrary(libraryName, additionalOptions = listOf("-Xmetadata-version=42.0.0"))
|
||||
compileKotlin(
|
||||
"source.kt",
|
||||
File(tmpdir, "usage.js"),
|
||||
listOf(library),
|
||||
K2JSCompiler(),
|
||||
additionalOptions.toList()
|
||||
)
|
||||
}
|
||||
|
||||
private fun doTestPreReleaseKotlinLibrary(
|
||||
compiler: CLICompiler<*>,
|
||||
libraryName: String,
|
||||
@@ -320,10 +309,6 @@ class CompileKotlinAgainstCustomBinariesTest : AbstractKotlinCompilerIntegration
|
||||
doTestKotlinLibraryWithWrongMetadataVersion("library", null)
|
||||
}
|
||||
|
||||
fun testWrongMetadataVersionJs() {
|
||||
doTestKotlinLibraryWithWrongMetadataVersionJs("library")
|
||||
}
|
||||
|
||||
fun testWrongMetadataVersionBadMetadata() {
|
||||
doTestKotlinLibraryWithWrongMetadataVersion("library", { name, value ->
|
||||
if (JvmAnnotationNames.METADATA_DATA_FIELD_NAME == name) {
|
||||
@@ -346,10 +331,6 @@ class CompileKotlinAgainstCustomBinariesTest : AbstractKotlinCompilerIntegration
|
||||
doTestKotlinLibraryWithWrongMetadataVersion("library", null, "-Xskip-metadata-version-check")
|
||||
}
|
||||
|
||||
fun testWrongMetadataVersionJsSkipVersionCheck() {
|
||||
doTestKotlinLibraryWithWrongMetadataVersionJs("library", "-Xskip-metadata-version-check")
|
||||
}
|
||||
|
||||
fun testWrongMetadataVersionSkipPrereleaseCheckHasNoEffect() {
|
||||
doTestKotlinLibraryWithWrongMetadataVersion("library", null, "-Xskip-prerelease-check")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user