remove not required position absolute from tests
This commit is contained in:
@@ -1595,7 +1595,6 @@ namespace Facebook.Yoga
|
||||
YogaNode root = new YogaNode(config);
|
||||
root.JustifyContent = YogaJustify.Center;
|
||||
root.AlignItems = YogaAlign.Center;
|
||||
root.PositionType = YogaPositionType.Absolute;
|
||||
root.Width = 52;
|
||||
root.Height = 52;
|
||||
|
||||
@@ -1654,7 +1653,6 @@ namespace Facebook.Yoga
|
||||
YogaNode root = new YogaNode(config);
|
||||
root.JustifyContent = YogaJustify.Center;
|
||||
root.AlignItems = YogaAlign.Center;
|
||||
root.PositionType = YogaPositionType.Absolute;
|
||||
root.Width = 52;
|
||||
root.Height = 52;
|
||||
|
||||
@@ -1713,7 +1711,6 @@ namespace Facebook.Yoga
|
||||
YogaNode root = new YogaNode(config);
|
||||
root.JustifyContent = YogaJustify.Center;
|
||||
root.AlignItems = YogaAlign.Center;
|
||||
root.PositionType = YogaPositionType.Absolute;
|
||||
root.Width = 52;
|
||||
root.Height = 52;
|
||||
|
||||
@@ -1770,7 +1767,6 @@ namespace Facebook.Yoga
|
||||
YogaNode root = new YogaNode(config);
|
||||
root.JustifyContent = YogaJustify.Center;
|
||||
root.AlignItems = YogaAlign.Center;
|
||||
root.PositionType = YogaPositionType.Absolute;
|
||||
root.Width = 52;
|
||||
root.Height = 52;
|
||||
|
||||
|
@@ -1443,7 +1443,6 @@ namespace Facebook.Yoga
|
||||
|
||||
YogaNode root = new YogaNode(config);
|
||||
root.JustifyContent = YogaJustify.Center;
|
||||
root.PositionType = YogaPositionType.Absolute;
|
||||
root.Width = 52;
|
||||
root.Height = 52;
|
||||
|
||||
@@ -1487,7 +1486,6 @@ namespace Facebook.Yoga
|
||||
|
||||
YogaNode root = new YogaNode(config);
|
||||
root.JustifyContent = YogaJustify.Center;
|
||||
root.PositionType = YogaPositionType.Absolute;
|
||||
root.Width = 52;
|
||||
root.Height = 52;
|
||||
|
||||
@@ -1530,7 +1528,6 @@ namespace Facebook.Yoga
|
||||
|
||||
YogaNode root = new YogaNode(config);
|
||||
root.JustifyContent = YogaJustify.Center;
|
||||
root.PositionType = YogaPositionType.Absolute;
|
||||
root.Width = 52;
|
||||
root.Height = 52;
|
||||
|
||||
@@ -1574,7 +1571,6 @@ namespace Facebook.Yoga
|
||||
|
||||
YogaNode root = new YogaNode(config);
|
||||
root.JustifyContent = YogaJustify.Center;
|
||||
root.PositionType = YogaPositionType.Absolute;
|
||||
root.Width = 52;
|
||||
root.Height = 52;
|
||||
|
||||
|
@@ -144,25 +144,25 @@
|
||||
<div style="width: 50px; height: 20px;"></div>
|
||||
</div>
|
||||
|
||||
<div id="align_items_center_child_with_margin_bigger_than_parent" style="height: 52px; width: 52px; position: absolute; align-items: center; justify-content: center;">
|
||||
<div id="align_items_center_child_with_margin_bigger_than_parent" style="height: 52px; width: 52px; align-items: center; justify-content: center;">
|
||||
<div style="align-items: center;">
|
||||
<div style="width: 52px; height: 52px; margin-left: 10px; margin-right: 10px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="align_items_flex_end_child_with_margin_bigger_than_parent" style="height: 52px; width: 52px; position: absolute; align-items: center; justify-content: center;">
|
||||
<div id="align_items_flex_end_child_with_margin_bigger_than_parent" style="height: 52px; width: 52px; align-items: center; justify-content: center;">
|
||||
<div style="align-items: flex-end;">
|
||||
<div style="width: 52px; height: 52px; margin-left: 10px; margin-right: 10px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="align_items_center_child_without_margin_bigger_than_parent" style="height: 52px; width: 52px; position: absolute; align-items: center; justify-content: center;">
|
||||
<div id="align_items_center_child_without_margin_bigger_than_parent" style="height: 52px; width: 52px; align-items: center; justify-content: center;">
|
||||
<div style="align-items: center;">
|
||||
<div style="width: 72px; height: 72px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="align_items_flex_end_child_without_margin_bigger_than_parent" style="height: 52px; width: 52px; position: absolute; align-items: center; justify-content: center;">
|
||||
<div id="align_items_flex_end_child_without_margin_bigger_than_parent" style="height: 52px; width: 52px; align-items: center; justify-content: center;">
|
||||
<div style="align-items: flex-end;">
|
||||
<div style="width: 72px; height: 72px;"></div>
|
||||
</div>
|
||||
|
@@ -125,18 +125,18 @@
|
||||
<div style="width: 100px; height: 100px; max-width: 100px; margin-left: 20px;"></div>
|
||||
</div>
|
||||
|
||||
<div id="margin_auto_left_right_child_bigger_than_parent" style="height: 52px; width: 52px; position: absolute; justify-content: center;">
|
||||
<div id="margin_auto_left_right_child_bigger_than_parent" style="height: 52px; width: 52px; justify-content: center;">
|
||||
<div style="width: 72px; height: 72px; margin-left: auto; margin-right:auto;"></div>
|
||||
</div>
|
||||
|
||||
<div id="margin_auto_left_child_bigger_than_parent" style="height: 52px; width: 52px; position: absolute; justify-content: center;">
|
||||
<div id="margin_auto_left_child_bigger_than_parent" style="height: 52px; width: 52px; justify-content: center;">
|
||||
<div style="width: 72px; height: 72px; margin-left: auto;"></div>
|
||||
</div>
|
||||
|
||||
<div id="margin_fix_left_auto_right_child_bigger_than_parent" style="height: 52px; width: 52px; position: absolute; justify-content: center;">
|
||||
<div id="margin_fix_left_auto_right_child_bigger_than_parent" style="height: 52px; width: 52px; justify-content: center;">
|
||||
<div style="width: 72px; height: 72px; margin-left: 10px; margin-right: auto;"></div>
|
||||
</div>
|
||||
|
||||
<div id="margin_auto_left_fix_right_child_bigger_than_parent" style="height: 52px; width: 52px; position: absolute; justify-content: center;">
|
||||
<div id="margin_auto_left_fix_right_child_bigger_than_parent" style="height: 52px; width: 52px; justify-content: center;">
|
||||
<div style="width: 72px; height: 72px; margin-left: auto; margin-right: 10px;"></div>
|
||||
</div>
|
||||
|
@@ -1574,7 +1574,6 @@ public class YGAlignItemsTest {
|
||||
final YogaNode root = new YogaNode(config);
|
||||
root.setJustifyContent(YogaJustify.CENTER);
|
||||
root.setAlignItems(YogaAlign.CENTER);
|
||||
root.setPositionType(YogaPositionType.ABSOLUTE);
|
||||
root.setWidth(52f);
|
||||
root.setHeight(52f);
|
||||
|
||||
@@ -1632,7 +1631,6 @@ public class YGAlignItemsTest {
|
||||
final YogaNode root = new YogaNode(config);
|
||||
root.setJustifyContent(YogaJustify.CENTER);
|
||||
root.setAlignItems(YogaAlign.CENTER);
|
||||
root.setPositionType(YogaPositionType.ABSOLUTE);
|
||||
root.setWidth(52f);
|
||||
root.setHeight(52f);
|
||||
|
||||
@@ -1690,7 +1688,6 @@ public class YGAlignItemsTest {
|
||||
final YogaNode root = new YogaNode(config);
|
||||
root.setJustifyContent(YogaJustify.CENTER);
|
||||
root.setAlignItems(YogaAlign.CENTER);
|
||||
root.setPositionType(YogaPositionType.ABSOLUTE);
|
||||
root.setWidth(52f);
|
||||
root.setHeight(52f);
|
||||
|
||||
@@ -1746,7 +1743,6 @@ public class YGAlignItemsTest {
|
||||
final YogaNode root = new YogaNode(config);
|
||||
root.setJustifyContent(YogaJustify.CENTER);
|
||||
root.setAlignItems(YogaAlign.CENTER);
|
||||
root.setPositionType(YogaPositionType.ABSOLUTE);
|
||||
root.setWidth(52f);
|
||||
root.setHeight(52f);
|
||||
|
||||
|
@@ -1414,7 +1414,6 @@ public class YGMarginTest {
|
||||
|
||||
final YogaNode root = new YogaNode(config);
|
||||
root.setJustifyContent(YogaJustify.CENTER);
|
||||
root.setPositionType(YogaPositionType.ABSOLUTE);
|
||||
root.setWidth(52f);
|
||||
root.setHeight(52f);
|
||||
|
||||
@@ -1457,7 +1456,6 @@ public class YGMarginTest {
|
||||
|
||||
final YogaNode root = new YogaNode(config);
|
||||
root.setJustifyContent(YogaJustify.CENTER);
|
||||
root.setPositionType(YogaPositionType.ABSOLUTE);
|
||||
root.setWidth(52f);
|
||||
root.setHeight(52f);
|
||||
|
||||
@@ -1499,7 +1497,6 @@ public class YGMarginTest {
|
||||
|
||||
final YogaNode root = new YogaNode(config);
|
||||
root.setJustifyContent(YogaJustify.CENTER);
|
||||
root.setPositionType(YogaPositionType.ABSOLUTE);
|
||||
root.setWidth(52f);
|
||||
root.setHeight(52f);
|
||||
|
||||
@@ -1542,7 +1539,6 @@ public class YGMarginTest {
|
||||
|
||||
final YogaNode root = new YogaNode(config);
|
||||
root.setJustifyContent(YogaJustify.CENTER);
|
||||
root.setPositionType(YogaPositionType.ABSOLUTE);
|
||||
root.setWidth(52f);
|
||||
root.setHeight(52f);
|
||||
|
||||
|
@@ -1567,7 +1567,6 @@ it("align_items_center_child_with_margin_bigger_than_parent", function () {
|
||||
var root = Yoga.Node.create(config);
|
||||
root.setJustifyContent(Yoga.JUSTIFY_CENTER);
|
||||
root.setAlignItems(Yoga.ALIGN_CENTER);
|
||||
root.setPositionType(Yoga.POSITION_TYPE_ABSOLUTE);
|
||||
root.setWidth(52);
|
||||
root.setHeight(52);
|
||||
|
||||
@@ -1625,7 +1624,6 @@ it("align_items_flex_end_child_with_margin_bigger_than_parent", function () {
|
||||
var root = Yoga.Node.create(config);
|
||||
root.setJustifyContent(Yoga.JUSTIFY_CENTER);
|
||||
root.setAlignItems(Yoga.ALIGN_CENTER);
|
||||
root.setPositionType(Yoga.POSITION_TYPE_ABSOLUTE);
|
||||
root.setWidth(52);
|
||||
root.setHeight(52);
|
||||
|
||||
@@ -1683,7 +1681,6 @@ it("align_items_center_child_without_margin_bigger_than_parent", function () {
|
||||
var root = Yoga.Node.create(config);
|
||||
root.setJustifyContent(Yoga.JUSTIFY_CENTER);
|
||||
root.setAlignItems(Yoga.ALIGN_CENTER);
|
||||
root.setPositionType(Yoga.POSITION_TYPE_ABSOLUTE);
|
||||
root.setWidth(52);
|
||||
root.setHeight(52);
|
||||
|
||||
@@ -1739,7 +1736,6 @@ it("align_items_flex_end_child_without_margin_bigger_than_parent", function () {
|
||||
var root = Yoga.Node.create(config);
|
||||
root.setJustifyContent(Yoga.JUSTIFY_CENTER);
|
||||
root.setAlignItems(Yoga.ALIGN_CENTER);
|
||||
root.setPositionType(Yoga.POSITION_TYPE_ABSOLUTE);
|
||||
root.setWidth(52);
|
||||
root.setHeight(52);
|
||||
|
||||
|
@@ -1407,7 +1407,6 @@ it("margin_auto_left_right_child_bigger_than_parent", function () {
|
||||
try {
|
||||
var root = Yoga.Node.create(config);
|
||||
root.setJustifyContent(Yoga.JUSTIFY_CENTER);
|
||||
root.setPositionType(Yoga.POSITION_TYPE_ABSOLUTE);
|
||||
root.setWidth(52);
|
||||
root.setHeight(52);
|
||||
|
||||
@@ -1450,7 +1449,6 @@ it("margin_auto_left_child_bigger_than_parent", function () {
|
||||
try {
|
||||
var root = Yoga.Node.create(config);
|
||||
root.setJustifyContent(Yoga.JUSTIFY_CENTER);
|
||||
root.setPositionType(Yoga.POSITION_TYPE_ABSOLUTE);
|
||||
root.setWidth(52);
|
||||
root.setHeight(52);
|
||||
|
||||
@@ -1492,7 +1490,6 @@ it("margin_fix_left_auto_right_child_bigger_than_parent", function () {
|
||||
try {
|
||||
var root = Yoga.Node.create(config);
|
||||
root.setJustifyContent(Yoga.JUSTIFY_CENTER);
|
||||
root.setPositionType(Yoga.POSITION_TYPE_ABSOLUTE);
|
||||
root.setWidth(52);
|
||||
root.setHeight(52);
|
||||
|
||||
@@ -1535,7 +1532,6 @@ it("margin_auto_left_fix_right_child_bigger_than_parent", function () {
|
||||
try {
|
||||
var root = Yoga.Node.create(config);
|
||||
root.setJustifyContent(Yoga.JUSTIFY_CENTER);
|
||||
root.setPositionType(Yoga.POSITION_TYPE_ABSOLUTE);
|
||||
root.setWidth(52);
|
||||
root.setHeight(52);
|
||||
|
||||
|
@@ -1588,7 +1588,6 @@ TEST(YogaTest, align_items_center_child_with_margin_bigger_than_parent) {
|
||||
const YGNodeRef root = YGNodeNewWithConfig(config);
|
||||
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
|
||||
YGNodeStyleSetAlignItems(root, YGAlignCenter);
|
||||
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
|
||||
YGNodeStyleSetWidth(root, 52);
|
||||
YGNodeStyleSetHeight(root, 52);
|
||||
|
||||
@@ -1647,7 +1646,6 @@ TEST(YogaTest, align_items_flex_end_child_with_margin_bigger_than_parent) {
|
||||
const YGNodeRef root = YGNodeNewWithConfig(config);
|
||||
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
|
||||
YGNodeStyleSetAlignItems(root, YGAlignCenter);
|
||||
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
|
||||
YGNodeStyleSetWidth(root, 52);
|
||||
YGNodeStyleSetHeight(root, 52);
|
||||
|
||||
@@ -1706,7 +1704,6 @@ TEST(YogaTest, align_items_center_child_without_margin_bigger_than_parent) {
|
||||
const YGNodeRef root = YGNodeNewWithConfig(config);
|
||||
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
|
||||
YGNodeStyleSetAlignItems(root, YGAlignCenter);
|
||||
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
|
||||
YGNodeStyleSetWidth(root, 52);
|
||||
YGNodeStyleSetHeight(root, 52);
|
||||
|
||||
@@ -1763,7 +1760,6 @@ TEST(YogaTest, align_items_flex_end_child_without_margin_bigger_than_parent) {
|
||||
const YGNodeRef root = YGNodeNewWithConfig(config);
|
||||
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
|
||||
YGNodeStyleSetAlignItems(root, YGAlignCenter);
|
||||
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
|
||||
YGNodeStyleSetWidth(root, 52);
|
||||
YGNodeStyleSetHeight(root, 52);
|
||||
|
||||
|
@@ -1436,7 +1436,6 @@ TEST(YogaTest, margin_auto_left_right_child_bigger_than_parent) {
|
||||
|
||||
const YGNodeRef root = YGNodeNewWithConfig(config);
|
||||
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
|
||||
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
|
||||
YGNodeStyleSetWidth(root, 52);
|
||||
YGNodeStyleSetHeight(root, 52);
|
||||
|
||||
@@ -1480,7 +1479,6 @@ TEST(YogaTest, margin_auto_left_child_bigger_than_parent) {
|
||||
|
||||
const YGNodeRef root = YGNodeNewWithConfig(config);
|
||||
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
|
||||
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
|
||||
YGNodeStyleSetWidth(root, 52);
|
||||
YGNodeStyleSetHeight(root, 52);
|
||||
|
||||
@@ -1523,7 +1521,6 @@ TEST(YogaTest, margin_fix_left_auto_right_child_bigger_than_parent) {
|
||||
|
||||
const YGNodeRef root = YGNodeNewWithConfig(config);
|
||||
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
|
||||
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
|
||||
YGNodeStyleSetWidth(root, 52);
|
||||
YGNodeStyleSetHeight(root, 52);
|
||||
|
||||
@@ -1567,7 +1564,6 @@ TEST(YogaTest, margin_auto_left_fix_right_child_bigger_than_parent) {
|
||||
|
||||
const YGNodeRef root = YGNodeNewWithConfig(config);
|
||||
YGNodeStyleSetJustifyContent(root, YGJustifyCenter);
|
||||
YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute);
|
||||
YGNodeStyleSetWidth(root, 52);
|
||||
YGNodeStyleSetHeight(root, 52);
|
||||
|
||||
|
Reference in New Issue
Block a user