Expose UseWebDefaults to java

Summary: Expose UseWebDefaults to java

Reviewed By: astreet

Differential Revision: D4779743

fbshipit-source-id: 65a4184af6fb959fefff5c2014522c551ca440d5
This commit is contained in:
Emil Sjolander
2017-03-29 03:06:17 -07:00
committed by Facebook Github Bot
parent ebdf82f491
commit bc2fb5c7ab
3 changed files with 19 additions and 0 deletions

View File

@@ -219,6 +219,14 @@ public class YogaNodeTest {
assertEquals(4, (int) node.getLayoutBorder(YogaEdge.BOTTOM));
}
@Test
public void testUseWebDefaults() {
final YogaConfig config = new YogaConfig();
config.setUseWebDefaults(true);
final YogaNode node = new YogaNode(config);
assertEquals(YogaFlexDirection.ROW, node.getFlexDirection());
}
@Test
public void testPercentPaddingOnRoot() {
final YogaNode node = new YogaNode();