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 YGPaddingTest {
|
||||
|
||||
@Test
|
||||
public void test_padding_no_size() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setPadding(YogaEdge.LEFT, 10);
|
||||
@@ -51,7 +51,7 @@ public class YGPaddingTest {
|
||||
|
||||
@Test
|
||||
public void test_padding_container_match_child() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setPadding(YogaEdge.LEFT, 10);
|
||||
@@ -92,7 +92,7 @@ public class YGPaddingTest {
|
||||
|
||||
@Test
|
||||
public void test_padding_flex_child() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setPadding(YogaEdge.LEFT, 10);
|
||||
@@ -135,7 +135,7 @@ public class YGPaddingTest {
|
||||
|
||||
@Test
|
||||
public void test_padding_stretch_child() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setPadding(YogaEdge.LEFT, 10);
|
||||
@@ -177,7 +177,7 @@ public class YGPaddingTest {
|
||||
|
||||
@Test
|
||||
public void test_padding_center_child() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setJustifyContent(YogaJustify.CENTER);
|
||||
@@ -221,7 +221,7 @@ public class YGPaddingTest {
|
||||
|
||||
@Test
|
||||
public void test_child_with_padding_align_end() {
|
||||
YogaConfig config = new YogaConfig();
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
|
||||
final YogaNode root = createNode(config);
|
||||
root.setJustifyContent(YogaJustify.FLEX_END);
|
||||
|
Reference in New Issue
Block a user