Rename java API

Summary: Rename java api to new use yoga naming

Reviewed By: IanChilds

Differential Revision: D4265345

fbshipit-source-id: 69ecfd8fac214f86b8b70647b9b909acd83d78b5
This commit is contained in:
Emil Sjolander
2016-12-03 04:40:23 -08:00
committed by Facebook Github Bot
parent 6339467b6d
commit c6100d0771
22 changed files with 366 additions and 352 deletions

View File

@@ -18,18 +18,18 @@ import static org.junit.Assert.assertEquals;
public class YGFlexDirectionTest {
@Test
public void test_flex_direction_column_no_height() {
final CSSNode root = new CSSNode();
final YogaNode root = new YogaNode();
root.setWidth(100f);
final CSSNode root_child0 = new CSSNode();
final YogaNode root_child0 = new YogaNode();
root_child0.setHeight(10f);
root.addChildAt(root_child0, 0);
final CSSNode root_child1 = new CSSNode();
final YogaNode root_child1 = new YogaNode();
root_child1.setHeight(10f);
root.addChildAt(root_child1, 1);
final CSSNode root_child2 = new CSSNode();
final YogaNode root_child2 = new YogaNode();
root_child2.setHeight(10f);
root.addChildAt(root_child2, 2);
root.setDirection(YogaDirection.LTR);
@@ -81,19 +81,19 @@ public class YGFlexDirectionTest {
@Test
public void test_flex_direction_row_no_width() {
final CSSNode root = new CSSNode();
final YogaNode root = new YogaNode();
root.setFlexDirection(YogaFlexDirection.ROW);
root.setHeight(100f);
final CSSNode root_child0 = new CSSNode();
final YogaNode root_child0 = new YogaNode();
root_child0.setWidth(10f);
root.addChildAt(root_child0, 0);
final CSSNode root_child1 = new CSSNode();
final YogaNode root_child1 = new YogaNode();
root_child1.setWidth(10f);
root.addChildAt(root_child1, 1);
final CSSNode root_child2 = new CSSNode();
final YogaNode root_child2 = new YogaNode();
root_child2.setWidth(10f);
root.addChildAt(root_child2, 2);
root.setDirection(YogaDirection.LTR);
@@ -145,19 +145,19 @@ public class YGFlexDirectionTest {
@Test
public void test_flex_direction_column() {
final CSSNode root = new CSSNode();
final YogaNode root = new YogaNode();
root.setWidth(100f);
root.setHeight(100f);
final CSSNode root_child0 = new CSSNode();
final YogaNode root_child0 = new YogaNode();
root_child0.setHeight(10f);
root.addChildAt(root_child0, 0);
final CSSNode root_child1 = new CSSNode();
final YogaNode root_child1 = new YogaNode();
root_child1.setHeight(10f);
root.addChildAt(root_child1, 1);
final CSSNode root_child2 = new CSSNode();
final YogaNode root_child2 = new YogaNode();
root_child2.setHeight(10f);
root.addChildAt(root_child2, 2);
root.setDirection(YogaDirection.LTR);
@@ -209,20 +209,20 @@ public class YGFlexDirectionTest {
@Test
public void test_flex_direction_row() {
final CSSNode root = new CSSNode();
final YogaNode root = new YogaNode();
root.setFlexDirection(YogaFlexDirection.ROW);
root.setWidth(100f);
root.setHeight(100f);
final CSSNode root_child0 = new CSSNode();
final YogaNode root_child0 = new YogaNode();
root_child0.setWidth(10f);
root.addChildAt(root_child0, 0);
final CSSNode root_child1 = new CSSNode();
final YogaNode root_child1 = new YogaNode();
root_child1.setWidth(10f);
root.addChildAt(root_child1, 1);
final CSSNode root_child2 = new CSSNode();
final YogaNode root_child2 = new YogaNode();
root_child2.setWidth(10f);
root.addChildAt(root_child2, 2);
root.setDirection(YogaDirection.LTR);
@@ -274,20 +274,20 @@ public class YGFlexDirectionTest {
@Test
public void test_flex_direction_column_reverse() {
final CSSNode root = new CSSNode();
final YogaNode root = new YogaNode();
root.setFlexDirection(YogaFlexDirection.COLUMN_REVERSE);
root.setWidth(100f);
root.setHeight(100f);
final CSSNode root_child0 = new CSSNode();
final YogaNode root_child0 = new YogaNode();
root_child0.setHeight(10f);
root.addChildAt(root_child0, 0);
final CSSNode root_child1 = new CSSNode();
final YogaNode root_child1 = new YogaNode();
root_child1.setHeight(10f);
root.addChildAt(root_child1, 1);
final CSSNode root_child2 = new CSSNode();
final YogaNode root_child2 = new YogaNode();
root_child2.setHeight(10f);
root.addChildAt(root_child2, 2);
root.setDirection(YogaDirection.LTR);
@@ -339,20 +339,20 @@ public class YGFlexDirectionTest {
@Test
public void test_flex_direction_row_reverse() {
final CSSNode root = new CSSNode();
final YogaNode root = new YogaNode();
root.setFlexDirection(YogaFlexDirection.ROW_REVERSE);
root.setWidth(100f);
root.setHeight(100f);
final CSSNode root_child0 = new CSSNode();
final YogaNode root_child0 = new YogaNode();
root_child0.setWidth(10f);
root.addChildAt(root_child0, 0);
final CSSNode root_child1 = new CSSNode();
final YogaNode root_child1 = new YogaNode();
root_child1.setWidth(10f);
root.addChildAt(root_child1, 1);
final CSSNode root_child2 = new CSSNode();
final YogaNode root_child2 = new YogaNode();
root_child2.setWidth(10f);
root.addChildAt(root_child2, 2);
root.setDirection(YogaDirection.LTR);