Remove Style prefix in java and cs apis
Summary: The Style prefix does not make sense in the java and c# api and only a few methods had it. This diff removes the last of those. Reviewed By: splhack Differential Revision: D4232920 fbshipit-source-id: 6e2ff21bbb7e0e441892023c14df579d1bc7aa49
This commit is contained in:
committed by
Facebook Github Bot
parent
6318801470
commit
5fa42cd1b0
@@ -19,13 +19,13 @@ public class CSSLayoutAlignSelfTest {
|
||||
@Test
|
||||
public void test_align_self_center() {
|
||||
final CSSNode root = new CSSNode();
|
||||
root.setStyleWidth(100f);
|
||||
root.setStyleHeight(100f);
|
||||
root.setWidth(100f);
|
||||
root.setHeight(100f);
|
||||
|
||||
final CSSNode root_child0 = new CSSNode();
|
||||
root_child0.setAlignSelf(CSSAlign.CENTER);
|
||||
root_child0.setStyleWidth(10f);
|
||||
root_child0.setStyleHeight(10f);
|
||||
root_child0.setWidth(10f);
|
||||
root_child0.setHeight(10f);
|
||||
root.addChildAt(root_child0, 0);
|
||||
root.setDirection(CSSDirection.LTR);
|
||||
root.calculateLayout(null);
|
||||
@@ -57,13 +57,13 @@ public class CSSLayoutAlignSelfTest {
|
||||
@Test
|
||||
public void test_align_self_flex_end() {
|
||||
final CSSNode root = new CSSNode();
|
||||
root.setStyleWidth(100f);
|
||||
root.setStyleHeight(100f);
|
||||
root.setWidth(100f);
|
||||
root.setHeight(100f);
|
||||
|
||||
final CSSNode root_child0 = new CSSNode();
|
||||
root_child0.setAlignSelf(CSSAlign.FLEX_END);
|
||||
root_child0.setStyleWidth(10f);
|
||||
root_child0.setStyleHeight(10f);
|
||||
root_child0.setWidth(10f);
|
||||
root_child0.setHeight(10f);
|
||||
root.addChildAt(root_child0, 0);
|
||||
root.setDirection(CSSDirection.LTR);
|
||||
root.calculateLayout(null);
|
||||
@@ -95,13 +95,13 @@ public class CSSLayoutAlignSelfTest {
|
||||
@Test
|
||||
public void test_align_self_flex_start() {
|
||||
final CSSNode root = new CSSNode();
|
||||
root.setStyleWidth(100f);
|
||||
root.setStyleHeight(100f);
|
||||
root.setWidth(100f);
|
||||
root.setHeight(100f);
|
||||
|
||||
final CSSNode root_child0 = new CSSNode();
|
||||
root_child0.setAlignSelf(CSSAlign.FLEX_START);
|
||||
root_child0.setStyleWidth(10f);
|
||||
root_child0.setStyleHeight(10f);
|
||||
root_child0.setWidth(10f);
|
||||
root_child0.setHeight(10f);
|
||||
root.addChildAt(root_child0, 0);
|
||||
root.setDirection(CSSDirection.LTR);
|
||||
root.calculateLayout(null);
|
||||
@@ -134,13 +134,13 @@ public class CSSLayoutAlignSelfTest {
|
||||
public void test_align_self_flex_end_override_flex_start() {
|
||||
final CSSNode root = new CSSNode();
|
||||
root.setAlignItems(CSSAlign.FLEX_START);
|
||||
root.setStyleWidth(100f);
|
||||
root.setStyleHeight(100f);
|
||||
root.setWidth(100f);
|
||||
root.setHeight(100f);
|
||||
|
||||
final CSSNode root_child0 = new CSSNode();
|
||||
root_child0.setAlignSelf(CSSAlign.FLEX_END);
|
||||
root_child0.setStyleWidth(10f);
|
||||
root_child0.setStyleHeight(10f);
|
||||
root_child0.setWidth(10f);
|
||||
root_child0.setHeight(10f);
|
||||
root.addChildAt(root_child0, 0);
|
||||
root.setDirection(CSSDirection.LTR);
|
||||
root.calculateLayout(null);
|
||||
|
Reference in New Issue
Block a user