Skip to content

Commit

Permalink
Remove use of deprecated and redundant TextLayoutMode.REALISTIC,as it…
Browse files Browse the repository at this point in the history
…s now the default behavior.

PiperOrigin-RevId: 353706195
  • Loading branch information
brettchabot authored and hoisie committed Jan 31, 2021
1 parent 8488c87 commit 9867029
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import static androidx.test.espresso.matcher.ViewMatchers.withId;
import static androidx.test.espresso.matcher.ViewMatchers.withText;
import static com.google.common.truth.Truth.assertThat;
import static org.robolectric.annotation.TextLayoutMode.Mode.REALISTIC;

import android.view.KeyEvent;
import android.widget.Button;
Expand All @@ -23,12 +22,11 @@
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.TextLayoutMode;
import org.robolectric.integration.axt.R;

/** Simple tests to verify espresso APIs can be used on both Robolectric and device. */
@RunWith(AndroidJUnit4.class)
@TextLayoutMode(REALISTIC)

public final class EspressoTest {

@Rule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import static androidx.test.espresso.assertion.ViewAssertions.matches;
import static androidx.test.espresso.matcher.ViewMatchers.isCompletelyDisplayed;
import static androidx.test.espresso.matcher.ViewMatchers.withId;
import static org.robolectric.annotation.TextLayoutMode.Mode.REALISTIC;
import static org.robolectric.shadows.ShadowLooper.shadowMainLooper;

import androidx.test.core.app.ActivityScenario;
Expand All @@ -13,12 +12,11 @@
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.annotation.TextLayoutMode;
import org.robolectric.integration.axt.R;

/** Verify Espresso usage with paused looper */
@RunWith(AndroidJUnit4.class)
@TextLayoutMode(REALISTIC)

public final class EspressoWithPausedLooperTest {

@Before
Expand Down

0 comments on commit 9867029

Please sign in to comment.