mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
Internal cleanup
PiperOrigin-RevId: 297592089
This commit is contained in:
parent
dbfb6cbdba
commit
82a1b38fd0
@ -27,6 +27,7 @@ import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.never;
|
||||
import static org.mockito.Mockito.times;
|
||||
import static org.mockito.Mockito.verify;
|
||||
import static org.robolectric.annotation.LooperMode.Mode.LEGACY;
|
||||
|
||||
import android.os.SystemClock;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
@ -39,8 +40,10 @@ import org.junit.runner.RunWith;
|
||||
import org.mockito.AdditionalMatchers;
|
||||
import org.robolectric.Robolectric;
|
||||
import org.robolectric.RobolectricTestRunner;
|
||||
import org.robolectric.annotation.LooperMode;
|
||||
|
||||
/** Tests for events of {@link com.google.android.material.slider.Slider} */
|
||||
@LooperMode(LEGACY)
|
||||
@RunWith(RobolectricTestRunner.class)
|
||||
public class SliderEventTest {
|
||||
|
||||
|
||||
@ -20,6 +20,7 @@ import com.google.android.material.R;
|
||||
|
||||
import static com.google.android.material.slider.SliderHelper.touchSliderAtValue;
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
import static org.robolectric.annotation.LooperMode.Mode.LEGACY;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import android.view.MotionEvent;
|
||||
@ -29,8 +30,10 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.robolectric.Robolectric;
|
||||
import org.robolectric.RobolectricTestRunner;
|
||||
import org.robolectric.annotation.LooperMode;
|
||||
|
||||
/** Tests for floating point rounding error handling of {@link Slider} */
|
||||
@LooperMode(LEGACY)
|
||||
@RunWith(RobolectricTestRunner.class)
|
||||
public class SliderRoundingErrorTest {
|
||||
|
||||
|
||||
@ -25,6 +25,7 @@ import static com.google.android.material.slider.SliderHelper.startSliderDragBet
|
||||
import static com.google.android.material.slider.SliderHelper.touchSliderAtValue;
|
||||
import static com.google.common.truth.Truth.assertThat;
|
||||
import static junit.framework.TestCase.assertTrue;
|
||||
import static org.robolectric.annotation.LooperMode.Mode.LEGACY;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import android.view.MotionEvent;
|
||||
@ -35,8 +36,10 @@ import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.robolectric.Robolectric;
|
||||
import org.robolectric.RobolectricTestRunner;
|
||||
import org.robolectric.annotation.LooperMode;
|
||||
|
||||
/** Tests for touch handling of {@link Slider} */
|
||||
@LooperMode(LEGACY)
|
||||
@RunWith(RobolectricTestRunner.class)
|
||||
public class SliderTouchTest {
|
||||
private static final float SLIDER_VALUE_FROM = 0f;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user