changeset 7961:b4d2b1d973a6

RT-38349: Numerous unit test failures in SimpleSwipeTest
author Elina Kleyman <elina.kleyman@oracle.com>
date Wed, 03 Sep 2014 17:16:54 +0300
parents ae50be4152c6
children c2041e3fd928
files tests/system/src/test/java/com/sun/glass/ui/monocle/SwipeSimpleTest.java
diffstat 1 files changed, 21 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/tests/system/src/test/java/com/sun/glass/ui/monocle/SwipeSimpleTest.java	Wed Sep 03 15:29:50 2014 +0200
+++ b/tests/system/src/test/java/com/sun/glass/ui/monocle/SwipeSimpleTest.java	Wed Sep 03 17:16:54 2014 +0300
@@ -39,6 +39,10 @@
     int startPointX;
     int startPointY;
 
+    static {
+        System.setProperty("com.sun.javafx.isEmbedded", "true");
+    }
+
     public SwipeSimpleTest(TestTouchDevice device) {
         super(device);
     }
@@ -94,119 +98,119 @@
             Assert.assertEquals(0, TestLog.countLogContaining("SWIPE"));
         }
     }
-    @Ignore("RT-38349")
+
     @Test
     public void testSwipeRight1() throws Exception {
         Point[] path = {new Point(startPointX, startPointY),
                 new Point(startPointX + getDelta(), startPointY)};
         swipe(path, "SWIPE_RIGHT");
     }
-    @Ignore("RT-38349")
+
     @Test
     public void testSwipeRight2() throws Exception {
         Point[] path = {new Point(startPointX, startPointY), new Point(65,
                 getDelta(), startPointX, startPointY)};
         swipe(path, "SWIPE_RIGHT");
     }
-    @Ignore("RT-38349")
+
     @Test
     public void testSwipeRight3() throws Exception {
         Point[] path = {new Point(startPointX, startPointY), new Point(80,
                 getDelta(), startPointX, startPointY)};
         swipe(path, "SWIPE_RIGHT");
     }
-    @Ignore("RT-38349")
+
     @Test
     public void testSwipeRight4() throws Exception {
         Point[] path = {new Point(startPointX, startPointY), new Point(115,
                 getDelta(), startPointX, startPointY)};
         swipe(path, "SWIPE_RIGHT");
     }
-    @Ignore("RT-38349")
+
     @Test
     public void testSwipeLeft1() throws Exception {
         Point[] path = {new Point(startPointX, startPointY),
                 new Point(startPointX - getDelta(), startPointY)};
         swipe(path, "SWIPE_LEFT");
     }
-    @Ignore("RT-38349")
+
     @Test
     public void testSwipeLeft2() throws Exception {
         Point[] path = {new Point(startPointX, startPointY), new Point(-65,
                 getDelta(), startPointX, startPointY)};
         swipe(path, "SWIPE_LEFT");
     }
-    @Ignore("RT-38349")
+
     @Test
     public void testSwipeLeft3() throws Exception {
         Point[] path = {new Point(startPointX, startPointY), new Point(-80,
                 getDelta(), startPointX, startPointY)};
         swipe(path, "SWIPE_LEFT");
     }
-    @Ignore("RT-38349")
+
     @Test
     public void testSwipeLeft4() throws Exception {
         Point[] path = {new Point(startPointX, startPointY), new Point(-115,
                 getDelta(), startPointX, startPointY)};
         swipe(path, "SWIPE_LEFT");
     }
-    @Ignore("RT-38349")
+
     @Test
     public void testSwipeUp1() throws Exception {
         Point[] path = {new Point(startPointX, startPointY),
                 new Point(startPointX, startPointY - getDelta())};
         swipe(path, "SWIPE_UP");
     }
-    @Ignore("RT-38349")
+
     @Test
     public void testSwipeUp2() throws Exception {
         Point[] path = {new Point(startPointX, startPointY), new Point(25,
                 getDelta(), startPointX, startPointY)};
         swipe(path, "SWIPE_UP");
     }
-    @Ignore("RT-38349")
+
     @Test
     public void testSwipeUp3() throws Exception {
         Point[] path = {new Point(startPointX, startPointY), new Point(-25,
                 getDelta(), startPointX, startPointY)};
         swipe(path, "SWIPE_UP");
     }
-    @Ignore("RT-38349")
+
     @Test
     public void testSwipeDown1() throws Exception {
         Point[] path = {new Point(startPointX, startPointY),
                 new Point(startPointX, startPointY + getDelta())};
         swipe(path, "SWIPE_DOWN");
     }
-    @Ignore("RT-38349")
+
     @Test
     public void testSwipeDown2() throws Exception {
         Point[] path = {new Point(startPointX, startPointY), new Point(155,
                 getDelta(), startPointX, startPointY)};
         swipe(path, "SWIPE_DOWN");
     }
-    @Ignore("RT-38349")
+
     @Test
     public void testSwipeDown3() throws Exception {
         Point[] path = {new Point(startPointX, startPointY), new Point(-155,
                 getDelta(), startPointX, startPointY)};
         swipe(path, "SWIPE_DOWN");
     }
-    @Ignore("RT-38349")
+
     @Test
     public void testNoSwipeUp() throws Exception {
         Point[] path = {new Point(startPointX, startPointY), new Point(31,
                 getDelta(), startPointX, startPointY)};
         swipe(path, null);
     }
-    @Ignore("RT-38349")
+
     @Test
     public void testNoSwipeRight() throws Exception {
         Point[] path = {new Point(startPointX, startPointY), new Point(59,
                 getDelta(), startPointX, startPointY)};
         swipe(path, null);
     }
-    @Ignore("RT-38349")
+
     @Test
     public void testSwipeUp4Points() throws Exception {
         int delta = getDelta();