Change flex getters to return the set values
Summary: Changed the flex getters to return the values they were actually set. See #421 . Closes https://github.com/facebook/yoga/pull/431 Reviewed By: astreet Differential Revision: D4604744 Pulled By: emilsjolander fbshipit-source-id: 02d79100ef22be866db1c3bd9d53e4447186811f
This commit is contained in:
committed by
Facebook Github Bot
parent
1cd7363bea
commit
3346f9511a
@@ -27,7 +27,7 @@ TEST(YogaTest, assert_default_values) {
|
||||
ASSERT_EQ(YGOverflowVisible, YGNodeStyleGetOverflow(root));
|
||||
ASSERT_FLOAT_EQ(0, YGNodeStyleGetFlexGrow(root));
|
||||
ASSERT_FLOAT_EQ(0, YGNodeStyleGetFlexShrink(root));
|
||||
ASSERT_FALSE(YGNodeStyleGetFlexBasis(root).unit != YGUnitAuto);
|
||||
ASSERT_EQ(YGNodeStyleGetFlexBasis(root).unit, YGUnitAuto);
|
||||
|
||||
ASSERT_EQ(YGNodeStyleGetPosition(root, YGEdgeLeft).unit, YGUnitUndefined);
|
||||
ASSERT_EQ(YGNodeStyleGetPosition(root, YGEdgeTop).unit, YGUnitUndefined);
|
||||
|
Reference in New Issue
Block a user