From e247bb7f486a9c36a0f8dec2e3441195b26be727 Mon Sep 17 00:00:00 2001 From: Michael Hoisie Date: Mon, 7 Nov 2022 21:14:38 -0800 Subject: [PATCH] Remove obsolete TextLayoutMode(LEGACY) from Robolectric tests PiperOrigin-RevId: 486843122 --- .../bumptech/glide/request/target/CustomViewTargetTest.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/library/src/test/java/com/bumptech/glide/request/target/CustomViewTargetTest.java b/library/src/test/java/com/bumptech/glide/request/target/CustomViewTargetTest.java index d0cab37f63..60170ce754 100644 --- a/library/src/test/java/com/bumptech/glide/request/target/CustomViewTargetTest.java +++ b/library/src/test/java/com/bumptech/glide/request/target/CustomViewTargetTest.java @@ -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; /** @@ -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; private View view; @@ -212,7 +210,7 @@ public void getSize_withWrapContentWidthAndMatchParentHeight_usesDisplayDimenWid view.getViewTreeObserver().dispatchOnPreDraw(); - verify(cb).onSizeReady(600, height); + verify(cb).onSizeReady(500, height); } @Test @@ -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