Use LTR and RTL instead obsolete enums
Summary: Use LTR and RTL instead obsolete LeftToRight and RightToLeft enums Reviewed By: emilsjolander Differential Revision: D4175897 fbshipit-source-id: d22af46d3292f9ad1754f571e95cb64b11722f7b
This commit is contained in:
committed by
Facebook Github Bot
parent
d1c555fede
commit
d80bac4234
@@ -73,7 +73,7 @@ namespace Facebook.CSSLayout
|
||||
CSSNode root_child1 = new CSSNode();
|
||||
root_child1.FlexGrow = 1;
|
||||
root.Insert(1, root_child1);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -91,7 +91,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(100, root_child1.LayoutWidth);
|
||||
Assert.AreEqual(25, root_child1.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -126,7 +126,7 @@ namespace Facebook.CSSLayout
|
||||
CSSNode root_child1 = new CSSNode();
|
||||
root_child1.FlexGrow = 1;
|
||||
root.Insert(1, root_child1);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -144,7 +144,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(25, root_child1.LayoutWidth);
|
||||
Assert.AreEqual(100, root_child1.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -178,7 +178,7 @@ namespace Facebook.CSSLayout
|
||||
CSSNode root_child1 = new CSSNode();
|
||||
root_child1.FlexBasis = 50;
|
||||
root.Insert(1, root_child1);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -196,7 +196,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(100, root_child1.LayoutWidth);
|
||||
Assert.AreEqual(50, root_child1.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -231,7 +231,7 @@ namespace Facebook.CSSLayout
|
||||
CSSNode root_child1 = new CSSNode();
|
||||
root_child1.FlexBasis = 50;
|
||||
root.Insert(1, root_child1);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -249,7 +249,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(50, root_child1.LayoutWidth);
|
||||
Assert.AreEqual(100, root_child1.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -289,7 +289,7 @@ namespace Facebook.CSSLayout
|
||||
root_child2.StyleWidth = 50;
|
||||
root_child2.StyleHeight = 50;
|
||||
root.Insert(2, root_child2);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -312,7 +312,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(50, root_child2.LayoutWidth);
|
||||
Assert.AreEqual(50, root_child2.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -358,7 +358,7 @@ namespace Facebook.CSSLayout
|
||||
root_child2.FlexGrow = 1;
|
||||
root_child2.StyleHeight = 10;
|
||||
root.Insert(2, root_child2);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -381,7 +381,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(100, root_child2.LayoutWidth);
|
||||
Assert.AreEqual(20, root_child2.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -419,7 +419,7 @@ namespace Facebook.CSSLayout
|
||||
root_child0_child0.FlexGrow = 1;
|
||||
root_child0_child0.FlexShrink = 1;
|
||||
root_child0.Insert(0, root_child0_child0);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -437,7 +437,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(100, root_child0_child0.LayoutWidth);
|
||||
Assert.AreEqual(0, root_child0_child0.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
|
Reference in New Issue
Block a user