Switch to YogaConfigFactory.create
Summary: Switch to `YogaNodeFactory.create()` instead of using `YogaNode.create()` Reviewed By: SidharthGuglani Differential Revision: D17266408 fbshipit-source-id: 69e1e59c7345d16eb174af97c2e231666a02354b
This commit is contained in:
committed by
Facebook Github Bot
parent
67a3841164
commit
d697bbe0a5
@@ -25,7 +25,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_absolute_layout_width_height_start_top() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setWidth(100f);
|
||||
@@ -67,7 +67,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_absolute_layout_width_height_end_bottom() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setWidth(100f);
|
||||
@@ -109,7 +109,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_absolute_layout_start_top_end_bottom() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setWidth(100f);
|
||||
@@ -151,7 +151,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_absolute_layout_width_height_start_top_end_bottom() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setWidth(100f);
|
||||
@@ -195,7 +195,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_do_not_clamp_height_of_absolute_node_to_height_of_its_overflow_hidden_parent() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setFlexDirection(YogaFlexDirection.ROW);
|
||||
@@ -252,7 +252,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_absolute_layout_within_border() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setMargin(YogaEdge.LEFT, 10f);
|
||||
@@ -368,7 +368,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_absolute_layout_align_items_and_justify_content_center() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setJustifyContent(YogaJustify.CENTER);
|
||||
@@ -411,7 +411,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_absolute_layout_align_items_and_justify_content_flex_end() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setJustifyContent(YogaJustify.FLEX_END);
|
||||
@@ -454,7 +454,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_absolute_layout_justify_content_center() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setJustifyContent(YogaJustify.CENTER);
|
||||
@@ -496,7 +496,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_absolute_layout_align_items_center() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setAlignItems(YogaAlign.CENTER);
|
||||
@@ -538,7 +538,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_absolute_layout_align_items_center_on_child_only() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setFlexGrow(1f);
|
||||
@@ -580,7 +580,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_absolute_layout_align_items_and_justify_content_center_and_top_position() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setJustifyContent(YogaJustify.CENTER);
|
||||
@@ -624,7 +624,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_absolute_layout_align_items_and_justify_content_center_and_bottom_position() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setJustifyContent(YogaJustify.CENTER);
|
||||
@@ -668,7 +668,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_absolute_layout_align_items_and_justify_content_center_and_left_position() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setJustifyContent(YogaJustify.CENTER);
|
||||
@@ -712,7 +712,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_absolute_layout_align_items_and_justify_content_center_and_right_position() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setJustifyContent(YogaJustify.CENTER);
|
||||
@@ -756,7 +756,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_position_root_with_rtl_should_position_withoutdirection() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setPosition(YogaEdge.LEFT, 72f);
|
||||
@@ -781,7 +781,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_absolute_layout_percentage_bottom_based_on_parent_height() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setWidth(100f);
|
||||
@@ -856,7 +856,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_absolute_layout_in_wrap_reverse_column_container() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setWrap(YogaWrap.WRAP_REVERSE);
|
||||
@@ -897,7 +897,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_absolute_layout_in_wrap_reverse_row_container() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setFlexDirection(YogaFlexDirection.ROW);
|
||||
@@ -939,7 +939,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_absolute_layout_in_wrap_reverse_column_container_flex_end() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setWrap(YogaWrap.WRAP_REVERSE);
|
||||
@@ -981,7 +981,7 @@ public class YGAbsolutePositionTest {
|
||||
|
||||
@Test
|
||||
public void test_absolute_layout_in_wrap_reverse_row_container_flex_end() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setFlexDirection(YogaFlexDirection.ROW);
|
||||
|
Reference in New Issue
Block a user