changeset 7315:0a81b7ca983d

RT-37617-[Unit Tests] RotateTest and ScrollThresholdTest failed on Mac and Windows
author Elina Kleyman <elina.kleyman@oracle.com>
date Thu, 19 Jun 2014 16:31:44 +0300
parents aaa59aad08d8
children 599faf35014c bc24edfe5b27
files tests/system/src/test/java/com/sun/glass/ui/monocle/input/RotateTest.java tests/system/src/test/java/com/sun/glass/ui/monocle/input/ScrollThresholdTest.java
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/system/src/test/java/com/sun/glass/ui/monocle/input/RotateTest.java	Thu Jun 19 14:24:42 2014 +0200
+++ b/tests/system/src/test/java/com/sun/glass/ui/monocle/input/RotateTest.java	Thu Jun 19 16:31:44 2014 +0300
@@ -59,6 +59,9 @@
 
     @Before
     public void init() {
+        String os = System.getProperty("os.name").toLowerCase();
+        Assume.assumeTrue(os.indexOf("win") < 0);
+        Assume.assumeTrue(os.indexOf("mac") < 0);
         //Rotate tests should be run only on platforms that support current feature
         Assume.assumeTrue(Boolean.getBoolean("com.sun.javafx.gestures.rotate"));
         centerX = (int) Math.round(width * 0.5);
--- a/tests/system/src/test/java/com/sun/glass/ui/monocle/input/ScrollThresholdTest.java	Thu Jun 19 14:24:42 2014 +0200
+++ b/tests/system/src/test/java/com/sun/glass/ui/monocle/input/ScrollThresholdTest.java	Thu Jun 19 16:31:44 2014 +0300
@@ -53,6 +53,9 @@
         super.init();
         Assume.assumeTrue(device.getTapRadius() < getScrollThreshold());
         delta = getScrollThreshold() - 1;
+        String os = System.getProperty("os.name").toLowerCase();
+        Assume.assumeTrue(os.indexOf("win") < 0);
+        Assume.assumeTrue(os.indexOf("mac") < 0);
     }
 
     /**