[android] #5171 - introduce new select/deselect animation system for view markers
This commit is contained in:
committed by
Tobrun
parent
4094987fa0
commit
436c23c40b
@@ -3,7 +3,6 @@ package com.mapbox.mapboxsdk.annotations;
|
||||
import android.os.Parcelable;
|
||||
|
||||
import com.mapbox.mapboxsdk.geometry.LatLng;
|
||||
import com.mapbox.mapboxsdk.testapp.R;
|
||||
import com.mapbox.mapboxsdk.utils.MockParcel;
|
||||
|
||||
import org.junit.Test;
|
||||
@@ -97,22 +96,6 @@ public class MarkerViewTest {
|
||||
assertEquals("anchorU should match ", 0, marker.getInfoWindowAnchorV(), 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSelectAnimRes() {
|
||||
int animatorRes = R.animator.rotate_360;
|
||||
MarkerViewOptions markerOptions = new MarkerViewOptions().selectAnimatorResource(animatorRes);
|
||||
MarkerView marker = markerOptions.getMarker();
|
||||
assertEquals("select animator resource should match ", animatorRes, marker.getSelectAnimRes(), 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testDeselectAnimRes() {
|
||||
int animatorRes = R.animator.rotate_360;
|
||||
MarkerViewOptions markerOptions = new MarkerViewOptions().deselectAnimatorResource(animatorRes);
|
||||
MarkerView marker = markerOptions.getMarker();
|
||||
assertEquals("deselect animator resource should match ", animatorRes, marker.getDeselectAnimRes(), 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testRotation() {
|
||||
int rotation = 90;
|
||||
|
||||
Reference in New Issue
Block a user