Add tests for LayoutableChildren
iterator
#1731
Reference in New Issue
Block a user
No description provided.
Delete Branch "@jpiasecki/layoutable_children_tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds unit tests that directly cover the order in which
LayoutableChildren
iterator goes over the descendant nodes. The covered cases are as follows (nodes withdisplay: contents
are marked green):Single
display: contents
nodeCorrect order:
A, D, E, C
Multiple
display: contents
nodesCorrect order:
D, E, F, G, H, I
Nested
display: contents
nodesCorrect order:
A, D, F, G, C
Leaf
display: contents
nodeCorrect order:
A, C
Root
display: contents
nodeCorrect order:
A, B, C
-LayoutableChildren
goes over the children withdisplay: contents
property, setting it on the root node should have no effect.The latest updates on your projects. Learn more about Vercel for Git ↗︎
@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@NickGerleman merged this pull request in facebook/yoga@6fed4dfe30.
Pull request closed