ComboBox: fixed minimum width if focusWidth > 0 (to be equal with button minimum width)

added some unit tests to compare component sizes
This commit is contained in:
Karl Tauber
2021-07-05 11:07:32 +02:00
parent 4507ce359d
commit 0b127caa83
7 changed files with 310 additions and 4 deletions

View File

@@ -21,6 +21,12 @@ plugins {
`flatlaf-publish`
}
dependencies {
testImplementation( "org.junit.jupiter:junit-jupiter-api:5.7.2" )
testRuntimeOnly( "org.junit.jupiter:junit-jupiter-engine" )
testRuntimeOnly( "org.junit.jupiter:junit-jupiter-params" )
}
java {
withSourcesJar()
withJavadocJar()
@@ -52,6 +58,11 @@ tasks {
named<Jar>( "javadocJar" ) {
archiveBaseName.set( "flatlaf" )
}
test {
useJUnitPlatform()
testLogging.exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
}
flatlafPublish {