Re-generate wrap tests
Summary: Seems someone forgot to run the generation script Reviewed By: astreet Differential Revision: D4627337 fbshipit-source-id: 17dd1e1fed938a049ae820a9a4ac913667073d09
This commit is contained in:
committed by
Facebook Github Bot
parent
b940fadb7e
commit
3790635af1
@@ -1212,7 +1212,7 @@ namespace Facebook.Yoga
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void Test_wrapped_row_within_align_items_center2()
|
public void Test_wrapped_row_within_align_items_flex_start()
|
||||||
{
|
{
|
||||||
YogaNode root = new YogaNode();
|
YogaNode root = new YogaNode();
|
||||||
root.AlignItems = YogaAlign.FlexStart;
|
root.AlignItems = YogaAlign.FlexStart;
|
||||||
@@ -1281,7 +1281,7 @@ namespace Facebook.Yoga
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void Test_wrapped_row_within_align_items_center3()
|
public void Test_wrapped_row_within_align_items_flex_end()
|
||||||
{
|
{
|
||||||
YogaNode root = new YogaNode();
|
YogaNode root = new YogaNode();
|
||||||
root.AlignItems = YogaAlign.FlexEnd;
|
root.AlignItems = YogaAlign.FlexEnd;
|
||||||
|
@@ -1197,7 +1197,7 @@ public class YGFlexWrapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void test_wrapped_row_within_align_items_center2() {
|
public void test_wrapped_row_within_align_items_flex_start() {
|
||||||
final YogaNode root = new YogaNode();
|
final YogaNode root = new YogaNode();
|
||||||
root.setAlignItems(YogaAlign.FLEX_START);
|
root.setAlignItems(YogaAlign.FLEX_START);
|
||||||
root.setWidth(200f);
|
root.setWidth(200f);
|
||||||
@@ -1265,7 +1265,7 @@ public class YGFlexWrapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void test_wrapped_row_within_align_items_center3() {
|
public void test_wrapped_row_within_align_items_flex_end() {
|
||||||
final YogaNode root = new YogaNode();
|
final YogaNode root = new YogaNode();
|
||||||
root.setAlignItems(YogaAlign.FLEX_END);
|
root.setAlignItems(YogaAlign.FLEX_END);
|
||||||
root.setWidth(200f);
|
root.setWidth(200f);
|
||||||
|
@@ -546,6 +546,7 @@ it("flex_wrap_align_stretch_fits_one_row", function () {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
it("wrap_reverse_row_align_content_flex_start", function () {
|
it("wrap_reverse_row_align_content_flex_start", function () {
|
||||||
|
try {
|
||||||
var root = Yoga.Node.create();
|
var root = Yoga.Node.create();
|
||||||
root.setFlexDirection(Yoga.FLEX_DIRECTION_ROW);
|
root.setFlexDirection(Yoga.FLEX_DIRECTION_ROW);
|
||||||
root.setFlexWrap(Yoga.WRAP_WRAP_REVERSE);
|
root.setFlexWrap(Yoga.WRAP_WRAP_REVERSE);
|
||||||
@@ -638,14 +639,14 @@ it("wrap_reverse_row_align_content_flex_start", function () {
|
|||||||
console.assert(0 === root_child4.getComputedTop(), "0 === root_child4.getComputedTop() (" + root_child4.getComputedTop() + ")");
|
console.assert(0 === root_child4.getComputedTop(), "0 === root_child4.getComputedTop() (" + root_child4.getComputedTop() + ")");
|
||||||
console.assert(30 === root_child4.getComputedWidth(), "30 === root_child4.getComputedWidth() (" + root_child4.getComputedWidth() + ")");
|
console.assert(30 === root_child4.getComputedWidth(), "30 === root_child4.getComputedWidth() (" + root_child4.getComputedWidth() + ")");
|
||||||
console.assert(50 === root_child4.getComputedHeight(), "50 === root_child4.getComputedHeight() (" + root_child4.getComputedHeight() + ")");
|
console.assert(50 === root_child4.getComputedHeight(), "50 === root_child4.getComputedHeight() (" + root_child4.getComputedHeight() + ")");
|
||||||
|
} finally {
|
||||||
if (typeof root !== "undefined")
|
if (typeof root !== "undefined") {
|
||||||
root.freeRecursive();
|
root.freeRecursive();
|
||||||
|
}
|
||||||
(typeof gc !== "undefined") && gc();
|
}
|
||||||
console.assert(0 === Yoga.getInstanceCount(), "0 === Yoga.getInstanceCount() (" + Yoga.getInstanceCount() + ")");
|
|
||||||
});
|
});
|
||||||
it("wrap_reverse_row_align_content_center", function () {
|
it("wrap_reverse_row_align_content_center", function () {
|
||||||
|
try {
|
||||||
var root = Yoga.Node.create();
|
var root = Yoga.Node.create();
|
||||||
root.setFlexDirection(Yoga.FLEX_DIRECTION_ROW);
|
root.setFlexDirection(Yoga.FLEX_DIRECTION_ROW);
|
||||||
root.setAlignContent(Yoga.ALIGN_CENTER);
|
root.setAlignContent(Yoga.ALIGN_CENTER);
|
||||||
@@ -739,14 +740,14 @@ it("wrap_reverse_row_align_content_center", function () {
|
|||||||
console.assert(0 === root_child4.getComputedTop(), "0 === root_child4.getComputedTop() (" + root_child4.getComputedTop() + ")");
|
console.assert(0 === root_child4.getComputedTop(), "0 === root_child4.getComputedTop() (" + root_child4.getComputedTop() + ")");
|
||||||
console.assert(30 === root_child4.getComputedWidth(), "30 === root_child4.getComputedWidth() (" + root_child4.getComputedWidth() + ")");
|
console.assert(30 === root_child4.getComputedWidth(), "30 === root_child4.getComputedWidth() (" + root_child4.getComputedWidth() + ")");
|
||||||
console.assert(50 === root_child4.getComputedHeight(), "50 === root_child4.getComputedHeight() (" + root_child4.getComputedHeight() + ")");
|
console.assert(50 === root_child4.getComputedHeight(), "50 === root_child4.getComputedHeight() (" + root_child4.getComputedHeight() + ")");
|
||||||
|
} finally {
|
||||||
if (typeof root !== "undefined")
|
if (typeof root !== "undefined") {
|
||||||
root.freeRecursive();
|
root.freeRecursive();
|
||||||
|
}
|
||||||
(typeof gc !== "undefined") && gc();
|
}
|
||||||
console.assert(0 === Yoga.getInstanceCount(), "0 === Yoga.getInstanceCount() (" + Yoga.getInstanceCount() + ")");
|
|
||||||
});
|
});
|
||||||
it("wrap_reverse_row_single_line_different_size", function () {
|
it("wrap_reverse_row_single_line_different_size", function () {
|
||||||
|
try {
|
||||||
var root = Yoga.Node.create();
|
var root = Yoga.Node.create();
|
||||||
root.setFlexDirection(Yoga.FLEX_DIRECTION_ROW);
|
root.setFlexDirection(Yoga.FLEX_DIRECTION_ROW);
|
||||||
root.setFlexWrap(Yoga.WRAP_WRAP_REVERSE);
|
root.setFlexWrap(Yoga.WRAP_WRAP_REVERSE);
|
||||||
@@ -839,14 +840,14 @@ it("wrap_reverse_row_single_line_different_size", function () {
|
|||||||
console.assert(0 === root_child4.getComputedTop(), "0 === root_child4.getComputedTop() (" + root_child4.getComputedTop() + ")");
|
console.assert(0 === root_child4.getComputedTop(), "0 === root_child4.getComputedTop() (" + root_child4.getComputedTop() + ")");
|
||||||
console.assert(30 === root_child4.getComputedWidth(), "30 === root_child4.getComputedWidth() (" + root_child4.getComputedWidth() + ")");
|
console.assert(30 === root_child4.getComputedWidth(), "30 === root_child4.getComputedWidth() (" + root_child4.getComputedWidth() + ")");
|
||||||
console.assert(50 === root_child4.getComputedHeight(), "50 === root_child4.getComputedHeight() (" + root_child4.getComputedHeight() + ")");
|
console.assert(50 === root_child4.getComputedHeight(), "50 === root_child4.getComputedHeight() (" + root_child4.getComputedHeight() + ")");
|
||||||
|
} finally {
|
||||||
if (typeof root !== "undefined")
|
if (typeof root !== "undefined") {
|
||||||
root.freeRecursive();
|
root.freeRecursive();
|
||||||
|
}
|
||||||
(typeof gc !== "undefined") && gc();
|
}
|
||||||
console.assert(0 === Yoga.getInstanceCount(), "0 === Yoga.getInstanceCount() (" + Yoga.getInstanceCount() + ")");
|
|
||||||
});
|
});
|
||||||
it("wrap_reverse_row_align_content_stretch", function () {
|
it("wrap_reverse_row_align_content_stretch", function () {
|
||||||
|
try {
|
||||||
var root = Yoga.Node.create();
|
var root = Yoga.Node.create();
|
||||||
root.setFlexDirection(Yoga.FLEX_DIRECTION_ROW);
|
root.setFlexDirection(Yoga.FLEX_DIRECTION_ROW);
|
||||||
root.setAlignContent(Yoga.ALIGN_STRETCH);
|
root.setAlignContent(Yoga.ALIGN_STRETCH);
|
||||||
@@ -940,14 +941,14 @@ it("wrap_reverse_row_align_content_stretch", function () {
|
|||||||
console.assert(0 === root_child4.getComputedTop(), "0 === root_child4.getComputedTop() (" + root_child4.getComputedTop() + ")");
|
console.assert(0 === root_child4.getComputedTop(), "0 === root_child4.getComputedTop() (" + root_child4.getComputedTop() + ")");
|
||||||
console.assert(30 === root_child4.getComputedWidth(), "30 === root_child4.getComputedWidth() (" + root_child4.getComputedWidth() + ")");
|
console.assert(30 === root_child4.getComputedWidth(), "30 === root_child4.getComputedWidth() (" + root_child4.getComputedWidth() + ")");
|
||||||
console.assert(50 === root_child4.getComputedHeight(), "50 === root_child4.getComputedHeight() (" + root_child4.getComputedHeight() + ")");
|
console.assert(50 === root_child4.getComputedHeight(), "50 === root_child4.getComputedHeight() (" + root_child4.getComputedHeight() + ")");
|
||||||
|
} finally {
|
||||||
if (typeof root !== "undefined")
|
if (typeof root !== "undefined") {
|
||||||
root.freeRecursive();
|
root.freeRecursive();
|
||||||
|
}
|
||||||
(typeof gc !== "undefined") && gc();
|
}
|
||||||
console.assert(0 === Yoga.getInstanceCount(), "0 === Yoga.getInstanceCount() (" + Yoga.getInstanceCount() + ")");
|
|
||||||
});
|
});
|
||||||
it("wrap_reverse_row_align_content_space_around", function () {
|
it("wrap_reverse_row_align_content_space_around", function () {
|
||||||
|
try {
|
||||||
var root = Yoga.Node.create();
|
var root = Yoga.Node.create();
|
||||||
root.setFlexDirection(Yoga.FLEX_DIRECTION_ROW);
|
root.setFlexDirection(Yoga.FLEX_DIRECTION_ROW);
|
||||||
root.setAlignContent(Yoga.ALIGN_SPACE_AROUND);
|
root.setAlignContent(Yoga.ALIGN_SPACE_AROUND);
|
||||||
@@ -1041,14 +1042,14 @@ it("wrap_reverse_row_align_content_space_around", function () {
|
|||||||
console.assert(0 === root_child4.getComputedTop(), "0 === root_child4.getComputedTop() (" + root_child4.getComputedTop() + ")");
|
console.assert(0 === root_child4.getComputedTop(), "0 === root_child4.getComputedTop() (" + root_child4.getComputedTop() + ")");
|
||||||
console.assert(30 === root_child4.getComputedWidth(), "30 === root_child4.getComputedWidth() (" + root_child4.getComputedWidth() + ")");
|
console.assert(30 === root_child4.getComputedWidth(), "30 === root_child4.getComputedWidth() (" + root_child4.getComputedWidth() + ")");
|
||||||
console.assert(50 === root_child4.getComputedHeight(), "50 === root_child4.getComputedHeight() (" + root_child4.getComputedHeight() + ")");
|
console.assert(50 === root_child4.getComputedHeight(), "50 === root_child4.getComputedHeight() (" + root_child4.getComputedHeight() + ")");
|
||||||
|
} finally {
|
||||||
if (typeof root !== "undefined")
|
if (typeof root !== "undefined") {
|
||||||
root.freeRecursive();
|
root.freeRecursive();
|
||||||
|
}
|
||||||
(typeof gc !== "undefined") && gc();
|
}
|
||||||
console.assert(0 === Yoga.getInstanceCount(), "0 === Yoga.getInstanceCount() (" + Yoga.getInstanceCount() + ")");
|
|
||||||
});
|
});
|
||||||
it("wrap_reverse_column_fixed_size", function () {
|
it("wrap_reverse_column_fixed_size", function () {
|
||||||
|
try {
|
||||||
var root = Yoga.Node.create();
|
var root = Yoga.Node.create();
|
||||||
root.setAlignItems(Yoga.ALIGN_CENTER);
|
root.setAlignItems(Yoga.ALIGN_CENTER);
|
||||||
root.setFlexWrap(Yoga.WRAP_WRAP_REVERSE);
|
root.setFlexWrap(Yoga.WRAP_WRAP_REVERSE);
|
||||||
@@ -1142,14 +1143,14 @@ it("wrap_reverse_column_fixed_size", function () {
|
|||||||
console.assert(0 === root_child4.getComputedTop(), "0 === root_child4.getComputedTop() (" + root_child4.getComputedTop() + ")");
|
console.assert(0 === root_child4.getComputedTop(), "0 === root_child4.getComputedTop() (" + root_child4.getComputedTop() + ")");
|
||||||
console.assert(30 === root_child4.getComputedWidth(), "30 === root_child4.getComputedWidth() (" + root_child4.getComputedWidth() + ")");
|
console.assert(30 === root_child4.getComputedWidth(), "30 === root_child4.getComputedWidth() (" + root_child4.getComputedWidth() + ")");
|
||||||
console.assert(50 === root_child4.getComputedHeight(), "50 === root_child4.getComputedHeight() (" + root_child4.getComputedHeight() + ")");
|
console.assert(50 === root_child4.getComputedHeight(), "50 === root_child4.getComputedHeight() (" + root_child4.getComputedHeight() + ")");
|
||||||
|
} finally {
|
||||||
if (typeof root !== "undefined")
|
if (typeof root !== "undefined") {
|
||||||
root.freeRecursive();
|
root.freeRecursive();
|
||||||
|
}
|
||||||
(typeof gc !== "undefined") && gc();
|
}
|
||||||
console.assert(0 === Yoga.getInstanceCount(), "0 === Yoga.getInstanceCount() (" + Yoga.getInstanceCount() + ")");
|
|
||||||
});
|
});
|
||||||
it("wrapped_row_within_align_items_center", function () {
|
it("wrapped_row_within_align_items_center", function () {
|
||||||
|
try {
|
||||||
var root = Yoga.Node.create();
|
var root = Yoga.Node.create();
|
||||||
root.setAlignItems(Yoga.ALIGN_CENTER);
|
root.setAlignItems(Yoga.ALIGN_CENTER);
|
||||||
root.setWidth(200);
|
root.setWidth(200);
|
||||||
@@ -1212,14 +1213,14 @@ it("wrapped_row_within_align_items_center", function () {
|
|||||||
console.assert(80 === root_child0_child1.getComputedTop(), "80 === root_child0_child1.getComputedTop() (" + root_child0_child1.getComputedTop() + ")");
|
console.assert(80 === root_child0_child1.getComputedTop(), "80 === root_child0_child1.getComputedTop() (" + root_child0_child1.getComputedTop() + ")");
|
||||||
console.assert(80 === root_child0_child1.getComputedWidth(), "80 === root_child0_child1.getComputedWidth() (" + root_child0_child1.getComputedWidth() + ")");
|
console.assert(80 === root_child0_child1.getComputedWidth(), "80 === root_child0_child1.getComputedWidth() (" + root_child0_child1.getComputedWidth() + ")");
|
||||||
console.assert(80 === root_child0_child1.getComputedHeight(), "80 === root_child0_child1.getComputedHeight() (" + root_child0_child1.getComputedHeight() + ")");
|
console.assert(80 === root_child0_child1.getComputedHeight(), "80 === root_child0_child1.getComputedHeight() (" + root_child0_child1.getComputedHeight() + ")");
|
||||||
|
} finally {
|
||||||
if (typeof root !== "undefined")
|
if (typeof root !== "undefined") {
|
||||||
root.freeRecursive();
|
root.freeRecursive();
|
||||||
|
}
|
||||||
(typeof gc !== "undefined") && gc();
|
}
|
||||||
console.assert(0 === Yoga.getInstanceCount(), "0 === Yoga.getInstanceCount() (" + Yoga.getInstanceCount() + ")");
|
|
||||||
});
|
});
|
||||||
it("wrapped_row_within_align_items_center2", function () {
|
it("wrapped_row_within_align_items_flex_start", function () {
|
||||||
|
try {
|
||||||
var root = Yoga.Node.create();
|
var root = Yoga.Node.create();
|
||||||
root.setAlignItems(Yoga.ALIGN_FLEX_START);
|
root.setAlignItems(Yoga.ALIGN_FLEX_START);
|
||||||
root.setWidth(200);
|
root.setWidth(200);
|
||||||
@@ -1282,14 +1283,14 @@ it("wrapped_row_within_align_items_center2", function () {
|
|||||||
console.assert(80 === root_child0_child1.getComputedTop(), "80 === root_child0_child1.getComputedTop() (" + root_child0_child1.getComputedTop() + ")");
|
console.assert(80 === root_child0_child1.getComputedTop(), "80 === root_child0_child1.getComputedTop() (" + root_child0_child1.getComputedTop() + ")");
|
||||||
console.assert(80 === root_child0_child1.getComputedWidth(), "80 === root_child0_child1.getComputedWidth() (" + root_child0_child1.getComputedWidth() + ")");
|
console.assert(80 === root_child0_child1.getComputedWidth(), "80 === root_child0_child1.getComputedWidth() (" + root_child0_child1.getComputedWidth() + ")");
|
||||||
console.assert(80 === root_child0_child1.getComputedHeight(), "80 === root_child0_child1.getComputedHeight() (" + root_child0_child1.getComputedHeight() + ")");
|
console.assert(80 === root_child0_child1.getComputedHeight(), "80 === root_child0_child1.getComputedHeight() (" + root_child0_child1.getComputedHeight() + ")");
|
||||||
|
} finally {
|
||||||
if (typeof root !== "undefined")
|
if (typeof root !== "undefined") {
|
||||||
root.freeRecursive();
|
root.freeRecursive();
|
||||||
|
}
|
||||||
(typeof gc !== "undefined") && gc();
|
}
|
||||||
console.assert(0 === Yoga.getInstanceCount(), "0 === Yoga.getInstanceCount() (" + Yoga.getInstanceCount() + ")");
|
|
||||||
});
|
});
|
||||||
it("wrapped_row_within_align_items_center3", function () {
|
it("wrapped_row_within_align_items_flex_end", function () {
|
||||||
|
try {
|
||||||
var root = Yoga.Node.create();
|
var root = Yoga.Node.create();
|
||||||
root.setAlignItems(Yoga.ALIGN_FLEX_END);
|
root.setAlignItems(Yoga.ALIGN_FLEX_END);
|
||||||
root.setWidth(200);
|
root.setWidth(200);
|
||||||
@@ -1352,10 +1353,9 @@ it("wrapped_row_within_align_items_center3", function () {
|
|||||||
console.assert(80 === root_child0_child1.getComputedTop(), "80 === root_child0_child1.getComputedTop() (" + root_child0_child1.getComputedTop() + ")");
|
console.assert(80 === root_child0_child1.getComputedTop(), "80 === root_child0_child1.getComputedTop() (" + root_child0_child1.getComputedTop() + ")");
|
||||||
console.assert(80 === root_child0_child1.getComputedWidth(), "80 === root_child0_child1.getComputedWidth() (" + root_child0_child1.getComputedWidth() + ")");
|
console.assert(80 === root_child0_child1.getComputedWidth(), "80 === root_child0_child1.getComputedWidth() (" + root_child0_child1.getComputedWidth() + ")");
|
||||||
console.assert(80 === root_child0_child1.getComputedHeight(), "80 === root_child0_child1.getComputedHeight() (" + root_child0_child1.getComputedHeight() + ")");
|
console.assert(80 === root_child0_child1.getComputedHeight(), "80 === root_child0_child1.getComputedHeight() (" + root_child0_child1.getComputedHeight() + ")");
|
||||||
|
} finally {
|
||||||
if (typeof root !== "undefined")
|
if (typeof root !== "undefined") {
|
||||||
root.freeRecursive();
|
root.freeRecursive();
|
||||||
|
}
|
||||||
(typeof gc !== "undefined") && gc();
|
}
|
||||||
console.assert(0 === Yoga.getInstanceCount(), "0 === Yoga.getInstanceCount() (" + Yoga.getInstanceCount() + ")");
|
|
||||||
});
|
});
|
||||||
|
@@ -1178,7 +1178,7 @@ TEST(YogaTest, wrapped_row_within_align_items_center) {
|
|||||||
YGNodeFreeRecursive(root);
|
YGNodeFreeRecursive(root);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(YogaTest, wrapped_row_within_align_items_center2) {
|
TEST(YogaTest, wrapped_row_within_align_items_flex_start) {
|
||||||
const YGNodeRef root = YGNodeNew();
|
const YGNodeRef root = YGNodeNew();
|
||||||
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
|
YGNodeStyleSetAlignItems(root, YGAlignFlexStart);
|
||||||
YGNodeStyleSetWidth(root, 200);
|
YGNodeStyleSetWidth(root, 200);
|
||||||
@@ -1245,7 +1245,7 @@ TEST(YogaTest, wrapped_row_within_align_items_center2) {
|
|||||||
YGNodeFreeRecursive(root);
|
YGNodeFreeRecursive(root);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(YogaTest, wrapped_row_within_align_items_center3) {
|
TEST(YogaTest, wrapped_row_within_align_items_flex_end) {
|
||||||
const YGNodeRef root = YGNodeNew();
|
const YGNodeRef root = YGNodeNew();
|
||||||
YGNodeStyleSetAlignItems(root, YGAlignFlexEnd);
|
YGNodeStyleSetAlignItems(root, YGAlignFlexEnd);
|
||||||
YGNodeStyleSetWidth(root, 200);
|
YGNodeStyleSetWidth(root, 200);
|
||||||
|
Reference in New Issue
Block a user