modules/graphics/src/test/java/javafx/scene/Node_hasMirroring_Test.java

Print this page
rev 6167 : RT-35330 [Monocle] Remove StubToolkit and replace it with headless glass implementation


   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  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javafx.scene;
  27 

  28 import com.sun.javafx.test.NodeOrientationTestBase;
  29 import java.util.Arrays;
  30 import java.util.Collection;
  31 import org.junit.Assert;

  32 import org.junit.Test;
  33 import org.junit.runner.RunWith;
  34 import org.junit.runners.Parameterized;
  35 import org.junit.runners.Parameterized.Parameters;
  36 
  37 @RunWith(Parameterized.class)
  38 public final class Node_hasMirroring_Test extends NodeOrientationTestBase {




  39     private final Scene testScene;
  40     private final String orientationUpdate;
  41     private final String expectedMirroring;
  42 
  43     private static Scene lriiliScene() {
  44         return ltrScene(
  45                    rtlAutGroup(
  46                        inhAutGroup(
  47                            inhAutGroup(
  48                                ltrAutGroup(
  49                                    inhAutGroup())))));
  50     }
  51 
  52     private static Scene lriiliWithSubSceneScene() {
  53         return ltrScene(
  54                    rtlAutGroup(
  55                        inhSubScene(
  56                            inhAutGroup(
  57                                ltrAutGroup(
  58                                    inhAutGroup())))));




   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  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javafx.scene;
  27 
  28 import com.sun.javafx.FXUnit;
  29 import com.sun.javafx.test.NodeOrientationTestBase;
  30 import java.util.Arrays;
  31 import java.util.Collection;
  32 import org.junit.Assert;
  33 import org.junit.Rule;
  34 import org.junit.Test;
  35 import org.junit.runner.RunWith;
  36 import org.junit.runners.Parameterized;
  37 import org.junit.runners.Parameterized.Parameters;
  38 
  39 @RunWith(Parameterized.class)
  40 public final class Node_hasMirroring_Test extends NodeOrientationTestBase {
  41 
  42     @Rule
  43     public FXUnit fx = new FXUnit();
  44 
  45     private final Scene testScene;
  46     private final String orientationUpdate;
  47     private final String expectedMirroring;
  48 
  49     private static Scene lriiliScene() {
  50         return ltrScene(
  51                    rtlAutGroup(
  52                        inhAutGroup(
  53                            inhAutGroup(
  54                                ltrAutGroup(
  55                                    inhAutGroup())))));
  56     }
  57 
  58     private static Scene lriiliWithSubSceneScene() {
  59         return ltrScene(
  60                    rtlAutGroup(
  61                        inhSubScene(
  62                            inhAutGroup(
  63                                ltrAutGroup(
  64                                    inhAutGroup())))));