< 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,34 **** */ 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 javafx.geometry.Rectangle2D; import java.util.HashMap; import java.util.Map; --- 24,34 ---- */ 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.TestLogShim; import javafx.geometry.Rectangle2D; import java.util.HashMap; import java.util.Map;
*** 101,111 **** } } if (point == -1) { throw new IllegalStateException("Cannot add any more points"); } ! TestLog.format("TestTouchDevice: addPoint %d, %.0f, %.0f\n", point, x, y); xs[point] = x; ys[point] = y; transformedXs[point] = transformX(x); transformedYs[point] = transformY(y); --- 101,111 ---- } } if (point == -1) { throw new IllegalStateException("Cannot add any more points"); } ! 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,133 **** pressedPoints ++; return point; } public void removePoint(int point) { ! TestLog.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", point, x, y); if (!points[point]) { throw new IllegalStateException("Point not pressed"); } xs[point] = x; --- 113,133 ---- pressedPoints ++; return point; } public void removePoint(int 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) { ! TestLogShim.format("TestTouchDevice: setPoint %d, %.0f, %.0f\n", point, x, y); if (!points[point]) { throw new IllegalStateException("Point not pressed"); } xs[point] = x;
*** 135,159 **** 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", point, x, y); setPoint(point, x, y); removePoint(point); } @Override public void sync() { ! TestLog.log("TestTouchDevice: sync"); super.sync(); previousPressedPoints = pressedPoints; } public void resendStateAndSync() { ! TestLog.log("TestTouchDevice: sync"); sync(); } protected void setAbsScale(int absXMax, int absYMax) { this.absXMax = (double) absXMax; --- 135,159 ---- transformedXs[point] = transformX(x); transformedYs[point] = transformY(y); } public void setAndRemovePoint(int point, double x, double y) { ! TestLogShim.format("TestTouchDevice: setAndRemovePoint %d, %.0f, %.0f\n", point, x, y); setPoint(point, x, y); removePoint(point); } @Override public void sync() { ! TestLogShim.log("TestTouchDevice: sync"); super.sync(); previousPressedPoints = pressedPoints; } public void resendStateAndSync() { ! TestLogShim.log("TestTouchDevice: sync"); sync(); } protected void setAbsScale(int absXMax, int absYMax) { this.absXMax = (double) absXMax;
< prev index next >