🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

assertLeftPositionInRootIsEqualTo

Asserts that the layout of this node has the left position in the root composable that is equal to the given position.

assertLeftPositionInRootIsEqualTo

Source set: Common
@Deprecated(
    message = "Use assertLeftPositionInRootIsEqualTo with tolerance",
    level = DeprecationLevel.HIDDEN,
)
public fun SemanticsNodeInteraction.assertLeftPositionInRootIsEqualTo(
    expectedLeft: Dp
): SemanticsNodeInteraction

Asserts that the layout of this node has the left position in the root composable that is equal to the given position.

Parameters

expectedLeft The left (x) position to assert.

Throws: AssertionError

if comparison fails.

assertLeftPositionInRootIsEqualTo

Source set: Common
public fun SemanticsNodeInteraction.assertLeftPositionInRootIsEqualTo(
    expectedLeft: Dp,
    tolerance: Dp = 0.5.dp,
): SemanticsNodeInteraction

Asserts that the layout of this node has the left position in the root composable that is equal to expectedLeft within the given tolerance.

Parameters

expectedLeft The left (x) position to assert.
tolerance The tolerance within which the values should be treated as equal. Defaults to 0.5.dp.

Throws: AssertionError

if comparison fails.