-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly configure layouts in snapshot tests (#2389)
We weren't fully configuring Row and Column layouts, which caused the (undocumented) yoga defaults to be used in tests.
- Loading branch information
1 parent
6799c4d
commit aeb1fb8
Showing
72 changed files
with
186 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...eui_ComposeUiFlexContainerTest_RTL_testColumnWithChildModifierChanges_empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...ui_ComposeUiFlexContainerTest_RTL_testColumnWithChildModifierChanges_margin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...ut.composeui_ComposeUiFlexContainerTest_RTL_testDynamicElementUpdates_abcde.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...out.composeui_ComposeUiFlexContainerTest_RTL_testDynamicElementUpdates_abde.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...out.composeui_ComposeUiFlexContainerTest_RTL_testDynamicElementUpdates_bcde.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...t.composeui_ComposeUiFlexContainerTest_RTL_testFlexDistributesWeightEqually.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...composeui_ComposeUiFlexContainerTest_RTL_testFlexDistributesWeightUnequally.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...layout.composeui_ComposeUiFlexContainerTest_RTL_testLayoutAfterDetach_after.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...ayout.composeui_ComposeUiFlexContainerTest_RTL_testLayoutAfterDetach_before.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...poseui_ComposeUiFlexContainerTest_RTL_testRowWithChildModifierChanges_empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...oseui_ComposeUiFlexContainerTest_RTL_testRowWithChildModifierChanges_margin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...mposeui_ComposeUiFlexContainerTest_testColumnWithChildModifierChanges_empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...poseui_ComposeUiFlexContainerTest_testColumnWithChildModifierChanges_margin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...layout.composeui_ComposeUiFlexContainerTest_testDynamicElementUpdates_abcde.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
....layout.composeui_ComposeUiFlexContainerTest_testDynamicElementUpdates_abde.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
....layout.composeui_ComposeUiFlexContainerTest_testDynamicElementUpdates_bcde.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...ayout.composeui_ComposeUiFlexContainerTest_testFlexDistributesWeightEqually.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...out.composeui_ComposeUiFlexContainerTest_testFlexDistributesWeightUnequally.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...ood.layout.composeui_ComposeUiFlexContainerTest_testLayoutAfterDetach_after.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...od.layout.composeui_ComposeUiFlexContainerTest_testLayoutAfterDetach_before.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
....composeui_ComposeUiFlexContainerTest_testRowWithChildModifierChanges_empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...composeui_ComposeUiFlexContainerTest_testRowWithChildModifierChanges_margin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...utUIViewTests/__Snapshots__/UIViewFlexContainerTestHost/testColumnThenRow.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...hots__/UIViewFlexContainerTestHost/testColumnWithChildModifierChanges.Empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...ots__/UIViewFlexContainerTestHost/testColumnWithChildModifierChanges.Margin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...sts/__Snapshots__/UIViewFlexContainerTestHost/testCrossAxisAlignmentStart.1.png
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...s/__Snapshots__/UIViewFlexContainerTestHost/testDynamicElementUpdates.ABCDE.png
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...ts/__Snapshots__/UIViewFlexContainerTestHost/testDynamicElementUpdates.ABDE.png
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...ts/__Snapshots__/UIViewFlexContainerTestHost/testDynamicElementUpdates.BCDE.png
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
..._Snapshots__/UIViewFlexContainerTestHost/testFlexDistributesWeightEqually.1.png
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...napshots__/UIViewFlexContainerTestHost/testFlexDistributesWeightUnequally.1.png
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...Tests/__Snapshots__/UIViewFlexContainerTestHost/testLayoutAfterDetach.After.png
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...ests/__Snapshots__/UIViewFlexContainerTestHost/testLayoutAfterDetach.Before.png
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...ayoutUIViewTests/__Snapshots__/UIViewFlexContainerTestHost/testRowMargins.1.png
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...apshots__/UIViewFlexContainerTestHost/testRowWithChildModifierChanges.Empty.png
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...pshots__/UIViewFlexContainerTestHost/testRowWithChildModifierChanges.Margin.png
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...iewTests/__Snapshots__/UIViewFlexContainerTestHost/testTextWrapsInsideRow.1.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,6 +62,8 @@ class UIViewFlexContainerTest( | |
override fun invalidateSize() { | ||
} | ||
} | ||
|
||
applyDefaults() | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...es/app.cash.redwood.layout.view_ViewFlexContainerTest_RTL_testColumnThenRow.png
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...out.view_ViewFlexContainerTest_RTL_testColumnWithChildModifierChanges_empty.png
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...ut.view_ViewFlexContainerTest_RTL_testColumnWithChildModifierChanges_margin.png
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...dwood.layout.view_ViewFlexContainerTest_RTL_testDynamicElementUpdates_abcde.png
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...edwood.layout.view_ViewFlexContainerTest_RTL_testDynamicElementUpdates_abde.png
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...edwood.layout.view_ViewFlexContainerTest_RTL_testDynamicElementUpdates_bcde.png
Oops, something went wrong.
Oops, something went wrong.