Package-level declarations
Types
Reads a rendered tree the way an accessibility service does: as nodes, not as Views.
One node in the tree a service walks, whether it is backed by a View or is virtual. Which of the two it is deliberately does not change how a test reads or acts on it.
JUnit rule that installs a deterministic animation frame driver for the duration of a test.
This test utility allows clients to create a TestLithoView instance that allows to test assertion on the view hierarchy rendered by a Litho components.
The resize mode determines when to call measure and layout methods for TestLithoView. This can be triggered by a root change or state update.
A wrapper class that exposes methods specific to testing collection components.
A wrapper class that exposes methods specific to testing collection children.
Holder class for the result of LithoTestRule.render call, exposing methods to for finding the views/components and assertions
Helper class extracting looper functionality from BackgroundLayoutLooperRule that can be reused in other TestRules
Dispatches well-formed MotionEvent streams through a real View.dispatchTouchEvent chain.
Functions
An AccessibilityProbe over the rendered LithoView.
Shorthand for creating a View.MeasureSpec.AT_MOST measure spec.
Opens a gesture that outlives a single statement, for tests that mutate the tree mid-gesture (a re-render or unmount between DOWN and UP). Prefer performTouchInput when the whole gesture fits in one block.
beginTouchInput targeting the rendered LithoView.
Shorthand for creating a View.MeasureSpec.EXACTLY measure spec.
Runs block against a TouchInjectionScope targeting this view. Coordinates inside block are in this view's coordinate space.
Runs block against a TouchInjectionScope targeting the rendered LithoView, so a gesture enters at the root and is hit-tested down the real hierarchy. Coordinates are in the LithoView's space.
Shorthand for creating a View.MeasureSpec.UNSPECIFIED measure spec.