< prev index next >

tests/system/src/test/java/test/robot/com/sun/glass/ui/monocle/input/devices/TestTouchDevice.java

Print this page
rev 9504 : need to fix test log and others

@@ -24,11 +24,11 @@
  */
 
 package test.robot.com.sun.glass.ui.monocle.input.devices;
 
 import test.robot.com.sun.glass.ui.monocle.TestApplication;
-import com.sun.glass.ui.monocle.TestLog;
+import com.sun.glass.ui.monocle.TestLogShim;
 import javafx.geometry.Rectangle2D;
 
 import java.util.HashMap;
 import java.util.Map;
 

@@ -101,11 +101,11 @@
             }
         }
         if (point == -1) {
             throw new IllegalStateException("Cannot add any more points");
         }
-        TestLog.format("TestTouchDevice: addPoint %d, %.0f, %.0f\n",
+        TestLogShim.format("TestTouchDevice: addPoint %d, %.0f, %.0f\n",
                        point, x, y);
         xs[point] = x;
         ys[point] = y;
         transformedXs[point] = transformX(x);
         transformedYs[point] = transformY(y);

@@ -113,21 +113,21 @@
         pressedPoints ++;
         return point;
     }
 
     public void removePoint(int point) {
-        TestLog.format("TestTouchDevice: removePoint %d\n", point);
+        TestLogShim.format("TestTouchDevice: removePoint %d\n", point);
         if (!points[point]) {
             throw new IllegalStateException("Point not pressed");
         }
         points[point] = false;
         pressedPoints --;
         ids.remove(point);
     }
 
     public void setPoint(int point, double x, double y) {
-        TestLog.format("TestTouchDevice: setPoint %d, %.0f, %.0f\n",
+        TestLogShim.format("TestTouchDevice: setPoint %d, %.0f, %.0f\n",
                        point, x, y);
         if (!points[point]) {
             throw new IllegalStateException("Point not pressed");
         }
         xs[point] = x;

@@ -135,25 +135,25 @@
         transformedXs[point] = transformX(x);
         transformedYs[point] = transformY(y);
     }
 
     public void setAndRemovePoint(int point, double x, double y) {
-        TestLog.format("TestTouchDevice: setAndRemovePoint %d, %.0f, %.0f\n",
+        TestLogShim.format("TestTouchDevice: setAndRemovePoint %d, %.0f, %.0f\n",
                        point, x, y);
         setPoint(point, x, y);
         removePoint(point);
     }
 
     @Override
     public void sync() {
-        TestLog.log("TestTouchDevice: sync");
+        TestLogShim.log("TestTouchDevice: sync");
         super.sync();
         previousPressedPoints = pressedPoints;
     }
 
     public void resendStateAndSync() {
-        TestLog.log("TestTouchDevice: sync");
+        TestLogShim.log("TestTouchDevice: sync");
         sync();
     }
 
     protected void setAbsScale(int absXMax, int absYMax) {
         this.absXMax = (double) absXMax;
< prev index next >