|
|
@ -97,9 +97,9 @@ class DesktopApplicationTest : GradlePluginTestBase() { |
|
|
|
composeCompilerPlugin = "dependencies.compiler.forKotlin(\"1.7.20\")", |
|
|
|
composeCompilerPlugin = "dependencies.compiler.forKotlin(\"1.7.20\")", |
|
|
|
composeCompilerArgs = "\"suppressKotlinVersionCompatibilityCheck=1.7.21\"" |
|
|
|
composeCompilerArgs = "\"suppressKotlinVersionCompatibilityCheck=1.7.21\"" |
|
|
|
) |
|
|
|
) |
|
|
|
).checkCustomComposeCompiler() |
|
|
|
).checkCustomComposeCompiler(checkKJS = true) |
|
|
|
|
|
|
|
|
|
|
|
private fun TestProject.checkCustomComposeCompiler() { |
|
|
|
private fun TestProject.checkCustomComposeCompiler(checkKJS: Boolean = false) { |
|
|
|
gradle(":runDistributable").checks { |
|
|
|
gradle(":runDistributable").checks { |
|
|
|
val actualMainImage = file("main-image.actual.png") |
|
|
|
val actualMainImage = file("main-image.actual.png") |
|
|
|
val expectedMainImage = file("main-image.expected.png") |
|
|
|
val expectedMainImage = file("main-image.expected.png") |
|
|
@ -107,6 +107,11 @@ class DesktopApplicationTest : GradlePluginTestBase() { |
|
|
|
"The actual image '$actualMainImage' does not match the expected image '$expectedMainImage'" |
|
|
|
"The actual image '$actualMainImage' does not match the expected image '$expectedMainImage'" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (checkKJS) { |
|
|
|
|
|
|
|
gradle(":jsBrowserProductionWebpack").checks { |
|
|
|
|
|
|
|
check.taskSuccessful(":jsBrowserProductionWebpack") |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|