Add feature to use percentage as value unit #258
@@ -283,7 +283,7 @@ TEST(YogaTest, overflow_scroll_column) {
|
||||
ASSERT_FLOAT_EQ(100, constraintList.constraints[0].width);
|
||||
ASSERT_EQ(YGMeasureModeAtMost, constraintList.constraints[0].widthMode);
|
||||
|
||||
ASSERT_TRUE(YGValueIsUndefined(constraintList.constraints[0].height));
|
||||
ASSERT_TRUE(YGFloatIsUndefined(constraintList.constraints[0].height));
|
||||
ASSERT_EQ(YGMeasureModeUndefined, constraintList.constraints[0].heightMode);
|
||||
|
||||
free(constraintList.constraints);
|
||||
@@ -312,7 +312,7 @@ TEST(YogaTest, overflow_scroll_row) {
|
||||
|
||||
ASSERT_EQ(1, constraintList.length);
|
||||
|
||||
ASSERT_TRUE(YGValueIsUndefined(constraintList.constraints[0].width));
|
||||
ASSERT_TRUE(YGFloatIsUndefined(constraintList.constraints[0].width));
|
||||
ASSERT_EQ(YGMeasureModeUndefined, constraintList.constraints[0].widthMode);
|
||||
|
||||
ASSERT_FLOAT_EQ(100, constraintList.constraints[0].height);
|
||||
|
@@ -26,7 +26,7 @@ TEST(YogaTest, copy_style_modified) {
|
||||
const YGNodeRef node0 = YGNodeNew();
|
||||
ASSERT_FALSE(YGNodeIsDirty(node0));
|
||||
ASSERT_EQ(YGFlexDirectionColumn, YGNodeStyleGetFlexDirection(node0));
|
||||
ASSERT_TRUE(YGValueIsUndefined(YGNodeStyleGetMaxHeight(node0)));
|
||||
ASSERT_TRUE(YGFloatIsUndefined(YGNodeStyleGetMaxHeight(node0)));
|
||||
|
||||
const YGNodeRef node1 = YGNodeNew();
|
||||
YGNodeStyleSetFlexDirection(node1, YGFlexDirectionRow);
|
||||
|
Reference in New Issue
Block a user