AppCompatBaseViewTest

abstract class AppCompatBaseViewTest<A : BaseTestActivity?, T : View?>(source)

Base class for testing custom view extensions in appcompat-v7 that implement the TintableBackgroundView interface. Extensions of this class run all tests from here and add test cases specific to the functionality they add to the relevant base view class (such as AppCompatTextView's all-caps support).

Constructors

Link copied to clipboard
constructor(clazz: Class<A>)

Properties

Link copied to clipboard
val mActivityTestRule: ActivityScenarioRule<A>

Functions

Link copied to clipboard
open fun setUp()
This method tests that opaque background tinting applied to tintable view is applied correctly after changing the background itself of the view.
Link copied to clipboard
This method tests that background tinting applied to tintable view in enabled and disabled state across the same background respects the currently set background tinting mode.
Link copied to clipboard
This method tests that background tinting is applied to tintable view in enabled and disabled state across a number of ColorStateLists set as background tint lists on the same background.
This method tests that background tinting applied to tintable view in enabled and disabled state across the same background respects the currently set background tinting mode.
This method tests that background tinting is applied to tintable view in enabled and disabled state across a number of ColorStateLists set as background tint lists on the same background.
This method tests that background tinting is not applied when the tintable view has no background.
Link copied to clipboard
This method tests that background tinting is not applied when the tintable view has no background.
This method tests that translucent background tinting applied to tintable view is applied correctly after changing the background itself of the view.