hasVisibleDrawable

open fun hasVisibleDrawable(resourceId: Int): ViewTreeAssert

Tests if any view in the hierarchy under the root, for which the path is visible, is displaying the requested drawable by the given resource id.

For this assertion to work, Robolectric must be immediately available and be able to load the drawable corresponding to this resource id.

Return

the assertions object

Parameters

resourceId

the resource id of the drawable to look for


Tests if any view in the hierarchy under the root, for which the path is visible, is displaying the requested drawable

Return

the assertions object

Parameters

drawable

the drawable to look for