Skip to content

Commit e247bb7

Browse files
hoisieglide-copybara-robot
authored andcommittedNov 8, 2022
Remove obsolete TextLayoutMode(LEGACY) from Robolectric tests
PiperOrigin-RevId: 486843122
1 parent 330b9a8 commit e247bb7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎library/src/test/java/com/bumptech/glide/request/target/CustomViewTargetTest.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
import org.robolectric.Shadows;
4646
import org.robolectric.android.controller.ActivityController;
4747
import org.robolectric.annotation.Config;
48-
import org.robolectric.annotation.TextLayoutMode;
4948
import org.robolectric.util.ReflectionHelpers;
5049

5150
/**
@@ -57,7 +56,6 @@
5756
*/
5857
@RunWith(RobolectricTestRunner.class)
5958
@Config(sdk = 19, manifest = "build/intermediates/manifests/full/debug/AndroidManifest.xml")
60-
@TextLayoutMode(value = TextLayoutMode.Mode.LEGACY, issueId = "130378660")
6159
public class CustomViewTargetTest {
6260
private ActivityController<Activity> activity;
6361
private View view;
@@ -212,7 +210,7 @@ public void getSize_withWrapContentWidthAndMatchParentHeight_usesDisplayDimenWid
212210

213211
view.getViewTreeObserver().dispatchOnPreDraw();
214212

215-
verify(cb).onSizeReady(600, height);
213+
verify(cb).onSizeReady(500, height);
216214
}
217215

218216
@Test
@@ -232,7 +230,7 @@ public void getSize_withMatchParentWidthAndWrapContentHeight_usesWidthAndDisplay
232230
activity.visible();
233231
view.getViewTreeObserver().dispatchOnPreDraw();
234232

235-
verify(cb).onSizeReady(width, 400);
233+
verify(cb).onSizeReady(width, 352);
236234
}
237235

238236
@Test

0 commit comments

Comments
 (0)
Please sign in to comment.