Skip to content

Commit

Permalink
Add Row/LazyRow screenshot tests for align-self (#1285)
Browse files Browse the repository at this point in the history
  • Loading branch information
veyndan authored Jun 28, 2023
1 parent 8874c53 commit 68a2f02
Show file tree
Hide file tree
Showing 17 changed files with 30 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,12 @@ abstract class AbstractFlexContainerTest<T : Any> {
verifySnapshot(container)
}

@Test fun columnWithMarginAndDifferentAlignments() {
val container = flexContainer(FlexDirection.Column)
@Test fun layoutWithMarginAndDifferentAlignments(
@TestParameter flexDirectionEnum: FlexDirectionEnum,
) {
assumeTrue(flexDirectionEnum in listOf(FlexDirectionEnum.Row, FlexDirectionEnum.Column))
val flexDirection = flexDirectionEnum.toFlexDirection()
val container = flexContainer(flexDirection)
container.margin(Margin(start = 5.dp, end = 10.dp, top = 20.dp, bottom = 20.dp))
movies.forEachIndexed { index, movie ->
val modifier = when (index % 4) {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 68a2f02

Please sign in to comment.