changeset 10923:2ee6fb669a6a

8198601: [TestBug] test.robot.javafx.scene.layout.RegionBackgroundFillUITest logs IllegalArgumentException Reviewed-by: kcr, aghaisas
author arapte
date Tue, 15 May 2018 17:23:51 +0530
parents 80f2b4d0a9ab
children 862c88b7e69b
files tests/system/src/test/java/test/robot/javafx/scene/layout/RegionBackgroundFillUITest.java
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/system/src/test/java/test/robot/javafx/scene/layout/RegionBackgroundFillUITest.java	Fri May 11 12:37:43 2018 -0700
+++ b/tests/system/src/test/java/test/robot/javafx/scene/layout/RegionBackgroundFillUITest.java	Tue May 15 17:23:51 2018 +0530
@@ -43,6 +43,10 @@
      *                                                                        *
      *************************************************************************/
 
+    final String EXPECTED_WARNING = "EXPECTED WARNING: This is a negative test"
+        + " to verify that negative value is not accepted for -fx-background-radius."
+        + " A 'No radii value may be < 0' warning message is expected.";
+
     @Test(timeout = 20000)
     public void basicFill() {
         setStyle("-fx-background-color: red;");
@@ -192,6 +196,7 @@
     // NOTE: A negative radius from CSS is treated as 0.
     @Test(timeout = 20000)
     public void basicFill_NegativeRadius1() {
+        System.err.println(EXPECTED_WARNING);
         setStyle(
                 "-fx-background-color: red;" +
                 "-fx-background-radius: -10");
@@ -201,6 +206,7 @@
     // NOTE: A negative radius from CSS is treated as 0.
     @Test(timeout = 20000)
     public void basicFill_NegativeRadius2() {
+        System.err.println(EXPECTED_WARNING);
         setStyle(
                 "-fx-background-color: red;" +
                 "-fx-background-radius: -10 -20");
@@ -210,6 +216,7 @@
     // NOTE: A negative radius from CSS is treated as 0.
     @Test(timeout = 20000)
     public void basicFill_NegativeRadius3() {
+        System.err.println(EXPECTED_WARNING);
         setStyle(
                 "-fx-background-color: red;" +
                 "-fx-background-radius: -10 -20 -30");
@@ -219,6 +226,7 @@
     // NOTE: A negative radius from CSS is treated as 0.
     @Test(timeout = 20000)
     public void basicFill_NegativeRadius4() {
+        System.err.println(EXPECTED_WARNING);
         setStyle(
                 "-fx-background-color: red;" +
                 "-fx-background-radius: -10 -20 -30 -40");