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
@@ -84,7 +84,7 @@ namespace Facebook.CSSLayout
|
||||
root_child4.StyleWidth = 50;
|
||||
root_child4.StyleHeight = 10;
|
||||
root.Insert(4, root_child4);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -117,7 +117,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(50, root_child4.LayoutWidth);
|
||||
Assert.AreEqual(10, root_child4.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -184,7 +184,7 @@ namespace Facebook.CSSLayout
|
||||
root_child4.StyleWidth = 50;
|
||||
root_child4.StyleHeight = 10;
|
||||
root.Insert(4, root_child4);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -217,7 +217,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(50, root_child4.LayoutWidth);
|
||||
Assert.AreEqual(10, root_child4.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -284,7 +284,7 @@ namespace Facebook.CSSLayout
|
||||
root_child4.StyleWidth = 50;
|
||||
root_child4.StyleHeight = 10;
|
||||
root.Insert(4, root_child4);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -317,7 +317,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(50, root_child4.LayoutWidth);
|
||||
Assert.AreEqual(10, root_child4.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -379,7 +379,7 @@ namespace Facebook.CSSLayout
|
||||
CSSNode root_child4 = new CSSNode();
|
||||
root_child4.StyleWidth = 50;
|
||||
root.Insert(4, root_child4);
|
||||
root.StyleDirection = CSSDirection.LeftToRight;
|
||||
root.StyleDirection = CSSDirection.LTR;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
@@ -412,7 +412,7 @@ namespace Facebook.CSSLayout
|
||||
Assert.AreEqual(50, root_child4.LayoutWidth);
|
||||
Assert.AreEqual(0, root_child4.LayoutHeight);
|
||||
|
||||
root.StyleDirection = CSSDirection.RightToLeft;
|
||||
root.StyleDirection = CSSDirection.RTL;
|
||||
root.CalculateLayout();
|
||||
|
||||
Assert.AreEqual(0, root.LayoutX);
|
||||
|
Reference in New Issue
Block a user