TestLayoutState
object TestLayoutState
Deprecated
Only to be used with the deprecated ComponentTestHelper
This should be only used with the deprecated DiffNode based testing infrastructure. This class hosts a test implementation of create and resolve layout. The implementation only resolves the immediate subcomponents of the component. The implementation details of this class should be kept in sync with LayoutState if the existing tests written with the deprecated testing infrastructure are relevant.
Functions
Link copied to clipboard
Link copied to clipboard
fun createAndMeasureTreeForComponent(resolveContext: ResolveContext, context: ComponentContext, component: Component, widthSpec: Int, heightSpec: Int): LithoNode?
Link copied to clipboard
fun newImmediateLayoutBuilder(resolveContext: ResolveContext, c: ComponentContext, widthSpec: Int, heightSpec: Int, component: Component): LithoNode?
Link copied to clipboard
fun resolveImmediateSubTree(resolveContext: ResolveContext, c: ComponentContext, widthSpec: Int, heightSpec: Int, component: Component): LithoNode?