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:
Kazuki Sakamoto
2016-11-15 09:08:51 -08:00
committed by Facebook Github Bot
parent d1c555fede
commit d80bac4234
13 changed files with 150 additions and 150 deletions

View File

@@ -48,7 +48,7 @@ namespace Facebook.CSSLayout
root_child0.StyleWidth = 10;
root_child0.StyleHeight = 10;
root.Insert(0, root_child0);
root.StyleDirection = CSSDirection.LeftToRight;
root.StyleDirection = CSSDirection.LTR;
root.CalculateLayout();
Assert.AreEqual(0, root.LayoutX);
@@ -61,7 +61,7 @@ namespace Facebook.CSSLayout
Assert.AreEqual(10, root_child0.LayoutWidth);
Assert.AreEqual(10, root_child0.LayoutHeight);
root.StyleDirection = CSSDirection.RightToLeft;
root.StyleDirection = CSSDirection.RTL;
root.CalculateLayout();
Assert.AreEqual(0, root.LayoutX);
@@ -87,7 +87,7 @@ namespace Facebook.CSSLayout
root_child0.StyleWidth = 10;
root_child0.StyleHeight = 10;
root.Insert(0, root_child0);
root.StyleDirection = CSSDirection.LeftToRight;
root.StyleDirection = CSSDirection.LTR;
root.CalculateLayout();
Assert.AreEqual(0, root.LayoutX);
@@ -100,7 +100,7 @@ namespace Facebook.CSSLayout
Assert.AreEqual(10, root_child0.LayoutWidth);
Assert.AreEqual(10, root_child0.LayoutHeight);
root.StyleDirection = CSSDirection.RightToLeft;
root.StyleDirection = CSSDirection.RTL;
root.CalculateLayout();
Assert.AreEqual(0, root.LayoutX);
@@ -126,7 +126,7 @@ namespace Facebook.CSSLayout
root_child0.StyleWidth = 10;
root_child0.StyleHeight = 10;
root.Insert(0, root_child0);
root.StyleDirection = CSSDirection.LeftToRight;
root.StyleDirection = CSSDirection.LTR;
root.CalculateLayout();
Assert.AreEqual(0, root.LayoutX);
@@ -139,7 +139,7 @@ namespace Facebook.CSSLayout
Assert.AreEqual(10, root_child0.LayoutWidth);
Assert.AreEqual(10, root_child0.LayoutHeight);
root.StyleDirection = CSSDirection.RightToLeft;
root.StyleDirection = CSSDirection.RTL;
root.CalculateLayout();
Assert.AreEqual(0, root.LayoutX);
@@ -166,7 +166,7 @@ namespace Facebook.CSSLayout
root_child0.StyleWidth = 10;
root_child0.StyleHeight = 10;
root.Insert(0, root_child0);
root.StyleDirection = CSSDirection.LeftToRight;
root.StyleDirection = CSSDirection.LTR;
root.CalculateLayout();
Assert.AreEqual(0, root.LayoutX);
@@ -179,7 +179,7 @@ namespace Facebook.CSSLayout
Assert.AreEqual(10, root_child0.LayoutWidth);
Assert.AreEqual(10, root_child0.LayoutHeight);
root.StyleDirection = CSSDirection.RightToLeft;
root.StyleDirection = CSSDirection.RTL;
root.CalculateLayout();
Assert.AreEqual(0, root.LayoutX);