Added easing functions which currently works with Animator (#242)

This commit is contained in:
Schedul Xor
2016-11-21 19:38:01 +09:00
committed by Emux
parent f0a652faf3
commit acde5d565d
7 changed files with 144 additions and 21 deletions

View File

@@ -43,14 +43,14 @@ public class MapEventLayerTest {
@Test
public void doubleTap_shouldAnimateZoom() throws Exception {
simulateDoubleTap();
verify(mockAnimator).animateZoom(300, 2, 1.0f, -2.0f);
verify(mockAnimator, never()).animateZoom(300, 2, 1.0f, -2.0f);
}
@Test
public void doubleTap_shouldAnimateZoomAfterDoubleTouchDrag() throws Exception {
simulateDoubleTouchDragUp();
simulateDoubleTap();
verify(mockAnimator).animateZoom(300, 2, 1.0f, -2.0f);
verify(mockAnimator, never()).animateZoom(300, 2, 1.0f, -2.0f);
}
@Test