< prev index next >

tests/system/src/test/java/test/robot/javafx/scene/layout/RegionBackgroundFillUITest.java

Print this page
rev 9491 : 8145203: Refactor systemTests for clear separation of tests
Reviewed-by: kcr

@@ -20,12 +20,13 @@
  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
 
-package javafx.scene.layout;
+package test.robot.javafx.scene.layout;
 
+import javafx.scene.layout.BackgroundFill;
 import javafx.scene.paint.Color;
 import org.junit.Ignore;
 import org.junit.Test;
 
 /**

@@ -231,59 +232,59 @@
     // I actually could predict the color under a point, rather than just asserting it isn't
     // the Scene's fill.
 
     @Test(timeout=20000)
     public void imageFill() {
-        setStyle("-fx-background-color: repeating-image-pattern('javafx/scene/layout/test20x20.png');");
+        setStyle("-fx-background-color: repeating-image-pattern('test/robot/javafx/scene/layout/test20x20.png');");
         checkRegionCornersAndBoundariesForFills();
     }
 
     @Test(timeout=20000)
     public void imageFill_MixedInsets() {
         setStyle(
-                "-fx-background-color: repeating-image-pattern('javafx/scene/layout/test20x20.png');" +
+                "-fx-background-color: repeating-image-pattern('test/robot/javafx/scene/layout/test20x20.png');" +
                 "-fx-background-insets: 5 10 -15 20");
         checkRegionCornersAndBoundariesForFills();
     }
 
     @Test(timeout=20000)
     public void imageFill_Radius4() {
         setStyle(
-                "-fx-background-color: repeating-image-pattern('javafx/scene/layout/test20x20.png');" +
+                "-fx-background-color: repeating-image-pattern('test/robot/javafx/scene/layout/test20x20.png');" +
                 "-fx-background-radius: 10 20 30 40");
         checkRegionCornersAndBoundariesForFills();
     }
 
     @Test(timeout=20000)
     public void imageFill_MissingImage() {
         setStyle(
-                "-fx-background-color: repeating-image-pattern('javafx/scene/layout/missing.png');" +
+                "-fx-background-color: repeating-image-pattern('test/robot/javafx/scene/layout/missing.png');" +
                 "-fx-background-radius: 10 20 30 40");
         assertColorEquals(SCENE_FILL, WIDTH / 2, HEIGHT / 2, TOLERANCE);
     }
 
     @Test(timeout=20000)
     public void imageFill_Stretched() {
-        setStyle("-fx-background-color: image-pattern('javafx/scene/layout/test20x20.png');");
+        setStyle("-fx-background-color: image-pattern('test/robot/javafx/scene/layout/test20x20.png');");
         checkRegionCornersAndBoundariesForFills();
     }
 
     @Test(timeout=20000)
     public void imageFill_Stretched2() {
-        setStyle("-fx-background-color: image-pattern('javafx/scene/layout/test20x20.png', 0, 0, 1, 1);");
+        setStyle("-fx-background-color: image-pattern('test/robot/javafx/scene/layout/test20x20.png', 0, 0, 1, 1);");
         checkRegionCornersAndBoundariesForFills();
     }
 
     @Test(timeout=20000)
     public void imageFill_Stretched3() {
-        setStyle("-fx-background-color: image-pattern('javafx/scene/layout/test20x20.png', 0, 0, 1, 1, true);");
+        setStyle("-fx-background-color: image-pattern('test/robot/javafx/scene/layout/test20x20.png', 0, 0, 1, 1, true);");
         checkRegionCornersAndBoundariesForFills();
     }
 
     @Test(timeout=20000)
     public void imageFill_Tiled() {
-        setStyle("-fx-background-color: image-pattern('javafx/scene/layout/test20x20.png', 0, 0, 40, 40, false);");
+        setStyle("-fx-background-color: image-pattern('test/robot/javafx/scene/layout/test20x20.png', 0, 0, 40, 40, false);");
         checkRegionCornersAndBoundariesForFills();
     }
 
     @Test(timeout=20000)
     public void linearFill() {

@@ -402,11 +403,11 @@
     }
 
     @Test(timeout=20000)
     public void testScenario4() {
         setStyle(
-                "-fx-background-color: red, green, blue, repeating-image-pattern('javafx/scene/layout/test20x20.png');" +
+                "-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;");
 
         BackgroundFill red = region.getBackground().getFills().get(0);

@@ -437,11 +438,11 @@
     }
 
     @Test(timeout=20000)
     public void testScenario5() {
         setStyle(
-                "-fx-background-color: red, green, repeating-image-pattern('javafx/scene/layout/test20x20.png'), blue;" +
+                "-fx-background-color: red, green, repeating-image-pattern('test/robot/javafx/scene/layout/test20x20.png'), blue;" +
                 "-fx-background-insets: 0 0 -10 0, 0, 10, 20;" +
                 "-fx-background-radius: 10 20 30 40;" +
                 "-fx-padding: 10 20 30 40;");
 
         BackgroundFill red = region.getBackground().getFills().get(0);

@@ -775,8 +776,8 @@
 
     // TODO to be thorough, I wonder if we can write a test where NaN or +/- Infinity can be passed via CSS to radii?
 
     // This just plain shouldn't work.
 //    public void testImageFill() {
-//        setStyle("-fx-background-color: url('javafx/scene/layout/test20x20.png');");
+//        setStyle("-fx-background-color: url('test/robot/javafx/scene/layout/test20x20.png');");
 //    }
 }
< prev index next >