imageWithDrawable
Temporary workaround for the TestImageSpec's drawableRes matcher problem with Robolectric.
Matcher that succeeds if a InspectableComponent has an image content that matches the provided drawable resource id.
Example Use
assertThat(c, mComponent)
.has(
deepSubComponentWith(c, TestImageConditions.imageWithDrawable(R.drawable.drawable_id)));
Content copied to clipboard