mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
UI tests — more clear assume message and condition
This commit is contained in:
@@ -48,8 +48,9 @@ class LafTest {
|
||||
|
||||
@Before
|
||||
fun beforeMethod() {
|
||||
assumeTrue("Not CI server or not Linux", !UsefulTestCase.IS_UNDER_TEAMCITY || !SystemInfoRt.isLinux)
|
||||
assumeTrue("Not Windows or Windows 10", !SystemInfoRt.isWindows || SystemInfo.isWin10OrNewer)
|
||||
if (UsefulTestCase.IS_UNDER_TEAMCITY) {
|
||||
assumeTrue("macOS or Windows 10 are required", SystemInfoRt.isMac || SystemInfo.isWin10OrNewer)
|
||||
}
|
||||
|
||||
changeLafIfNeed(lafName)
|
||||
}
|
||||
|
||||
@@ -47,8 +47,9 @@ class UiDslTest {
|
||||
|
||||
@Before
|
||||
fun beforeMethod() {
|
||||
assumeTrue("Not CI server or not Linux", !UsefulTestCase.IS_UNDER_TEAMCITY || !SystemInfoRt.isLinux)
|
||||
assumeTrue("Not Windows or Windows 10", !SystemInfoRt.isWindows || SystemInfo.isWin10OrNewer)
|
||||
if (UsefulTestCase.IS_UNDER_TEAMCITY) {
|
||||
assumeTrue("macOS or Windows 10 are required", SystemInfoRt.isMac || SystemInfo.isWin10OrNewer)
|
||||
}
|
||||
|
||||
System.setProperty("idea.ui.comment.copyable", "false")
|
||||
changeLafIfNeed(lafName)
|
||||
|
||||
Reference in New Issue
Block a user