From 35cda5c7d1a42f525cb41a4657e34d3890fe8ca8 Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Tue, 6 May 2014 00:50:14 +0200 Subject: [PATCH] fix test for min-drag distance - value just chosen to be large enough --- vtm-tests/test/org/oscim/layers/MapEventLayerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vtm-tests/test/org/oscim/layers/MapEventLayerTest.java b/vtm-tests/test/org/oscim/layers/MapEventLayerTest.java index 19d8b2f2..98aae198 100644 --- a/vtm-tests/test/org/oscim/layers/MapEventLayerTest.java +++ b/vtm-tests/test/org/oscim/layers/MapEventLayerTest.java @@ -83,14 +83,14 @@ public class MapEventLayerTest { private void simulateDoubleTouchDragUp() { layer.onTouchEvent(new TestMotionEvent(MotionEvent.ACTION_DOWN, 1, 1)); layer.onGesture(Gesture.DOUBLE_TAP, new TestMotionEvent(MotionEvent.ACTION_MOVE, 1, 0)); - layer.onTouchEvent(new TestMotionEvent(MotionEvent.ACTION_MOVE, 1, 0)); + layer.onTouchEvent(new TestMotionEvent(MotionEvent.ACTION_MOVE, -100, 0)); layer.onTouchEvent(new TestMotionEvent(MotionEvent.ACTION_UP, 1, 0)); } private void simulateDoubleTouchDragDown() { layer.onTouchEvent(new TestMotionEvent(MotionEvent.ACTION_DOWN, 1, 1)); layer.onGesture(Gesture.DOUBLE_TAP, new TestMotionEvent(MotionEvent.ACTION_MOVE, 1, 2)); - layer.onTouchEvent(new TestMotionEvent(MotionEvent.ACTION_MOVE, 1, 2)); + layer.onTouchEvent(new TestMotionEvent(MotionEvent.ACTION_MOVE, 100, 2)); layer.onTouchEvent(new TestMotionEvent(MotionEvent.ACTION_UP, 1, 2)); }