< prev index next >
tests/system/src/test/java/test/robot/javafx/scene/layout/RegionBackgroundFillUITest.java
Print this page
*** 33,46 ****
/**
*/
public class RegionBackgroundFillUITest extends RegionUITestBase {
- static {
- System.setProperty("glass.win.uiScale", "100%");
- }
-
/**************************************************************************
* *
* Tests for background fills. We start with a series of simple tests *
* with a single solid fill, including exercising different insets and *
* corner radii. *
--- 33,42 ----
*** 133,143 ****
checkRegionCornersAndBoundariesForFills();
}
@Test(timeout=20000)
public void basicFill_Radius1() {
! assumeTrue(Boolean.getBoolean("unstable.test")); // JDK-8170026
setStyle(
"-fx-background-color: red;" +
"-fx-background-radius: 10");
checkRegionCornersAndBoundariesForFills();
}
--- 129,139 ----
checkRegionCornersAndBoundariesForFills();
}
@Test(timeout=20000)
public void basicFill_Radius1() {
! assumeTrue(checkIntegralUIScale());
setStyle(
"-fx-background-color: red;" +
"-fx-background-radius: 10");
checkRegionCornersAndBoundariesForFills();
}
*** 180,190 ****
// "-fx-background-radius: 10 20 30 40 50 60 70 80");
// }
@Test(timeout=20000)
public void basicFill_RadiusAndInsets() {
! assumeTrue(Boolean.getBoolean("unstable.test")); // JDK-8170026
setStyle(
"-fx-background-color: red;" +
"-fx-background-radius: 10 20 30 40;" +
"-fx-background-insets: 5 10 15 20");
checkRegionCornersAndBoundariesForFills();
--- 176,186 ----
// "-fx-background-radius: 10 20 30 40 50 60 70 80");
// }
@Test(timeout=20000)
public void basicFill_RadiusAndInsets() {
! assumeTrue(checkIntegralUIScale());
setStyle(
"-fx-background-color: red;" +
"-fx-background-radius: 10 20 30 40;" +
"-fx-background-insets: 5 10 15 20");
checkRegionCornersAndBoundariesForFills();
*** 371,381 ****
checkRegionCornersAndBoundariesOfBackgroundFill(grey, Color.BLUE);
}
@Test(timeout=20000)
public void testScenario3() {
! assumeTrue(Boolean.getBoolean("unstable.test")); // JDK-8170026
setStyle(
"-fx-background-color: red, green, blue, grey;" +
"-fx-background-insets: 0 0 -10 0, 0, 10, 20;" +
"-fx-background-radius: 10 20 30 40;" +
"-fx-padding: 10 20 30 40;");
--- 367,377 ----
checkRegionCornersAndBoundariesOfBackgroundFill(grey, Color.BLUE);
}
@Test(timeout=20000)
public void testScenario3() {
! assumeTrue(checkIntegralUIScale());
setStyle(
"-fx-background-color: red, green, blue, grey;" +
"-fx-background-insets: 0 0 -10 0, 0, 10, 20;" +
"-fx-background-radius: 10 20 30 40;" +
"-fx-padding: 10 20 30 40;");
*** 407,417 ****
checkRegionCornersAndBoundariesOfBackgroundFill(grey, Color.BLUE);
}
@Test(timeout=20000)
public void testScenario4() {
! assumeTrue(Boolean.getBoolean("unstable.test")); // JDK-8170026
setStyle(
"-fx-background-color: red, green, blue, repeating-image-pattern('test/robot/javafx/scene/layout/test20x20.png');" +
"-fx-background-insets: 0 0 -10 0, 0, 10, 20;" +
"-fx-background-radius: 10 20 30 40;" +
"-fx-padding: 10 20 30 40;");
--- 403,413 ----
checkRegionCornersAndBoundariesOfBackgroundFill(grey, Color.BLUE);
}
@Test(timeout=20000)
public void testScenario4() {
! assumeTrue(checkIntegralUIScale());
setStyle(
"-fx-background-color: red, green, blue, repeating-image-pattern('test/robot/javafx/scene/layout/test20x20.png');" +
"-fx-background-insets: 0 0 -10 0, 0, 10, 20;" +
"-fx-background-radius: 10 20 30 40;" +
"-fx-padding: 10 20 30 40;");
*** 494,504 ****
* *
*************************************************************************/
@Test(timeout=20000)
public void testOnePixelTopInset() {
! assumeTrue(Boolean.getBoolean("unstable.test")); // JDK-8170026
setStyle(
"-fx-background-color: red, yellow;" +
"-fx-background-insets: 0, 1 0 0 0;");
BackgroundFill red = region.getBackground().getFills().get(0);
--- 490,500 ----
* *
*************************************************************************/
@Test(timeout=20000)
public void testOnePixelTopInset() {
! assumeTrue(checkIntegralUIScale());
setStyle(
"-fx-background-color: red, yellow;" +
"-fx-background-insets: 0, 1 0 0 0;");
BackgroundFill red = region.getBackground().getFills().get(0);
*** 523,533 ****
checkRegionBottomLeftCorner(yellow, Color.YELLOW, SCENE_FILL, 0, .2);
}
@Test(timeout=20000)
public void testOnePixelRightInset() {
! assumeTrue(Boolean.getBoolean("unstable.test")); // JDK-8170026
setStyle(
"-fx-background-color: red, yellow;" +
"-fx-background-insets: 0, 0 1 0 0;");
BackgroundFill red = region.getBackground().getFills().get(0);
--- 519,529 ----
checkRegionBottomLeftCorner(yellow, Color.YELLOW, SCENE_FILL, 0, .2);
}
@Test(timeout=20000)
public void testOnePixelRightInset() {
! assumeTrue(checkIntegralUIScale());
setStyle(
"-fx-background-color: red, yellow;" +
"-fx-background-insets: 0, 0 1 0 0;");
BackgroundFill red = region.getBackground().getFills().get(0);
*** 552,562 ****
checkRegionBottomLeftCorner(yellow, Color.YELLOW, SCENE_FILL, 0, .2);
}
@Test(timeout=20000)
public void testOnePixelBottomInset() {
! assumeTrue(Boolean.getBoolean("unstable.test")); // JDK-8170026
setStyle(
"-fx-background-color: red, yellow;" +
"-fx-background-insets: 0, 0 0 1 0;");
BackgroundFill red = region.getBackground().getFills().get(0);
--- 548,558 ----
checkRegionBottomLeftCorner(yellow, Color.YELLOW, SCENE_FILL, 0, .2);
}
@Test(timeout=20000)
public void testOnePixelBottomInset() {
! assumeTrue(checkIntegralUIScale());
setStyle(
"-fx-background-color: red, yellow;" +
"-fx-background-insets: 0, 0 0 1 0;");
BackgroundFill red = region.getBackground().getFills().get(0);
*** 581,591 ****
checkRegionBottomLeftCorner(yellow, Color.YELLOW, SCENE_FILL, 0, .2);
}
@Test(timeout=20000)
public void testOnePixelLeftInset() {
! assumeTrue(Boolean.getBoolean("unstable.test")); // JDK-8170026
setStyle(
"-fx-background-color: red, yellow;" +
"-fx-background-insets: 0, 0 0 0 1;");
BackgroundFill red = region.getBackground().getFills().get(0);
--- 577,587 ----
checkRegionBottomLeftCorner(yellow, Color.YELLOW, SCENE_FILL, 0, .2);
}
@Test(timeout=20000)
public void testOnePixelLeftInset() {
! assumeTrue(checkIntegralUIScale());
setStyle(
"-fx-background-color: red, yellow;" +
"-fx-background-insets: 0, 0 0 0 1;");
BackgroundFill red = region.getBackground().getFills().get(0);
< prev index next >