mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
disable UI DSL test on Window since no separate TC build configuration for Windows
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
package com.intellij.ui.layout
|
||||
|
||||
import com.intellij.openapi.application.invokeAndWaitIfNeed
|
||||
import com.intellij.openapi.util.SystemInfo
|
||||
import com.intellij.openapi.util.SystemInfoRt
|
||||
import com.intellij.testFramework.PlatformTestUtil
|
||||
import com.intellij.testFramework.UsefulTestCase
|
||||
@@ -47,7 +46,8 @@ class UiDslTest {
|
||||
@Before
|
||||
fun beforeMethod() {
|
||||
if (UsefulTestCase.IS_UNDER_TEAMCITY) {
|
||||
assumeTrue("macOS or Windows 10 are required", SystemInfoRt.isMac || SystemInfo.isWin10OrNewer)
|
||||
// let's for now to see how it is going on macOS
|
||||
assumeTrue("macOS or Windows 10 are required", SystemInfoRt.isMac /* || SystemInfo.isWin10OrNewer */)
|
||||
}
|
||||
|
||||
System.setProperty("idea.ui.comment.copyable", "false")
|
||||
|
||||
@@ -31,7 +31,6 @@ import java.awt.Container
|
||||
import java.awt.GraphicsEnvironment
|
||||
import java.awt.image.BufferedImage
|
||||
import java.io.File
|
||||
import java.lang.AssertionError
|
||||
import java.nio.file.Path
|
||||
import javax.swing.AbstractButton
|
||||
import javax.swing.JLabel
|
||||
@@ -207,7 +206,7 @@ internal fun dumpComponentBounds(component: Container): Map<String, IntArray> {
|
||||
}
|
||||
|
||||
internal fun getComponentKey(c: Component, index: Int): String {
|
||||
if (c is JLabel && c.text.isNotEmpty()) {
|
||||
if (c is JLabel && !c.text.isNullOrEmpty()) {
|
||||
return StringUtil.removeHtmlTags(c.text)
|
||||
}
|
||||
if (c is AbstractButton && c.text.isNotEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user