mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[plugins] UntilBuildDeprecation - improve naming, MINIMAL_API_VERSION to "251.*"
GitOrigin-RevId: ee25f4e4e0e00bc249d71bde637d0133c9498ff3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8853e3ee37
commit
d7689683be
@@ -166,23 +166,31 @@ class PluginSetLoadingTest {
|
||||
fun `until build is honored only if it targets 251 and earlier`() {
|
||||
if (UntilBuildDeprecation.forceHonorUntilBuild) return
|
||||
|
||||
fun addDescriptor(build: String) = writeDescriptor("p$build", """
|
||||
fun addDescriptor(branch: String) = writeDescriptor("p$branch", """
|
||||
<idea-plugin>
|
||||
<id>p$build</id>
|
||||
<id>p$branch</id>
|
||||
<version>1.0</version>
|
||||
<idea-version since-build="$build" until-build="$build.100"/>
|
||||
<idea-version since-build="$branch" until-build="$branch.100"/>
|
||||
</idea-plugin>
|
||||
""".trimIndent())
|
||||
fun addDescriptorX(branch: String) = writeDescriptor("p$branch.x", """
|
||||
<idea-plugin>
|
||||
<id>p$branch.x</id>
|
||||
<version>1.0</version>
|
||||
<idea-version since-build="$branch" until-build="$branch.*"/>
|
||||
</idea-plugin>
|
||||
""".trimIndent())
|
||||
|
||||
addDescriptor("251")
|
||||
addDescriptorX("251")
|
||||
addDescriptor("252")
|
||||
addDescriptor("253")
|
||||
addDescriptor("261")
|
||||
|
||||
assertEnabledPluginsSetEquals(listOf("p251")) { buildNumber = "251.10" }
|
||||
assertEnabledPluginsSetEquals(listOf("p252")) { buildNumber = "252.10" }
|
||||
assertEnabledPluginsSetEquals(listOf("p252", "p253")) { buildNumber = "253.200" }
|
||||
assertEnabledPluginsSetEquals(listOf("p252", "p253", "p261")) { buildNumber = "261.200" }
|
||||
assertEnabledPluginsSetEquals(listOf("p252", "p252.x")) { buildNumber = "252.10" }
|
||||
assertEnabledPluginsSetEquals(listOf("p252.x", "p253")) { buildNumber = "253.200" }
|
||||
assertEnabledPluginsSetEquals(listOf("p252.x", "p253", "p261")) { buildNumber = "261.200" }
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -193,7 +201,7 @@ class PluginSetLoadingTest {
|
||||
<idea-plugin>
|
||||
<id>p252</id>
|
||||
<version>1.0</version>
|
||||
<idea-version since-build="252" until-build="252.100"/>
|
||||
<idea-version since-build="252" until-build="252.*"/>
|
||||
</idea-plugin>
|
||||
""".trimIndent())
|
||||
writeDescriptor("p253", """
|
||||
|
||||
Reference in New Issue
Block a user