Revert D13866122: Fix negative value rounding issue for nodes across an axis
Differential Revision: D13866122 (4266409934
) Original commit changeset: 4faf8a9efc86 Original Phabricator Diff: D13866122 (4266409934
) fbshipit-source-id: c11919fdd585f09b0422e8db55a8a3d66027676f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
4266409934
commit
996267dbcb
@@ -80,26 +80,3 @@ TEST(YogaTest, consistent_rounding_during_repeated_layouts) {
|
||||
|
||||
YGConfigFree(config);
|
||||
}
|
||||
|
||||
// Regression test for https://github.com/facebook/yoga/issues/683
|
||||
TEST(YogaTest, negative_value_rounding) {
|
||||
const YGConfigRef config = YGConfigNew();
|
||||
const YGNodeRef root = YGNodeNewWithConfig(config);
|
||||
const YGNodeRef child = YGNodeNewWithConfig(config);
|
||||
|
||||
YGNodeInsertChild(root, child, 0);
|
||||
|
||||
YGNodeStyleSetWidth(child, 10);
|
||||
YGNodeStyleSetHeight(child, 10);
|
||||
YGNodeStyleSetPosition(root, YGEdgeLeft, -0.75f);
|
||||
YGNodeStyleSetPosition(root, YGEdgeTop, -0.75f);
|
||||
|
||||
YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR);
|
||||
|
||||
ASSERT_FLOAT_EQ(YGNodeLayoutGetWidth(child), 10);
|
||||
ASSERT_FLOAT_EQ(YGNodeLayoutGetHeight(child), 10);
|
||||
|
||||
YGNodeFreeRecursive(root);
|
||||
|
||||
YGConfigFree(config);
|
||||
}
|
||||
|
Reference in New Issue
Block a user