[Tests] Remove deprecated JS compiler type from test
KT-55530
This commit is contained in:
committed by
Space Team
parent
ba7ecc07be
commit
11b026f268
+4
-16
@@ -9,37 +9,25 @@ package org.jetbrains.kotlin.gradle.regressionTests
|
|||||||
|
|
||||||
import org.jetbrains.kotlin.gradle.dsl.KotlinJsProjectExtension
|
import org.jetbrains.kotlin.gradle.dsl.KotlinJsProjectExtension
|
||||||
import org.jetbrains.kotlin.gradle.dsl.kotlinExtension
|
import org.jetbrains.kotlin.gradle.dsl.kotlinExtension
|
||||||
import org.jetbrains.kotlin.gradle.plugin.KotlinJsCompilerType
|
|
||||||
import org.jetbrains.kotlin.gradle.plugin.KotlinJsCompilerType.BOTH
|
|
||||||
import org.jetbrains.kotlin.gradle.plugin.KotlinJsCompilerType.IR
|
|
||||||
import org.jetbrains.kotlin.gradle.plugin.sources.DefaultKotlinSourceSet
|
import org.jetbrains.kotlin.gradle.plugin.sources.DefaultKotlinSourceSet
|
||||||
import org.jetbrains.kotlin.gradle.util.buildProject
|
import org.jetbrains.kotlin.gradle.util.buildProject
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import kotlin.test.assertTrue
|
import kotlin.test.assertTrue
|
||||||
|
|
||||||
class KT55347JsProjectImport {
|
class KT55347JsProjectImport {
|
||||||
private fun `GranularMetadataTransformation should be accessible in pure js projects`(jsCompiler: KotlinJsCompilerType) {
|
|
||||||
|
@Test
|
||||||
|
fun `GranularMetadataTransformation should be accessible in pure js projects -- IR`() {
|
||||||
val project = buildProject { plugins.apply("org.jetbrains.kotlin.js") }
|
val project = buildProject { plugins.apply("org.jetbrains.kotlin.js") }
|
||||||
val kotlin = project.kotlinExtension as KotlinJsProjectExtension
|
val kotlin = project.kotlinExtension as KotlinJsProjectExtension
|
||||||
with(kotlin) {
|
with(kotlin) {
|
||||||
js(jsCompiler) {
|
js(IR) {
|
||||||
nodejs()
|
nodejs()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project.evaluate()
|
project.evaluate()
|
||||||
|
|
||||||
kotlin.sourceSets
|
kotlin.sourceSets
|
||||||
.filterIsInstance<DefaultKotlinSourceSet>()
|
.filterIsInstance<DefaultKotlinSourceSet>()
|
||||||
.forEach { assertTrue(it.getDependenciesTransformation().toList().isEmpty()) }
|
.forEach { assertTrue(it.getDependenciesTransformation().toList().isEmpty()) }
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
fun `GranularMetadataTransformation should be accessible in pure js projects -- IR`() =
|
|
||||||
`GranularMetadataTransformation should be accessible in pure js projects`(IR)
|
|
||||||
|
|
||||||
@Suppress("DEPRECATION")
|
|
||||||
@Test
|
|
||||||
fun `GranularMetadataTransformation should be accessible in pure js projects -- BOTH`() =
|
|
||||||
`GranularMetadataTransformation should be accessible in pure js projects`(BOTH)
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user