Find and fix typos in yoga code (#36560)
Summary: X-link: https://github.com/facebook/react-native/pull/36560 X-link: https://github.com/facebook/litho/pull/935 Pull Request resolved: https://github.com/facebook/yoga/pull/1239 Changelog: [Internal] - A follow-up to D44172494, I've run a pass of [typos](https://github.com/crate-ci/typos) on the Yoga code to detect/fix typos in comments and identifiers (with a manual review afterwards). Reviewed By: javache Differential Revision: D44254911 fbshipit-source-id: 6e8bfe83ec2f963108450cdcb8c79dfc8d1a7375
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b17f08ed49
commit
3782644b32
@@ -61,11 +61,11 @@ TEST(YogaTest, dirtied_propagation) {
|
||||
ASSERT_EQ(0, dirtiedCount);
|
||||
|
||||
// `_dirtied` MUST be called for the first time.
|
||||
root_child0->markDirtyAndPropogate();
|
||||
root_child0->markDirtyAndPropagate();
|
||||
ASSERT_EQ(1, dirtiedCount);
|
||||
|
||||
// `_dirtied` must NOT be called for the second time.
|
||||
root_child0->markDirtyAndPropogate();
|
||||
root_child0->markDirtyAndPropagate();
|
||||
ASSERT_EQ(1, dirtiedCount);
|
||||
}
|
||||
|
||||
@@ -94,14 +94,14 @@ TEST(YogaTest, dirtied_hierarchy) {
|
||||
ASSERT_EQ(0, dirtiedCount);
|
||||
|
||||
// `_dirtied` must NOT be called for descendants.
|
||||
root->markDirtyAndPropogate();
|
||||
root->markDirtyAndPropagate();
|
||||
ASSERT_EQ(0, dirtiedCount);
|
||||
|
||||
// `_dirtied` must NOT be called for the sibling node.
|
||||
root_child1->markDirtyAndPropogate();
|
||||
root_child1->markDirtyAndPropagate();
|
||||
ASSERT_EQ(0, dirtiedCount);
|
||||
|
||||
// `_dirtied` MUST be called in case of explicit dirtying.
|
||||
root_child0->markDirtyAndPropogate();
|
||||
root_child0->markDirtyAndPropagate();
|
||||
ASSERT_EQ(1, dirtiedCount);
|
||||
}
|
||||
|
Reference in New Issue
Block a user