< prev index next >

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

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


   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  */
  24 
  25 package javafx.scene.layout;
  26 
  27 import javafx.scene.Group;
  28 import javafx.scene.Scene;
  29 import javafx.scene.paint.Color;
  30 import javafx.scene.paint.Paint;
  31 import javafx.stage.Stage;
  32 import java.util.ArrayList;
  33 import java.util.LinkedList;
  34 import java.util.List;
  35 import java.util.concurrent.atomic.AtomicReference;
  36 import testharness.VisualTestBase;





  37 
  38 /**
  39  */
  40 public abstract class RegionUITestBase extends VisualTestBase {
  41     static final int WIDTH = 400;
  42     static final int HEIGHT = 300;
  43     static final int REGION_TOP = 50;
  44     static final int REGION_LEFT = 50;
  45     static final int REGION_RIGHT = 350;
  46     static final int REGION_BOTTOM = 250;
  47     static final int REGION_WIDTH = 300;
  48     static final int REGION_HEIGHT = 200;
  49     static final Color SCENE_FILL = Color.WHITE;
  50 
  51     protected Stage stage;
  52     protected Scene scene;
  53     protected Group root;
  54     protected Region region;
  55 
  56     @Override




   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  */
  24 
  25 package test.robot.javafx.scene.layout;
  26 
  27 import javafx.scene.Group;
  28 import javafx.scene.Scene;
  29 import javafx.scene.paint.Color;
  30 import javafx.scene.paint.Paint;
  31 import javafx.stage.Stage;
  32 import java.util.ArrayList;
  33 import java.util.LinkedList;
  34 import java.util.List;
  35 import java.util.concurrent.atomic.AtomicReference;
  36 import javafx.scene.layout.Background;
  37 import javafx.scene.layout.BackgroundFill;
  38 import javafx.scene.layout.Border;
  39 import javafx.scene.layout.CornerRadii;
  40 import javafx.scene.layout.Region;
  41 import test.robot.testharness.VisualTestBase;
  42 
  43 /**
  44  */
  45 public abstract class RegionUITestBase extends VisualTestBase {
  46     static final int WIDTH = 400;
  47     static final int HEIGHT = 300;
  48     static final int REGION_TOP = 50;
  49     static final int REGION_LEFT = 50;
  50     static final int REGION_RIGHT = 350;
  51     static final int REGION_BOTTOM = 250;
  52     static final int REGION_WIDTH = 300;
  53     static final int REGION_HEIGHT = 200;
  54     static final Color SCENE_FILL = Color.WHITE;
  55 
  56     protected Stage stage;
  57     protected Scene scene;
  58     protected Group root;
  59     protected Region region;
  60 
  61     @Override


< prev index next >