Skip to content

Commit

Permalink
Remove obsolete TextLayoutMode(LEGACY) from Robolectric tests
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 486843122
  • Loading branch information
hoisie authored and glide-copybara-robot committed Nov 8, 2022
1 parent 330b9a8 commit e247bb7
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
import org.robolectric.Shadows;
import org.robolectric.android.controller.ActivityController;
import org.robolectric.annotation.Config;
import org.robolectric.annotation.TextLayoutMode;
import org.robolectric.util.ReflectionHelpers;

/**
Expand All @@ -57,7 +56,6 @@
*/
@RunWith(RobolectricTestRunner.class)
@Config(sdk = 19, manifest = "build/intermediates/manifests/full/debug/AndroidManifest.xml")
@TextLayoutMode(value = TextLayoutMode.Mode.LEGACY, issueId = "130378660")
public class CustomViewTargetTest {
private ActivityController<Activity> activity;
private View view;
Expand Down Expand Up @@ -212,7 +210,7 @@ public void getSize_withWrapContentWidthAndMatchParentHeight_usesDisplayDimenWid

view.getViewTreeObserver().dispatchOnPreDraw();

verify(cb).onSizeReady(600, height);
verify(cb).onSizeReady(500, height);
}

@Test
Expand All @@ -232,7 +230,7 @@ public void getSize_withMatchParentWidthAndWrapContentHeight_usesWidthAndDisplay
activity.visible();
view.getViewTreeObserver().dispatchOnPreDraw();

verify(cb).onSizeReady(width, 400);
verify(cb).onSizeReady(width, 352);
}

@Test
Expand Down

0 comments on commit e247bb7

Please sign in to comment.