@@ -1134,7 +1134,8 @@ class SkiaLayerTest {
11341134 // Until the issue is fixed in other redrawers
11351135 // Don't use assumeTrue, as uiTest iterates over multiple renderers,
11361136 // and if one of them is skipped, the whole test is skipped
1137- if (renderApi != GraphicsApi .METAL ) return @uiTest
1137+ val fixedRenderApis = setOf (GraphicsApi .METAL /* , GraphicsApi.DIRECT3D*/ )
1138+ if (renderApi !in fixedRenderApis) return @uiTest
11381139
11391140 val bgColor = Color .GREEN
11401141 val fgColor = Color .BLACK
@@ -1147,8 +1148,8 @@ class SkiaLayerTest {
11471148 // child's content) or green (this background) - never a flash of some other color.
11481149
11491150 val backgroundWindow = JFrame ().also {
1150- it.size = Dimension (1000 , 1000 )
11511151 it.location = Point (200 , 200 )
1152+ it.size = Dimension (1000 , 1000 )
11521153 it.contentPane.background = bgColor
11531154 }
11541155 backgroundWindow.isVisible = true
@@ -1196,7 +1197,7 @@ class SkiaLayerTest {
11961197 add(" -cp" )
11971198 add(System .getProperty(" java.class.path" ))
11981199 System .getProperties().stringPropertyNames()
1199- .filter { it.startsWith(" skiko." ) }
1200+ .filter { it.startsWith(" skiko." ) || it.startsWith( " sun. " ) }
12001201 .forEach { add(" -D$it =${System .getProperty(it)} " ) }
12011202 add(" --add-opens" )
12021203 add(" java.desktop/sun.font=ALL-UNNAMED" )
0 commit comments