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
@@ -99,7 +99,7 @@ namespace Facebook.CSSLayout
|
||||
CSSNode root_child2 = new CSSNode();
|
||||
root_child2.StyleWidth = 10;
|
||||
root.Insert(2, root_child2);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -122,7 +122,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(10, root_child2.LayoutWidth);
|
||||
Assert.AreEqual(102, root_child2.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -166,7 +166,7 @@ namespace Facebook.CSSLayout
|
||||
CSSNode root_child2 = new CSSNode();
|
||||
root_child2.StyleWidth = 10;
|
||||
root.Insert(2, root_child2);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -189,7 +189,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(10, root_child2.LayoutWidth);
|
||||
Assert.AreEqual(102, root_child2.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -233,7 +233,7 @@ namespace Facebook.CSSLayout
|
||||
CSSNode root_child2 = new CSSNode();
|
||||
root_child2.StyleWidth = 10;
|
||||
root.Insert(2, root_child2);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -256,7 +256,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(10, root_child2.LayoutWidth);
|
||||
Assert.AreEqual(102, root_child2.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -300,7 +300,7 @@ namespace Facebook.CSSLayout
|
||||
CSSNode root_child2 = new CSSNode();
|
||||
root_child2.StyleWidth = 10;
|
||||
root.Insert(2, root_child2);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -323,7 +323,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(10, root_child2.LayoutWidth);
|
||||
Assert.AreEqual(102, root_child2.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -367,7 +367,7 @@ namespace Facebook.CSSLayout
|
||||
CSSNode root_child2 = new CSSNode();
|
||||
root_child2.StyleWidth = 10;
|
||||
root.Insert(2, root_child2);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -390,7 +390,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(10, root_child2.LayoutWidth);
|
||||
Assert.AreEqual(102, root_child2.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -431,7 +431,7 @@ namespace Facebook.CSSLayout
|
||||
CSSNode root_child2 = new CSSNode();
|
||||
root_child2.StyleHeight = 10;
|
||||
root.Insert(2, root_child2);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -454,7 +454,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(102, root_child2.LayoutWidth);
|
||||
Assert.AreEqual(10, root_child2.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -497,7 +497,7 @@ namespace Facebook.CSSLayout
|
||||
CSSNode root_child2 = new CSSNode();
|
||||
root_child2.StyleHeight = 10;
|
||||
root.Insert(2, root_child2);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -520,7 +520,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(102, root_child2.LayoutWidth);
|
||||
Assert.AreEqual(10, root_child2.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -563,7 +563,7 @@ namespace Facebook.CSSLayout
|
||||
CSSNode root_child2 = new CSSNode();
|
||||
root_child2.StyleHeight = 10;
|
||||
root.Insert(2, root_child2);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -586,7 +586,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(102, root_child2.LayoutWidth);
|
||||
Assert.AreEqual(10, root_child2.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -629,7 +629,7 @@ namespace Facebook.CSSLayout
|
||||
CSSNode root_child2 = new CSSNode();
|
||||
root_child2.StyleHeight = 10;
|
||||
root.Insert(2, root_child2);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -652,7 +652,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(102, root_child2.LayoutWidth);
|
||||
Assert.AreEqual(10, root_child2.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -695,7 +695,7 @@ namespace Facebook.CSSLayout
|
||||
CSSNode root_child2 = new CSSNode();
|
||||
root_child2.StyleHeight = 10;
|
||||
root.Insert(2, root_child2);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -718,7 +718,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(102, root_child2.LayoutWidth);
|
||||
Assert.AreEqual(10, root_child2.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
|
Reference in New Issue
Block a user