Setup external/robolectric for SettingsRoboTests
Current failing tests: ab/I64100010182936387 Had to Ignore some of com.android.settings.accessibility tests, which will be fixed separately Bug: 261728063 Test: atest SettingsRoboTests -- --test-arg com.android.tradefed.testtype.IsolatedHostTest:java-flags:-XX:CompressedClassSpaceSize=3g Change-Id: I4a0cb992db924936826e0c9808accc78dddb5f30
This commit is contained in:
@@ -31,13 +31,19 @@ import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.SeekBar;
|
||||
|
||||
import com.android.settings.testutils.shadow.ShadowSystemSettings;
|
||||
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.robolectric.RobolectricTestRunner;
|
||||
import org.robolectric.RuntimeEnvironment;
|
||||
import org.robolectric.annotation.Config;
|
||||
|
||||
@RunWith(RobolectricTestRunner.class)
|
||||
@Config(shadows = {
|
||||
ShadowSystemSettings.class,
|
||||
})
|
||||
public class BalanceSeekBarTest {
|
||||
// Fix the maximum process value to 200 for testing the BalanceSeekBar.
|
||||
// It affects the SeekBar value of center(100) and snapThreshold(200 * SNAP_TO_PERCENTAGE).
|
||||
|
Reference in New Issue
Block a user