Skip to content

Commit

Permalink
Regenerate some test snapshots (#6382)
Browse files Browse the repository at this point in the history
## Summary
Remove component margins and regenerate some test snapshots to match
Android margin calculations.

I also add border lines to some of the moving views, so it is possible
to see the order of the components (zIndex):
<img width="262" alt="image"
src="https://github.com/user-attachments/assets/52d49c8d-c7dc-4d6f-ad7e-05fe5535ba6a">
  • Loading branch information
Latropos authored Aug 12, 2024
1 parent 9d9ada4 commit c70d66d
Show file tree
Hide file tree
Showing 5 changed files with 415 additions and 5,054 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ export default function RuntimeTestsExample() {
require('./tests/layoutAnimations/entering/enteringColors.test');
require('./tests/layoutAnimations/entering/predefinedEntering.test');
require('./tests/layoutAnimations/exiting/predefinedExiting.test');
require('./tests/layoutAnimations/layout/predefinedLayoutPosition.test');
describe('Compare layout transitions with **constant view size** with snapshots', () => {
require('./tests/layoutAnimations/layout/predefinedLayoutPosition.test');
});
describe('Compare Test layout transitions including view **size changes** with snapshots', () => {
require('./tests/layoutAnimations/layout/positionAndSize.test');
});
},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,24 +118,24 @@ const styles = StyleSheet.create({
containerVertical: {
flex: 1,
flexDirection: 'column',
margin: 5,
width: 250,
},
containerHorizontal: {
flex: 1,
flexDirection: 'row',
flexWrap: 'wrap',
justifyContent: 'center',
margin: 5,
width: 250,
},
animatedBox: {
backgroundColor: 'royalblue',
backgroundColor: 'powderblue',
borderColor: 'steelblue',
borderWidth: 1,
width: 100,
height: 100,
margin: 5,
},
mainBox: { backgroundColor: 'darkorange' },
mainBox: { backgroundColor: 'orange', borderColor: 'darkorange' },
bigBox: {
width: 150,
height: 200,
Expand Down
Loading

0 comments on commit c70d66d

Please sign in to comment.