diff --git a/csharp/tests/Facebook.Yoga/CSSLayoutAbsolutePositionTest.cs b/csharp/tests/Facebook.Yoga/YGAbsolutePositionTest.cs similarity index 98% rename from csharp/tests/Facebook.Yoga/CSSLayoutAbsolutePositionTest.cs rename to csharp/tests/Facebook.Yoga/YGAbsolutePositionTest.cs index ba377250..c9d49cc0 100644 --- a/csharp/tests/Facebook.Yoga/CSSLayoutAbsolutePositionTest.cs +++ b/csharp/tests/Facebook.Yoga/YGAbsolutePositionTest.cs @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutAbsolutePositionTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGAbsolutePositionTest.html using System; using NUnit.Framework; @@ -15,7 +15,7 @@ using NUnit.Framework; namespace Facebook.Yoga { [TestFixture] - public class CSSLayoutAbsolutePositionTest + public class YGAbsolutePositionTest { [Test] public void Test_absolute_layout_width_height_start_top() diff --git a/csharp/tests/Facebook.Yoga/CSSLayoutAlignContentTest.cs b/csharp/tests/Facebook.Yoga/YGAlignContentTest.cs similarity index 99% rename from csharp/tests/Facebook.Yoga/CSSLayoutAlignContentTest.cs rename to csharp/tests/Facebook.Yoga/YGAlignContentTest.cs index 2fd26b95..598b1dd7 100644 --- a/csharp/tests/Facebook.Yoga/CSSLayoutAlignContentTest.cs +++ b/csharp/tests/Facebook.Yoga/YGAlignContentTest.cs @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutAlignContentTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGAlignContentTest.html using System; using NUnit.Framework; @@ -15,7 +15,7 @@ using NUnit.Framework; namespace Facebook.Yoga { [TestFixture] - public class CSSLayoutAlignContentTest + public class YGAlignContentTest { [Test] public void Test_align_content_flex_start() diff --git a/csharp/tests/Facebook.Yoga/CSSLayoutAlignItemsTest.cs b/csharp/tests/Facebook.Yoga/YGAlignItemsTest.cs similarity index 97% rename from csharp/tests/Facebook.Yoga/CSSLayoutAlignItemsTest.cs rename to csharp/tests/Facebook.Yoga/YGAlignItemsTest.cs index 54101754..33b4c0d2 100644 --- a/csharp/tests/Facebook.Yoga/CSSLayoutAlignItemsTest.cs +++ b/csharp/tests/Facebook.Yoga/YGAlignItemsTest.cs @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutAlignItemsTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGAlignItemsTest.html using System; using NUnit.Framework; @@ -15,7 +15,7 @@ using NUnit.Framework; namespace Facebook.Yoga { [TestFixture] - public class CSSLayoutAlignItemsTest + public class YGAlignItemsTest { [Test] public void Test_align_items_stretch() diff --git a/csharp/tests/Facebook.Yoga/CSSLayoutAlignSelfTest.cs b/csharp/tests/Facebook.Yoga/YGAlignSelfTest.cs similarity index 98% rename from csharp/tests/Facebook.Yoga/CSSLayoutAlignSelfTest.cs rename to csharp/tests/Facebook.Yoga/YGAlignSelfTest.cs index 00a8246f..c564cf93 100644 --- a/csharp/tests/Facebook.Yoga/CSSLayoutAlignSelfTest.cs +++ b/csharp/tests/Facebook.Yoga/YGAlignSelfTest.cs @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutAlignSelfTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGAlignSelfTest.html using System; using NUnit.Framework; @@ -15,7 +15,7 @@ using NUnit.Framework; namespace Facebook.Yoga { [TestFixture] - public class CSSLayoutAlignSelfTest + public class YGAlignSelfTest { [Test] public void Test_align_self_center() diff --git a/csharp/tests/Facebook.Yoga/CSSLayoutBorderTest.cs b/csharp/tests/Facebook.Yoga/YGBorderTest.cs similarity index 98% rename from csharp/tests/Facebook.Yoga/CSSLayoutBorderTest.cs rename to csharp/tests/Facebook.Yoga/YGBorderTest.cs index 1182b777..613fe115 100644 --- a/csharp/tests/Facebook.Yoga/CSSLayoutBorderTest.cs +++ b/csharp/tests/Facebook.Yoga/YGBorderTest.cs @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutBorderTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGBorderTest.html using System; using NUnit.Framework; @@ -15,7 +15,7 @@ using NUnit.Framework; namespace Facebook.Yoga { [TestFixture] - public class CSSLayoutBorderTest + public class YGBorderTest { [Test] public void Test_border_no_size() diff --git a/csharp/tests/Facebook.Yoga/CSSLayoutFlexDirectionTest.cs b/csharp/tests/Facebook.Yoga/YGFlexDirectionTest.cs similarity index 99% rename from csharp/tests/Facebook.Yoga/CSSLayoutFlexDirectionTest.cs rename to csharp/tests/Facebook.Yoga/YGFlexDirectionTest.cs index abd749b7..10a1257a 100644 --- a/csharp/tests/Facebook.Yoga/CSSLayoutFlexDirectionTest.cs +++ b/csharp/tests/Facebook.Yoga/YGFlexDirectionTest.cs @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutFlexDirectionTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGFlexDirectionTest.html using System; using NUnit.Framework; @@ -15,7 +15,7 @@ using NUnit.Framework; namespace Facebook.Yoga { [TestFixture] - public class CSSLayoutFlexDirectionTest + public class YGFlexDirectionTest { [Test] public void Test_flex_direction_column_no_height() diff --git a/csharp/tests/Facebook.Yoga/CSSLayoutFlexTest.cs b/csharp/tests/Facebook.Yoga/YGFlexTest.cs similarity index 99% rename from csharp/tests/Facebook.Yoga/CSSLayoutFlexTest.cs rename to csharp/tests/Facebook.Yoga/YGFlexTest.cs index 69ee52a1..05036680 100644 --- a/csharp/tests/Facebook.Yoga/CSSLayoutFlexTest.cs +++ b/csharp/tests/Facebook.Yoga/YGFlexTest.cs @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutFlexTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGFlexTest.html using System; using NUnit.Framework; @@ -15,7 +15,7 @@ using NUnit.Framework; namespace Facebook.Yoga { [TestFixture] - public class CSSLayoutFlexTest + public class YGFlexTest { [Test] public void Test_flex_basis_flex_grow_column() diff --git a/csharp/tests/Facebook.Yoga/CSSLayoutFlexWrapTest.cs b/csharp/tests/Facebook.Yoga/YGFlexWrapTest.cs similarity index 99% rename from csharp/tests/Facebook.Yoga/CSSLayoutFlexWrapTest.cs rename to csharp/tests/Facebook.Yoga/YGFlexWrapTest.cs index bf8c4ac8..d5c88f7f 100644 --- a/csharp/tests/Facebook.Yoga/CSSLayoutFlexWrapTest.cs +++ b/csharp/tests/Facebook.Yoga/YGFlexWrapTest.cs @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutFlexWrapTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGFlexWrapTest.html using System; using NUnit.Framework; @@ -15,7 +15,7 @@ using NUnit.Framework; namespace Facebook.Yoga { [TestFixture] - public class CSSLayoutFlexWrapTest + public class YGFlexWrapTest { [Test] public void Test_wrap_column() diff --git a/csharp/tests/Facebook.Yoga/CSSLayoutJustifyContentTest.cs b/csharp/tests/Facebook.Yoga/YGJustifyContentTest.cs similarity index 99% rename from csharp/tests/Facebook.Yoga/CSSLayoutJustifyContentTest.cs rename to csharp/tests/Facebook.Yoga/YGJustifyContentTest.cs index 86d8d50f..7c8bb4d1 100644 --- a/csharp/tests/Facebook.Yoga/CSSLayoutJustifyContentTest.cs +++ b/csharp/tests/Facebook.Yoga/YGJustifyContentTest.cs @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutJustifyContentTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGJustifyContentTest.html using System; using NUnit.Framework; @@ -15,7 +15,7 @@ using NUnit.Framework; namespace Facebook.Yoga { [TestFixture] - public class CSSLayoutJustifyContentTest + public class YGJustifyContentTest { [Test] public void Test_justify_content_row_flex_start() diff --git a/csharp/tests/Facebook.Yoga/CSSLayoutMarginTest.cs b/csharp/tests/Facebook.Yoga/YGMarginTest.cs similarity index 99% rename from csharp/tests/Facebook.Yoga/CSSLayoutMarginTest.cs rename to csharp/tests/Facebook.Yoga/YGMarginTest.cs index c2eb8123..fa9ddee2 100644 --- a/csharp/tests/Facebook.Yoga/CSSLayoutMarginTest.cs +++ b/csharp/tests/Facebook.Yoga/YGMarginTest.cs @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutMarginTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGMarginTest.html using System; using NUnit.Framework; @@ -15,7 +15,7 @@ using NUnit.Framework; namespace Facebook.Yoga { [TestFixture] - public class CSSLayoutMarginTest + public class YGMarginTest { [Test] public void Test_margin_start() diff --git a/csharp/tests/Facebook.Yoga/CSSLayoutMinMaxDimensionTest.cs b/csharp/tests/Facebook.Yoga/YGMinMaxDimensionTest.cs similarity index 99% rename from csharp/tests/Facebook.Yoga/CSSLayoutMinMaxDimensionTest.cs rename to csharp/tests/Facebook.Yoga/YGMinMaxDimensionTest.cs index 6d8b7ba9..04413d41 100644 --- a/csharp/tests/Facebook.Yoga/CSSLayoutMinMaxDimensionTest.cs +++ b/csharp/tests/Facebook.Yoga/YGMinMaxDimensionTest.cs @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutMinMaxDimensionTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGMinMaxDimensionTest.html using System; using NUnit.Framework; @@ -15,7 +15,7 @@ using NUnit.Framework; namespace Facebook.Yoga { [TestFixture] - public class CSSLayoutMinMaxDimensionTest + public class YGMinMaxDimensionTest { [Test] public void Test_max_width() diff --git a/csharp/tests/Facebook.Yoga/CSSLayoutPaddingTest.cs b/csharp/tests/Facebook.Yoga/YGPaddingTest.cs similarity index 98% rename from csharp/tests/Facebook.Yoga/CSSLayoutPaddingTest.cs rename to csharp/tests/Facebook.Yoga/YGPaddingTest.cs index 47f04155..7fde4e5e 100644 --- a/csharp/tests/Facebook.Yoga/CSSLayoutPaddingTest.cs +++ b/csharp/tests/Facebook.Yoga/YGPaddingTest.cs @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutPaddingTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGPaddingTest.html using System; using NUnit.Framework; @@ -15,7 +15,7 @@ using NUnit.Framework; namespace Facebook.Yoga { [TestFixture] - public class CSSLayoutPaddingTest + public class YGPaddingTest { [Test] public void Test_padding_no_size() diff --git a/csharp/tests/Facebook.Yoga/CSSLayoutRoundingTest.cs b/csharp/tests/Facebook.Yoga/YGRoundingTest.cs similarity index 99% rename from csharp/tests/Facebook.Yoga/CSSLayoutRoundingTest.cs rename to csharp/tests/Facebook.Yoga/YGRoundingTest.cs index 570b00be..62da0f0c 100644 --- a/csharp/tests/Facebook.Yoga/CSSLayoutRoundingTest.cs +++ b/csharp/tests/Facebook.Yoga/YGRoundingTest.cs @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutRoundingTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGRoundingTest.html using System; using NUnit.Framework; @@ -15,7 +15,7 @@ using NUnit.Framework; namespace Facebook.Yoga { [TestFixture] - public class CSSLayoutRoundingTest + public class YGRoundingTest { [Test] public void Test_rounding_flex_basis_flex_grow_row_width_of_100() diff --git a/gentest/fixtures/CSSLayoutAbsolutePositionTest.html b/gentest/fixtures/YGAbsolutePositionTest.html similarity index 100% rename from gentest/fixtures/CSSLayoutAbsolutePositionTest.html rename to gentest/fixtures/YGAbsolutePositionTest.html diff --git a/gentest/fixtures/CSSLayoutAlignContentTest.html b/gentest/fixtures/YGAlignContentTest.html similarity index 100% rename from gentest/fixtures/CSSLayoutAlignContentTest.html rename to gentest/fixtures/YGAlignContentTest.html diff --git a/gentest/fixtures/CSSLayoutAlignItemsTest.html b/gentest/fixtures/YGAlignItemsTest.html similarity index 100% rename from gentest/fixtures/CSSLayoutAlignItemsTest.html rename to gentest/fixtures/YGAlignItemsTest.html diff --git a/gentest/fixtures/CSSLayoutAlignSelfTest.html b/gentest/fixtures/YGAlignSelfTest.html similarity index 100% rename from gentest/fixtures/CSSLayoutAlignSelfTest.html rename to gentest/fixtures/YGAlignSelfTest.html diff --git a/gentest/fixtures/CSSLayoutBorderTest.html b/gentest/fixtures/YGBorderTest.html similarity index 100% rename from gentest/fixtures/CSSLayoutBorderTest.html rename to gentest/fixtures/YGBorderTest.html diff --git a/gentest/fixtures/CSSLayoutFlexDirectionTest.html b/gentest/fixtures/YGFlexDirectionTest.html similarity index 100% rename from gentest/fixtures/CSSLayoutFlexDirectionTest.html rename to gentest/fixtures/YGFlexDirectionTest.html diff --git a/gentest/fixtures/CSSLayoutFlexTest.html b/gentest/fixtures/YGFlexTest.html similarity index 100% rename from gentest/fixtures/CSSLayoutFlexTest.html rename to gentest/fixtures/YGFlexTest.html diff --git a/gentest/fixtures/CSSLayoutFlexWrapTest.html b/gentest/fixtures/YGFlexWrapTest.html similarity index 100% rename from gentest/fixtures/CSSLayoutFlexWrapTest.html rename to gentest/fixtures/YGFlexWrapTest.html diff --git a/gentest/fixtures/CSSLayoutJustifyContentTest.html b/gentest/fixtures/YGJustifyContentTest.html similarity index 100% rename from gentest/fixtures/CSSLayoutJustifyContentTest.html rename to gentest/fixtures/YGJustifyContentTest.html diff --git a/gentest/fixtures/CSSLayoutMarginTest.html b/gentest/fixtures/YGMarginTest.html similarity index 100% rename from gentest/fixtures/CSSLayoutMarginTest.html rename to gentest/fixtures/YGMarginTest.html diff --git a/gentest/fixtures/CSSLayoutMinMaxDimensionTest.html b/gentest/fixtures/YGMinMaxDimensionTest.html similarity index 100% rename from gentest/fixtures/CSSLayoutMinMaxDimensionTest.html rename to gentest/fixtures/YGMinMaxDimensionTest.html diff --git a/gentest/fixtures/CSSLayoutPaddingTest.html b/gentest/fixtures/YGPaddingTest.html similarity index 100% rename from gentest/fixtures/CSSLayoutPaddingTest.html rename to gentest/fixtures/YGPaddingTest.html diff --git a/gentest/fixtures/CSSLayoutRoundingTest.html b/gentest/fixtures/YGRoundingTest.html similarity index 100% rename from gentest/fixtures/CSSLayoutRoundingTest.html rename to gentest/fixtures/YGRoundingTest.html diff --git a/gentest/gentest-cpp.js b/gentest/gentest-cpp.js index ea49d995..f4db36ed 100644 --- a/gentest/gentest-cpp.js +++ b/gentest/gentest-cpp.js @@ -108,115 +108,115 @@ CPPEmitter.prototype = Object.create(Emitter.prototype, { YGUndefined:{value:'YGUndefined'}, - CSSNodeCalculateLayout:{value:function(node, dir) { + YGNodeCalculateLayout:{value:function(node, dir) { this.push('YGNodeCalculateLayout(' + node + ', YGUndefined, YGUndefined, ' + dir + ');'); }}, - CSSNodeInsertChild:{value:function(parentName, nodeName, index) { + YGNodeInsertChild:{value:function(parentName, nodeName, index) { this.push('YGNodeInsertChild(' + parentName + ', ' + nodeName + ', ' + index + ');'); }}, - CSSNodeLayoutGetLeft:{value:function(nodeName) { + YGNodeLayoutGetLeft:{value:function(nodeName) { return 'YGNodeLayoutGetLeft(' + nodeName + ')'; }}, - CSSNodeLayoutGetTop:{value:function(nodeName) { + YGNodeLayoutGetTop:{value:function(nodeName) { return 'YGNodeLayoutGetTop(' + nodeName + ')'; }}, - CSSNodeLayoutGetWidth:{value:function(nodeName) { + YGNodeLayoutGetWidth:{value:function(nodeName) { return 'YGNodeLayoutGetWidth(' + nodeName + ')'; }}, - CSSNodeLayoutGetHeight:{value:function(nodeName) { + YGNodeLayoutGetHeight:{value:function(nodeName) { return 'YGNodeLayoutGetHeight(' + nodeName + ')'; }}, - CSSNodeStyleSetAlignContent:{value:function(nodeName, value) { + YGNodeStyleSetAlignContent:{value:function(nodeName, value) { this.push('YGNodeStyleSetAlignContent(' + nodeName + ', ' + value + ');'); }}, - CSSNodeStyleSetAlignItems:{value:function(nodeName, value) { + YGNodeStyleSetAlignItems:{value:function(nodeName, value) { this.push('YGNodeStyleSetAlignItems(' + nodeName + ', ' + value + ');'); }}, - CSSNodeStyleSetAlignSelf:{value:function(nodeName, value) { + YGNodeStyleSetAlignSelf:{value:function(nodeName, value) { this.push('YGNodeStyleSetAlignSelf(' + nodeName + ', ' + value + ');'); }}, - CSSNodeStyleSetBorder:{value:function(nodeName, edge, value) { + YGNodeStyleSetBorder:{value:function(nodeName, edge, value) { this.push('YGNodeStyleSetBorder(' + nodeName + ', ' + edge + ', ' + toFloatString(value) + ');'); }}, - CSSNodeStyleSetDirection:{value:function(nodeName, value) { + YGNodeStyleSetDirection:{value:function(nodeName, value) { this.push('YGNodeStyleSetDirection(' + nodeName + ', ' + value + ');'); }}, - CSSNodeStyleSetFlexBasis:{value:function(nodeName, value) { + YGNodeStyleSetFlexBasis:{value:function(nodeName, value) { this.push('YGNodeStyleSetFlexBasis(' + nodeName + ', ' + toFloatString(value) + ');'); }}, - CSSNodeStyleSetFlexDirection:{value:function(nodeName, value) { + YGNodeStyleSetFlexDirection:{value:function(nodeName, value) { this.push('YGNodeStyleSetFlexDirection(' + nodeName + ', ' + value + ');'); }}, - CSSNodeStyleSetFlexGrow:{value:function(nodeName, value) { + YGNodeStyleSetFlexGrow:{value:function(nodeName, value) { this.push('YGNodeStyleSetFlexGrow(' + nodeName + ', ' + toFloatString(value) + ');'); }}, - CSSNodeStyleSetFlexShrink:{value:function(nodeName, value) { + YGNodeStyleSetFlexShrink:{value:function(nodeName, value) { this.push('YGNodeStyleSetFlexShrink(' + nodeName + ', ' + toFloatString(value) + ');'); }}, - CSSNodeStyleSetFlexWrap:{value:function(nodeName, value) { + YGNodeStyleSetFlexWrap:{value:function(nodeName, value) { this.push('YGNodeStyleSetFlexWrap(' + nodeName + ', ' + value + ');'); }}, - CSSNodeStyleSetHeight:{value:function(nodeName, value) { + YGNodeStyleSetHeight:{value:function(nodeName, value) { this.push('YGNodeStyleSetHeight(' + nodeName + ', ' + toFloatString(value) + ');'); }}, - CSSNodeStyleSetJustifyContent:{value:function(nodeName, value) { + YGNodeStyleSetJustifyContent:{value:function(nodeName, value) { this.push('YGNodeStyleSetJustifyContent(' + nodeName + ', ' + value + ');'); }}, - CSSNodeStyleSetMargin:{value:function(nodeName, edge, value) { + YGNodeStyleSetMargin:{value:function(nodeName, edge, value) { this.push('YGNodeStyleSetMargin(' + nodeName + ', ' + edge + ', ' + toFloatString(value) + ');'); }}, - CSSNodeStyleSetMaxHeight:{value:function(nodeName, value) { + YGNodeStyleSetMaxHeight:{value:function(nodeName, value) { this.push('YGNodeStyleSetMaxHeight(' + nodeName + ', ' + toFloatString(value) + ');'); }}, - CSSNodeStyleSetMaxWidth:{value:function(nodeName, value) { + YGNodeStyleSetMaxWidth:{value:function(nodeName, value) { this.push('YGNodeStyleSetMaxWidth(' + nodeName + ', ' + toFloatString(value) + ');'); }}, - CSSNodeStyleSetMinHeight:{value:function(nodeName, value) { + YGNodeStyleSetMinHeight:{value:function(nodeName, value) { this.push('YGNodeStyleSetMinHeight(' + nodeName + ', ' + toFloatString(value) + ');'); }}, - CSSNodeStyleSetMinWidth:{value:function(nodeName, value) { + YGNodeStyleSetMinWidth:{value:function(nodeName, value) { this.push('YGNodeStyleSetMinWidth(' + nodeName + ', ' + toFloatString(value) + ');'); }}, - CSSNodeStyleSetOverflow:{value:function(nodeName, value) { + YGNodeStyleSetOverflow:{value:function(nodeName, value) { this.push('YGNodeStyleSetOverflow(' + nodeName + ', ' + value + ');'); }}, - CSSNodeStyleSetPadding:{value:function(nodeName, edge, value) { + YGNodeStyleSetPadding:{value:function(nodeName, edge, value) { this.push('YGNodeStyleSetPadding(' + nodeName + ', ' + edge + ', ' + toFloatString(value) + ');'); }}, - CSSNodeStyleSetPosition:{value:function(nodeName, edge, value) { + YGNodeStyleSetPosition:{value:function(nodeName, edge, value) { this.push('YGNodeStyleSetPosition(' + nodeName + ', ' + edge + ', ' + toFloatString(value) + ');'); }}, - CSSNodeStyleSetPositionType:{value:function(nodeName, value) { + YGNodeStyleSetPositionType:{value:function(nodeName, value) { this.push('YGNodeStyleSetPositionType(' + nodeName + ', ' + value + ');'); }}, - CSSNodeStyleSetWidth:{value:function(nodeName, value) { + YGNodeStyleSetWidth:{value:function(nodeName, value) { this.push('YGNodeStyleSetWidth(' + nodeName + ', ' + toFloatString(value) + ');'); }}, }); diff --git a/gentest/gentest-cs.js b/gentest/gentest-cs.js index 32a36173..0dbbb498 100644 --- a/gentest/gentest-cs.js +++ b/gentest/gentest-cs.js @@ -117,116 +117,116 @@ CSEmitter.prototype = Object.create(Emitter.prototype, { YGWrapNoWrap:{value:'YogaWrap.NoWrap'}, YGWrapWrap:{value:'YogaWrap.Wrap'}, - CSSNodeCalculateLayout:{value:function(node, dir) { + YGNodeCalculateLayout:{value:function(node, dir) { this.push(node + '.StyleDirection = ' + dir + ';'); this.push(node + '.CalculateLayout();'); }}, - CSSNodeInsertChild:{value:function(parentName, nodeName, index) { + YGNodeInsertChild:{value:function(parentName, nodeName, index) { this.push(parentName + '.Insert(' + index + ', ' + nodeName + ');'); }}, - CSSNodeLayoutGetLeft:{value:function(nodeName) { + YGNodeLayoutGetLeft:{value:function(nodeName) { return nodeName + '.LayoutX'; }}, - CSSNodeLayoutGetTop:{value:function(nodeName) { + YGNodeLayoutGetTop:{value:function(nodeName) { return nodeName + '.LayoutY'; }}, - CSSNodeLayoutGetWidth:{value:function(nodeName) { + YGNodeLayoutGetWidth:{value:function(nodeName) { return nodeName + '.LayoutWidth'; }}, - CSSNodeLayoutGetHeight:{value:function(nodeName) { + YGNodeLayoutGetHeight:{value:function(nodeName) { return nodeName + '.LayoutHeight'; }}, - CSSNodeStyleSetAlignContent:{value:function(nodeName, value) { + YGNodeStyleSetAlignContent:{value:function(nodeName, value) { this.push(nodeName + '.AlignContent = ' + value + ';'); }}, - CSSNodeStyleSetAlignItems:{value:function(nodeName, value) { + YGNodeStyleSetAlignItems:{value:function(nodeName, value) { this.push(nodeName + '.AlignItems = ' + value + ';'); }}, - CSSNodeStyleSetAlignSelf:{value:function(nodeName, value) { + YGNodeStyleSetAlignSelf:{value:function(nodeName, value) { this.push(nodeName + '.AlignSelf = ' + value + ';'); }}, - CSSNodeStyleSetBorder:{value:function(nodeName, edge, value) { + YGNodeStyleSetBorder:{value:function(nodeName, edge, value) { this.push(nodeName + '.SetBorder(' + edge + ', ' + value + 'f);'); }}, - CSSNodeStyleSetDirection:{value:function(nodeName, value) { + YGNodeStyleSetDirection:{value:function(nodeName, value) { this.push(nodeName + '.StyleDirection = ' + value + ';'); }}, - CSSNodeStyleSetFlexBasis:{value:function(nodeName, value) { + YGNodeStyleSetFlexBasis:{value:function(nodeName, value) { this.push(nodeName + '.FlexBasis = ' + value + 'f;'); }}, - CSSNodeStyleSetFlexDirection:{value:function(nodeName, value) { + YGNodeStyleSetFlexDirection:{value:function(nodeName, value) { this.push(nodeName + '.FlexDirection = ' + value + ';'); }}, - CSSNodeStyleSetFlexGrow:{value:function(nodeName, value) { + YGNodeStyleSetFlexGrow:{value:function(nodeName, value) { this.push(nodeName + '.FlexGrow = ' + value + 'f;'); }}, - CSSNodeStyleSetFlexShrink:{value:function(nodeName, value) { + YGNodeStyleSetFlexShrink:{value:function(nodeName, value) { this.push(nodeName + '.FlexShrink = ' + value + 'f;'); }}, - CSSNodeStyleSetFlexWrap:{value:function(nodeName, value) { + YGNodeStyleSetFlexWrap:{value:function(nodeName, value) { this.push(nodeName + '.Wrap = ' + value + ';'); }}, - CSSNodeStyleSetHeight:{value:function(nodeName, value) { + YGNodeStyleSetHeight:{value:function(nodeName, value) { this.push(nodeName + '.Height = ' + value + 'f;'); }}, - CSSNodeStyleSetJustifyContent:{value:function(nodeName, value) { + YGNodeStyleSetJustifyContent:{value:function(nodeName, value) { this.push(nodeName + '.JustifyContent = ' + value + ';'); }}, - CSSNodeStyleSetMargin:{value:function(nodeName, edge, value) { + YGNodeStyleSetMargin:{value:function(nodeName, edge, value) { this.push(nodeName + '.SetMargin(' + edge + ', ' + value + 'f);'); }}, - CSSNodeStyleSetMaxHeight:{value:function(nodeName, value) { + YGNodeStyleSetMaxHeight:{value:function(nodeName, value) { this.push(nodeName + '.MaxHeight = ' + value + 'f;'); }}, - CSSNodeStyleSetMaxWidth:{value:function(nodeName, value) { + YGNodeStyleSetMaxWidth:{value:function(nodeName, value) { this.push(nodeName + '.MaxWidth = ' + value + 'f;'); }}, - CSSNodeStyleSetMinHeight:{value:function(nodeName, value) { + YGNodeStyleSetMinHeight:{value:function(nodeName, value) { this.push(nodeName + '.MinHeight = ' + value + 'f;'); }}, - CSSNodeStyleSetMinWidth:{value:function(nodeName, value) { + YGNodeStyleSetMinWidth:{value:function(nodeName, value) { this.push(nodeName + '.MinWidth = ' + value + 'f;'); }}, - CSSNodeStyleSetOverflow:{value:function(nodeName, value) { + YGNodeStyleSetOverflow:{value:function(nodeName, value) { this.push(nodeName + '.Overflow = ' + value + ';'); }}, - CSSNodeStyleSetPadding:{value:function(nodeName, edge, value) { + YGNodeStyleSetPadding:{value:function(nodeName, edge, value) { this.push(nodeName + '.SetPadding(' + edge + ', ' + value + 'f);'); }}, - CSSNodeStyleSetPosition:{value:function(nodeName, edge, value) { + YGNodeStyleSetPosition:{value:function(nodeName, edge, value) { this.push(nodeName + '.SetPosition(' + edge + ', ' + value + 'f);'); }}, - CSSNodeStyleSetPositionType:{value:function(nodeName, value) { + YGNodeStyleSetPositionType:{value:function(nodeName, value) { this.push(nodeName + '.PositionType = ' + value + ';'); }}, - CSSNodeStyleSetWidth:{value:function(nodeName, value) { + YGNodeStyleSetWidth:{value:function(nodeName, value) { this.push(nodeName + '.Width = ' + value + 'f;'); }}, }); diff --git a/gentest/gentest-java.js b/gentest/gentest-java.js index 48b2b82c..6dc8f5b8 100644 --- a/gentest/gentest-java.js +++ b/gentest/gentest-java.js @@ -34,7 +34,7 @@ JavaEmitter.prototype = Object.create(Emitter.prototype, { '', 'import static org.junit.Assert.assertEquals;', '', - 'public class CSSNodeLayoutTest {', + 'public class YogaTest {', ]); this.pushIndent(); }}, @@ -122,116 +122,116 @@ JavaEmitter.prototype = Object.create(Emitter.prototype, { YGWrapNoWrap:{value:'YogaWrap.NO_WRAP'}, YGWrapWrap:{value:'YogaWrap.WRAP'}, - CSSNodeCalculateLayout:{value:function(node, dir) { + YGNodeCalculateLayout:{value:function(node, dir) { this.push(node + '.setDirection(' + dir + ');'); this.push(node + '.calculateLayout();'); }}, - CSSNodeInsertChild:{value:function(parentName, nodeName, index) { + YGNodeInsertChild:{value:function(parentName, nodeName, index) { this.push(parentName + '.addChildAt(' + nodeName + ', ' + index + ');'); }}, - CSSNodeLayoutGetLeft:{value:function(nodeName) { + YGNodeLayoutGetLeft:{value:function(nodeName) { return nodeName + '.getLayoutX()'; }}, - CSSNodeLayoutGetTop:{value:function(nodeName) { + YGNodeLayoutGetTop:{value:function(nodeName) { return nodeName + '.getLayoutY()'; }}, - CSSNodeLayoutGetWidth:{value:function(nodeName) { + YGNodeLayoutGetWidth:{value:function(nodeName) { return nodeName + '.getLayoutWidth()'; }}, - CSSNodeLayoutGetHeight:{value:function(nodeName) { + YGNodeLayoutGetHeight:{value:function(nodeName) { return nodeName + '.getLayoutHeight()'; }}, - CSSNodeStyleSetAlignContent:{value:function(nodeName, value) { + YGNodeStyleSetAlignContent:{value:function(nodeName, value) { this.push(nodeName + '.setAlignContent(' + value + ');'); }}, - CSSNodeStyleSetAlignItems:{value:function(nodeName, value) { + YGNodeStyleSetAlignItems:{value:function(nodeName, value) { this.push(nodeName + '.setAlignItems(' + value + ');'); }}, - CSSNodeStyleSetAlignSelf:{value:function(nodeName, value) { + YGNodeStyleSetAlignSelf:{value:function(nodeName, value) { this.push(nodeName + '.setAlignSelf(' + value + ');'); }}, - CSSNodeStyleSetBorder:{value:function(nodeName, edge, value) { + YGNodeStyleSetBorder:{value:function(nodeName, edge, value) { this.push(nodeName + '.setBorder(' + edge + ', ' + value + 'f);'); }}, - CSSNodeStyleSetDirection:{value:function(nodeName, value) { + YGNodeStyleSetDirection:{value:function(nodeName, value) { this.push(nodeName + '.setDirection(' + value + ');'); }}, - CSSNodeStyleSetFlexBasis:{value:function(nodeName, value) { + YGNodeStyleSetFlexBasis:{value:function(nodeName, value) { this.push(nodeName + '.setFlexBasis(' + value + 'f);'); }}, - CSSNodeStyleSetFlexDirection:{value:function(nodeName, value) { + YGNodeStyleSetFlexDirection:{value:function(nodeName, value) { this.push(nodeName + '.setFlexDirection(' + value + ');'); }}, - CSSNodeStyleSetFlexGrow:{value:function(nodeName, value) { + YGNodeStyleSetFlexGrow:{value:function(nodeName, value) { this.push(nodeName + '.setFlexGrow(' + value + 'f);'); }}, - CSSNodeStyleSetFlexShrink:{value:function(nodeName, value) { + YGNodeStyleSetFlexShrink:{value:function(nodeName, value) { this.push(nodeName + '.setFlexShrink(' + value + 'f);'); }}, - CSSNodeStyleSetFlexWrap:{value:function(nodeName, value) { + YGNodeStyleSetFlexWrap:{value:function(nodeName, value) { this.push(nodeName + '.setWrap(' + value + ');'); }}, - CSSNodeStyleSetHeight:{value:function(nodeName, value) { + YGNodeStyleSetHeight:{value:function(nodeName, value) { this.push(nodeName + '.setHeight(' + value + 'f);'); }}, - CSSNodeStyleSetJustifyContent:{value:function(nodeName, value) { + YGNodeStyleSetJustifyContent:{value:function(nodeName, value) { this.push(nodeName + '.setJustifyContent(' + value + ');'); }}, - CSSNodeStyleSetMargin:{value:function(nodeName, edge, value) { + YGNodeStyleSetMargin:{value:function(nodeName, edge, value) { this.push(nodeName + '.setMargin(' + edge + ', ' + value + 'f);'); }}, - CSSNodeStyleSetMaxHeight:{value:function(nodeName, value) { + YGNodeStyleSetMaxHeight:{value:function(nodeName, value) { this.push(nodeName + '.setMaxHeight(' + value + 'f);'); }}, - CSSNodeStyleSetMaxWidth:{value:function(nodeName, value) { + YGNodeStyleSetMaxWidth:{value:function(nodeName, value) { this.push(nodeName + '.setMaxWidth(' + value + 'f);'); }}, - CSSNodeStyleSetMinHeight:{value:function(nodeName, value) { + YGNodeStyleSetMinHeight:{value:function(nodeName, value) { this.push(nodeName + '.setMinHeight(' + value + 'f);'); }}, - CSSNodeStyleSetMinWidth:{value:function(nodeName, value) { + YGNodeStyleSetMinWidth:{value:function(nodeName, value) { this.push(nodeName + '.setMinWidth(' + value + 'f);'); }}, - CSSNodeStyleSetOverflow:{value:function(nodeName, value) { + YGNodeStyleSetOverflow:{value:function(nodeName, value) { this.push(nodeName + '.setOverflow(' + value + ');'); }}, - CSSNodeStyleSetPadding:{value:function(nodeName, edge, value) { + YGNodeStyleSetPadding:{value:function(nodeName, edge, value) { this.push(nodeName + '.setPadding(' + edge + ', ' + value + ');'); }}, - CSSNodeStyleSetPosition:{value:function(nodeName, edge, value) { + YGNodeStyleSetPosition:{value:function(nodeName, edge, value) { this.push(nodeName + '.setPosition(' + edge + ', ' + value + 'f);'); }}, - CSSNodeStyleSetPositionType:{value:function(nodeName, value) { + YGNodeStyleSetPositionType:{value:function(nodeName, value) { this.push(nodeName + '.setPositionType(' + value + ');'); }}, - CSSNodeStyleSetWidth:{value:function(nodeName, value) { + YGNodeStyleSetWidth:{value:function(nodeName, value) { this.push(nodeName + '.setWidth(' + value + 'f);'); }}, }); diff --git a/gentest/gentest.js b/gentest/gentest.js index ed6fd6b9..196a8c1e 100755 --- a/gentest/gentest.js +++ b/gentest/gentest.js @@ -87,13 +87,13 @@ function printTest(e, LTRContainer, RTLContainer, genericContainer) { 'root', null); - e.CSSNodeCalculateLayout('root', e.YGDirectionLTR); + e.YGNodeCalculateLayout('root', e.YGDirectionLTR); e.push(''); assertTestTree(e, LTRLayoutTree[i], 'root', null); e.push(''); - e.CSSNodeCalculateLayout('root', e.YGDirectionRTL); + e.YGNodeCalculateLayout('root', e.YGDirectionRTL); e.push(''); assertTestTree(e, RTLLayoutTree[i], 'root', null); @@ -106,10 +106,10 @@ function printTest(e, LTRContainer, RTLContainer, genericContainer) { } function assertTestTree(e, node, nodeName, parentName) { - e.AssertEQ(node.left, e.CSSNodeLayoutGetLeft(nodeName)); - e.AssertEQ(node.top, e.CSSNodeLayoutGetTop(nodeName)); - e.AssertEQ(node.width, e.CSSNodeLayoutGetWidth(nodeName)); - e.AssertEQ(node.height, e.CSSNodeLayoutGetHeight(nodeName)); + e.AssertEQ(node.left, e.YGNodeLayoutGetLeft(nodeName)); + e.AssertEQ(node.top, e.YGNodeLayoutGetTop(nodeName)); + e.AssertEQ(node.width, e.YGNodeLayoutGetWidth(nodeName)); + e.AssertEQ(node.height, e.YGNodeLayoutGetHeight(nodeName)); for (var i = 0; i < node.children.length; i++) { e.push(''); @@ -159,147 +159,147 @@ function setupTestTree(e, parent, node, genericNode, nodeName, parentName, index if (node.style[style] !== getDefaultStyleValue(style)) { switch (style) { case 'direction': - e.CSSNodeStyleSetDirection(nodeName, directionValue(e, node.style[style])); + e.YGNodeStyleSetDirection(nodeName, directionValue(e, node.style[style])); break; case 'flex-direction': - e.CSSNodeStyleSetFlexDirection(nodeName, flexDirectionValue(e, node.style[style])); + e.YGNodeStyleSetFlexDirection(nodeName, flexDirectionValue(e, node.style[style])); break; case 'justify-content': - e.CSSNodeStyleSetJustifyContent(nodeName, justifyValue(e, node.style[style])); + e.YGNodeStyleSetJustifyContent(nodeName, justifyValue(e, node.style[style])); break; case 'align-content': - e.CSSNodeStyleSetAlignContent(nodeName, alignValue(e, node.style[style])); + e.YGNodeStyleSetAlignContent(nodeName, alignValue(e, node.style[style])); break; case 'align-items': - e.CSSNodeStyleSetAlignItems(nodeName, alignValue(e, node.style[style])); + e.YGNodeStyleSetAlignItems(nodeName, alignValue(e, node.style[style])); break; case 'align-self': if (!parent || node.style[style] !== parent.style['align-items']) { - e.CSSNodeStyleSetAlignSelf(nodeName, alignValue(e, node.style[style])); + e.YGNodeStyleSetAlignSelf(nodeName, alignValue(e, node.style[style])); } break; case 'position': - e.CSSNodeStyleSetPositionType(nodeName, positionValue(e, node.style[style])); + e.YGNodeStyleSetPositionType(nodeName, positionValue(e, node.style[style])); break; case 'flex-wrap': - e.CSSNodeStyleSetFlexWrap(nodeName, wrapValue(e, node.style[style])); + e.YGNodeStyleSetFlexWrap(nodeName, wrapValue(e, node.style[style])); break; case 'overflow': - e.CSSNodeStyleSetOverflow(nodeName, overflowValue(e, node.style[style])); + e.YGNodeStyleSetOverflow(nodeName, overflowValue(e, node.style[style])); break; case 'flex-grow': - e.CSSNodeStyleSetFlexGrow(nodeName, node.style[style]); + e.YGNodeStyleSetFlexGrow(nodeName, node.style[style]); break; case 'flex-shrink': - e.CSSNodeStyleSetFlexShrink(nodeName, node.style[style]); + e.YGNodeStyleSetFlexShrink(nodeName, node.style[style]); break; case 'flex-basis': - e.CSSNodeStyleSetFlexBasis(nodeName, pixelValue(e, node.style[style])); + e.YGNodeStyleSetFlexBasis(nodeName, pixelValue(e, node.style[style])); break; case 'left': if (genericNode.rawStyle.indexOf('start:') >= 0) { - e.CSSNodeStyleSetPosition(nodeName, e.YGEdgeStart, pixelValue(e, node.style[style])); + e.YGNodeStyleSetPosition(nodeName, e.YGEdgeStart, pixelValue(e, node.style[style])); } else { - e.CSSNodeStyleSetPosition(nodeName, e.YGEdgeLeft, pixelValue(e, node.style[style])); + e.YGNodeStyleSetPosition(nodeName, e.YGEdgeLeft, pixelValue(e, node.style[style])); } break; case 'top': - e.CSSNodeStyleSetPosition(nodeName, e.YGEdgeTop, pixelValue(e, node.style[style])); + e.YGNodeStyleSetPosition(nodeName, e.YGEdgeTop, pixelValue(e, node.style[style])); break; case 'right': if (genericNode.rawStyle.indexOf('end:') >= 0) { - e.CSSNodeStyleSetPosition(nodeName, e.YGEdgeEnd, pixelValue(e, node.style[style])); + e.YGNodeStyleSetPosition(nodeName, e.YGEdgeEnd, pixelValue(e, node.style[style])); } else { - e.CSSNodeStyleSetPosition(nodeName, e.YGEdgeRight, pixelValue(e, node.style[style])); + e.YGNodeStyleSetPosition(nodeName, e.YGEdgeRight, pixelValue(e, node.style[style])); } break; case 'bottom': - e.CSSNodeStyleSetPosition(nodeName, e.YGEdgeBottom, pixelValue(e, node.style[style])); + e.YGNodeStyleSetPosition(nodeName, e.YGEdgeBottom, pixelValue(e, node.style[style])); break; case 'margin-left': if (genericNode.rawStyle.indexOf('margin-start:') >= 0) { - e.CSSNodeStyleSetMargin(nodeName, e.YGEdgeStart, pixelValue(e, node.style[style])); + e.YGNodeStyleSetMargin(nodeName, e.YGEdgeStart, pixelValue(e, node.style[style])); } else { - e.CSSNodeStyleSetMargin(nodeName, e.YGEdgeLeft, pixelValue(e, node.style[style])); + e.YGNodeStyleSetMargin(nodeName, e.YGEdgeLeft, pixelValue(e, node.style[style])); } break; case 'margin-top': - e.CSSNodeStyleSetMargin(nodeName, e.YGEdgeTop, pixelValue(e, node.style[style])); + e.YGNodeStyleSetMargin(nodeName, e.YGEdgeTop, pixelValue(e, node.style[style])); break; case 'margin-right': if (genericNode.rawStyle.indexOf('margin-end:') >= 0) { - e.CSSNodeStyleSetMargin(nodeName, e.YGEdgeEnd, pixelValue(e, node.style[style])); + e.YGNodeStyleSetMargin(nodeName, e.YGEdgeEnd, pixelValue(e, node.style[style])); } else { - e.CSSNodeStyleSetMargin(nodeName, e.YGEdgeRight, pixelValue(e, node.style[style])); + e.YGNodeStyleSetMargin(nodeName, e.YGEdgeRight, pixelValue(e, node.style[style])); } break; case 'margin-bottom': - e.CSSNodeStyleSetMargin(nodeName, e.YGEdgeBottom, pixelValue(e, node.style[style])); + e.YGNodeStyleSetMargin(nodeName, e.YGEdgeBottom, pixelValue(e, node.style[style])); break; case 'padding-left': if (genericNode.rawStyle.indexOf('padding-start:') >= 0) { - e.CSSNodeStyleSetPadding(nodeName, e.YGEdgeStart, pixelValue(e, node.style[style])); + e.YGNodeStyleSetPadding(nodeName, e.YGEdgeStart, pixelValue(e, node.style[style])); } else { - e.CSSNodeStyleSetPadding(nodeName, e.YGEdgeLeft, pixelValue(e, node.style[style])); + e.YGNodeStyleSetPadding(nodeName, e.YGEdgeLeft, pixelValue(e, node.style[style])); } break; case 'padding-top': - e.CSSNodeStyleSetPadding(nodeName, e.YGEdgeTop, pixelValue(e, node.style[style])); + e.YGNodeStyleSetPadding(nodeName, e.YGEdgeTop, pixelValue(e, node.style[style])); break; case 'padding-right': if (genericNode.rawStyle.indexOf('padding-end:') >= 0) { - e.CSSNodeStyleSetPadding(nodeName, e.YGEdgeEnd, pixelValue(e, node.style[style])); + e.YGNodeStyleSetPadding(nodeName, e.YGEdgeEnd, pixelValue(e, node.style[style])); } else { - e.CSSNodeStyleSetPadding(nodeName, e.YGEdgeRight, pixelValue(e, node.style[style])); + e.YGNodeStyleSetPadding(nodeName, e.YGEdgeRight, pixelValue(e, node.style[style])); } break; case 'padding-bottom': - e.CSSNodeStyleSetPadding(nodeName, e.YGEdgeBottom, pixelValue(e, node.style[style])); + e.YGNodeStyleSetPadding(nodeName, e.YGEdgeBottom, pixelValue(e, node.style[style])); break; case 'border-left-width': if (genericNode.rawStyle.indexOf('border-start-width:') >= 0) { - e.CSSNodeStyleSetBorder(nodeName, e.YGEdgeStart, pixelValue(e, node.style[style])); + e.YGNodeStyleSetBorder(nodeName, e.YGEdgeStart, pixelValue(e, node.style[style])); } else { - e.CSSNodeStyleSetBorder(nodeName, e.YGEdgeLeft, pixelValue(e, node.style[style])); + e.YGNodeStyleSetBorder(nodeName, e.YGEdgeLeft, pixelValue(e, node.style[style])); } break; case 'border-top-width': - e.CSSNodeStyleSetBorder(nodeName, e.YGEdgeTop, pixelValue(e, node.style[style])); + e.YGNodeStyleSetBorder(nodeName, e.YGEdgeTop, pixelValue(e, node.style[style])); break; case 'border-right-width': if (genericNode.rawStyle.indexOf('border-end-width:') >= 0) { - e.CSSNodeStyleSetBorder(nodeName, e.YGEdgeEnd, pixelValue(e, node.style[style])); + e.YGNodeStyleSetBorder(nodeName, e.YGEdgeEnd, pixelValue(e, node.style[style])); } else { - e.CSSNodeStyleSetBorder(nodeName, e.YGEdgeRight, pixelValue(e, node.style[style])); + e.YGNodeStyleSetBorder(nodeName, e.YGEdgeRight, pixelValue(e, node.style[style])); } break; case 'border-bottom-width': - e.CSSNodeStyleSetBorder(nodeName, e.YGEdgeBottom, pixelValue(e, node.style[style])); + e.YGNodeStyleSetBorder(nodeName, e.YGEdgeBottom, pixelValue(e, node.style[style])); break; case 'width': - e.CSSNodeStyleSetWidth(nodeName, pixelValue(e, node.style[style])); + e.YGNodeStyleSetWidth(nodeName, pixelValue(e, node.style[style])); break; case 'min-width': - e.CSSNodeStyleSetMinWidth(nodeName, pixelValue(e, node.style[style])); + e.YGNodeStyleSetMinWidth(nodeName, pixelValue(e, node.style[style])); break; case 'max-width': - e.CSSNodeStyleSetMaxWidth(nodeName, pixelValue(e, node.style[style])); + e.YGNodeStyleSetMaxWidth(nodeName, pixelValue(e, node.style[style])); break; case 'height': - e.CSSNodeStyleSetHeight(nodeName, pixelValue(e, node.style[style])); + e.YGNodeStyleSetHeight(nodeName, pixelValue(e, node.style[style])); break; case 'min-height': - e.CSSNodeStyleSetMinHeight(nodeName, pixelValue(e, node.style[style])); + e.YGNodeStyleSetMinHeight(nodeName, pixelValue(e, node.style[style])); break; case 'max-height': - e.CSSNodeStyleSetMaxHeight(nodeName, pixelValue(e, node.style[style])); + e.YGNodeStyleSetMaxHeight(nodeName, pixelValue(e, node.style[style])); break; } } } if (parentName) { - e.CSSNodeInsertChild(parentName, nodeName, index); + e.YGNodeInsertChild(parentName, nodeName, index); } for (var i = 0; i < node.children.length; i++) { @@ -411,7 +411,7 @@ function calculateTree(root) { width: child.offsetWidth, height: child.offsetHeight, children: calculateTree(child), - style: getCSSLayoutStyle(child), + style: getYogaStyle(child), declaredStyle: child.style, rawStyle: child.getAttribute('style'), experiments: child.getAttribute('experiments') @@ -423,7 +423,7 @@ function calculateTree(root) { return rootLayout; } -function getCSSLayoutStyle(node) { +function getYogaStyle(node) { return [ 'direction', 'flex-direction', diff --git a/gentest/gentest.rb b/gentest/gentest.rb index 1d3300ac..88191ce0 100644 --- a/gentest/gentest.rb +++ b/gentest/gentest.rb @@ -41,7 +41,7 @@ Dir['fixtures/*.html'].each do |file| f.close f = File.open("../java/tests/com/facebook/csslayout/#{name}.java", 'w') - f.write eval(logs[1].message.sub(/^[^"]*/, '')).sub('CSSNodeLayoutTest', name) + f.write eval(logs[1].message.sub(/^[^"]*/, '')).sub('YogaTest', name) f.close f = File.open("../csharp/tests/Facebook.Yoga/#{name}.cs", 'w') diff --git a/java/tests/com/facebook/csslayout/CSSLayoutAbsolutePositionTest.java b/java/tests/com/facebook/csslayout/YGAbsolutePositionTest.java similarity index 98% rename from java/tests/com/facebook/csslayout/CSSLayoutAbsolutePositionTest.java rename to java/tests/com/facebook/csslayout/YGAbsolutePositionTest.java index c3ba26c7..0d135b84 100644 --- a/java/tests/com/facebook/csslayout/CSSLayoutAbsolutePositionTest.java +++ b/java/tests/com/facebook/csslayout/YGAbsolutePositionTest.java @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutAbsolutePositionTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGAbsolutePositionTest.html package com.facebook.csslayout; @@ -15,7 +15,7 @@ import org.junit.Test; import static org.junit.Assert.assertEquals; -public class CSSLayoutAbsolutePositionTest { +public class YGAbsolutePositionTest { @Test public void test_absolute_layout_width_height_start_top() { final CSSNode root = new CSSNode(); diff --git a/java/tests/com/facebook/csslayout/CSSLayoutAlignContentTest.java b/java/tests/com/facebook/csslayout/YGAlignContentTest.java similarity index 99% rename from java/tests/com/facebook/csslayout/CSSLayoutAlignContentTest.java rename to java/tests/com/facebook/csslayout/YGAlignContentTest.java index 0c81f46d..c60b0fef 100644 --- a/java/tests/com/facebook/csslayout/CSSLayoutAlignContentTest.java +++ b/java/tests/com/facebook/csslayout/YGAlignContentTest.java @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutAlignContentTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGAlignContentTest.html package com.facebook.csslayout; @@ -15,7 +15,7 @@ import org.junit.Test; import static org.junit.Assert.assertEquals; -public class CSSLayoutAlignContentTest { +public class YGAlignContentTest { @Test public void test_align_content_flex_start() { final CSSNode root = new CSSNode(); diff --git a/java/tests/com/facebook/csslayout/CSSLayoutAlignItemsTest.java b/java/tests/com/facebook/csslayout/YGAlignItemsTest.java similarity index 97% rename from java/tests/com/facebook/csslayout/CSSLayoutAlignItemsTest.java rename to java/tests/com/facebook/csslayout/YGAlignItemsTest.java index 4dcdcea4..df922b98 100644 --- a/java/tests/com/facebook/csslayout/CSSLayoutAlignItemsTest.java +++ b/java/tests/com/facebook/csslayout/YGAlignItemsTest.java @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutAlignItemsTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGAlignItemsTest.html package com.facebook.csslayout; @@ -15,7 +15,7 @@ import org.junit.Test; import static org.junit.Assert.assertEquals; -public class CSSLayoutAlignItemsTest { +public class YGAlignItemsTest { @Test public void test_align_items_stretch() { final CSSNode root = new CSSNode(); diff --git a/java/tests/com/facebook/csslayout/CSSLayoutAlignSelfTest.java b/java/tests/com/facebook/csslayout/YGAlignSelfTest.java similarity index 97% rename from java/tests/com/facebook/csslayout/CSSLayoutAlignSelfTest.java rename to java/tests/com/facebook/csslayout/YGAlignSelfTest.java index 3651e5b3..f5e3d0d5 100644 --- a/java/tests/com/facebook/csslayout/CSSLayoutAlignSelfTest.java +++ b/java/tests/com/facebook/csslayout/YGAlignSelfTest.java @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutAlignSelfTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGAlignSelfTest.html package com.facebook.csslayout; @@ -15,7 +15,7 @@ import org.junit.Test; import static org.junit.Assert.assertEquals; -public class CSSLayoutAlignSelfTest { +public class YGAlignSelfTest { @Test public void test_align_self_center() { final CSSNode root = new CSSNode(); diff --git a/java/tests/com/facebook/csslayout/CSSLayoutBorderTest.java b/java/tests/com/facebook/csslayout/YGBorderTest.java similarity index 98% rename from java/tests/com/facebook/csslayout/CSSLayoutBorderTest.java rename to java/tests/com/facebook/csslayout/YGBorderTest.java index 1e1ac2ca..8973ec93 100644 --- a/java/tests/com/facebook/csslayout/CSSLayoutBorderTest.java +++ b/java/tests/com/facebook/csslayout/YGBorderTest.java @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutBorderTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGBorderTest.html package com.facebook.csslayout; @@ -15,7 +15,7 @@ import org.junit.Test; import static org.junit.Assert.assertEquals; -public class CSSLayoutBorderTest { +public class YGBorderTest { @Test public void test_border_no_size() { final CSSNode root = new CSSNode(); diff --git a/java/tests/com/facebook/csslayout/CSSLayoutFlexDirectionTest.java b/java/tests/com/facebook/csslayout/YGFlexDirectionTest.java similarity index 99% rename from java/tests/com/facebook/csslayout/CSSLayoutFlexDirectionTest.java rename to java/tests/com/facebook/csslayout/YGFlexDirectionTest.java index 73b1a98e..350b3081 100644 --- a/java/tests/com/facebook/csslayout/CSSLayoutFlexDirectionTest.java +++ b/java/tests/com/facebook/csslayout/YGFlexDirectionTest.java @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutFlexDirectionTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGFlexDirectionTest.html package com.facebook.csslayout; @@ -15,7 +15,7 @@ import org.junit.Test; import static org.junit.Assert.assertEquals; -public class CSSLayoutFlexDirectionTest { +public class YGFlexDirectionTest { @Test public void test_flex_direction_column_no_height() { final CSSNode root = new CSSNode(); diff --git a/java/tests/com/facebook/csslayout/CSSLayoutFlexTest.java b/java/tests/com/facebook/csslayout/YGFlexTest.java similarity index 99% rename from java/tests/com/facebook/csslayout/CSSLayoutFlexTest.java rename to java/tests/com/facebook/csslayout/YGFlexTest.java index 3d4f1b84..fa408766 100644 --- a/java/tests/com/facebook/csslayout/CSSLayoutFlexTest.java +++ b/java/tests/com/facebook/csslayout/YGFlexTest.java @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutFlexTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGFlexTest.html package com.facebook.csslayout; @@ -15,7 +15,7 @@ import org.junit.Test; import static org.junit.Assert.assertEquals; -public class CSSLayoutFlexTest { +public class YGFlexTest { @Test public void test_flex_basis_flex_grow_column() { final CSSNode root = new CSSNode(); diff --git a/java/tests/com/facebook/csslayout/CSSLayoutFlexWrapTest.java b/java/tests/com/facebook/csslayout/YGFlexWrapTest.java similarity index 99% rename from java/tests/com/facebook/csslayout/CSSLayoutFlexWrapTest.java rename to java/tests/com/facebook/csslayout/YGFlexWrapTest.java index 8df07243..b3432c43 100644 --- a/java/tests/com/facebook/csslayout/CSSLayoutFlexWrapTest.java +++ b/java/tests/com/facebook/csslayout/YGFlexWrapTest.java @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutFlexWrapTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGFlexWrapTest.html package com.facebook.csslayout; @@ -15,7 +15,7 @@ import org.junit.Test; import static org.junit.Assert.assertEquals; -public class CSSLayoutFlexWrapTest { +public class YGFlexWrapTest { @Test public void test_wrap_column() { final CSSNode root = new CSSNode(); diff --git a/java/tests/com/facebook/csslayout/CSSLayoutJustifyContentTest.java b/java/tests/com/facebook/csslayout/YGJustifyContentTest.java similarity index 99% rename from java/tests/com/facebook/csslayout/CSSLayoutJustifyContentTest.java rename to java/tests/com/facebook/csslayout/YGJustifyContentTest.java index 2f486e6f..49637ead 100644 --- a/java/tests/com/facebook/csslayout/CSSLayoutJustifyContentTest.java +++ b/java/tests/com/facebook/csslayout/YGJustifyContentTest.java @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutJustifyContentTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGJustifyContentTest.html package com.facebook.csslayout; @@ -15,7 +15,7 @@ import org.junit.Test; import static org.junit.Assert.assertEquals; -public class CSSLayoutJustifyContentTest { +public class YGJustifyContentTest { @Test public void test_justify_content_row_flex_start() { final CSSNode root = new CSSNode(); diff --git a/java/tests/com/facebook/csslayout/CSSLayoutMarginTest.java b/java/tests/com/facebook/csslayout/YGMarginTest.java similarity index 99% rename from java/tests/com/facebook/csslayout/CSSLayoutMarginTest.java rename to java/tests/com/facebook/csslayout/YGMarginTest.java index f265ef7b..8ee1a0e9 100644 --- a/java/tests/com/facebook/csslayout/CSSLayoutMarginTest.java +++ b/java/tests/com/facebook/csslayout/YGMarginTest.java @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutMarginTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGMarginTest.html package com.facebook.csslayout; @@ -15,7 +15,7 @@ import org.junit.Test; import static org.junit.Assert.assertEquals; -public class CSSLayoutMarginTest { +public class YGMarginTest { @Test public void test_margin_start() { final CSSNode root = new CSSNode(); diff --git a/java/tests/com/facebook/csslayout/CSSLayoutMinMaxDimensionTest.java b/java/tests/com/facebook/csslayout/YGMinMaxDimensionTest.java similarity index 99% rename from java/tests/com/facebook/csslayout/CSSLayoutMinMaxDimensionTest.java rename to java/tests/com/facebook/csslayout/YGMinMaxDimensionTest.java index d509e6a2..6f95748b 100644 --- a/java/tests/com/facebook/csslayout/CSSLayoutMinMaxDimensionTest.java +++ b/java/tests/com/facebook/csslayout/YGMinMaxDimensionTest.java @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutMinMaxDimensionTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGMinMaxDimensionTest.html package com.facebook.csslayout; @@ -15,7 +15,7 @@ import org.junit.Test; import static org.junit.Assert.assertEquals; -public class CSSLayoutMinMaxDimensionTest { +public class YGMinMaxDimensionTest { @Test public void test_max_width() { final CSSNode root = new CSSNode(); diff --git a/java/tests/com/facebook/csslayout/CSSLayoutPaddingTest.java b/java/tests/com/facebook/csslayout/YGPaddingTest.java similarity index 98% rename from java/tests/com/facebook/csslayout/CSSLayoutPaddingTest.java rename to java/tests/com/facebook/csslayout/YGPaddingTest.java index a50ac8b5..b8c31960 100644 --- a/java/tests/com/facebook/csslayout/CSSLayoutPaddingTest.java +++ b/java/tests/com/facebook/csslayout/YGPaddingTest.java @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutPaddingTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGPaddingTest.html package com.facebook.csslayout; @@ -15,7 +15,7 @@ import org.junit.Test; import static org.junit.Assert.assertEquals; -public class CSSLayoutPaddingTest { +public class YGPaddingTest { @Test public void test_padding_no_size() { final CSSNode root = new CSSNode(); diff --git a/java/tests/com/facebook/csslayout/CSSLayoutRoundingTest.java b/java/tests/com/facebook/csslayout/YGRoundingTest.java similarity index 99% rename from java/tests/com/facebook/csslayout/CSSLayoutRoundingTest.java rename to java/tests/com/facebook/csslayout/YGRoundingTest.java index e3e6543b..dfe2d4ef 100644 --- a/java/tests/com/facebook/csslayout/CSSLayoutRoundingTest.java +++ b/java/tests/com/facebook/csslayout/YGRoundingTest.java @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutRoundingTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGRoundingTest.html package com.facebook.csslayout; @@ -15,7 +15,7 @@ import org.junit.Test; import static org.junit.Assert.assertEquals; -public class CSSLayoutRoundingTest { +public class YGRoundingTest { @Test public void test_rounding_flex_basis_flex_grow_row_width_of_100() { CSSNode.setExperimentalFeatureEnabled(YogaExperimentalFeature.ROUNDING, true); diff --git a/java/tests/com/facebook/csslayout/CSSNodeTest.java b/java/tests/com/facebook/csslayout/YogaNodeTest.java similarity index 98% rename from java/tests/com/facebook/csslayout/CSSNodeTest.java rename to java/tests/com/facebook/csslayout/YogaNodeTest.java index 16bc3977..9a39d052 100644 --- a/java/tests/com/facebook/csslayout/CSSNodeTest.java +++ b/java/tests/com/facebook/csslayout/YogaNodeTest.java @@ -14,7 +14,7 @@ import org.junit.Test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; -public class CSSNodeTest { +public class YogaNodeTest { @Test public void testInit() { diff --git a/tests/CSSLayoutAbsolutePositionTest.cpp b/tests/YGAbsolutePositionTest.cpp similarity index 99% rename from tests/CSSLayoutAbsolutePositionTest.cpp rename to tests/YGAbsolutePositionTest.cpp index 8e3ce96b..fb59f1c8 100644 --- a/tests/CSSLayoutAbsolutePositionTest.cpp +++ b/tests/YGAbsolutePositionTest.cpp @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutAbsolutePositionTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGAbsolutePositionTest.html #include #include diff --git a/tests/CSSLayoutAlignContentTest.cpp b/tests/YGAlignContentTest.cpp similarity index 99% rename from tests/CSSLayoutAlignContentTest.cpp rename to tests/YGAlignContentTest.cpp index 30c9b36e..5a2c6abf 100644 --- a/tests/CSSLayoutAlignContentTest.cpp +++ b/tests/YGAlignContentTest.cpp @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutAlignContentTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGAlignContentTest.html #include #include diff --git a/tests/CSSLayoutAlignItemsTest.cpp b/tests/YGAlignItemsTest.cpp similarity index 98% rename from tests/CSSLayoutAlignItemsTest.cpp rename to tests/YGAlignItemsTest.cpp index 1092582c..fb5857f8 100644 --- a/tests/CSSLayoutAlignItemsTest.cpp +++ b/tests/YGAlignItemsTest.cpp @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutAlignItemsTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGAlignItemsTest.html #include #include diff --git a/tests/CSSLayoutAlignSelfTest.cpp b/tests/YGAlignSelfTest.cpp similarity index 98% rename from tests/CSSLayoutAlignSelfTest.cpp rename to tests/YGAlignSelfTest.cpp index 008f30c7..d369dd64 100644 --- a/tests/CSSLayoutAlignSelfTest.cpp +++ b/tests/YGAlignSelfTest.cpp @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutAlignSelfTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGAlignSelfTest.html #include #include diff --git a/tests/CSSLayoutBorderTest.cpp b/tests/YGBorderTest.cpp similarity index 98% rename from tests/CSSLayoutBorderTest.cpp rename to tests/YGBorderTest.cpp index e4dc1bc5..0224276c 100644 --- a/tests/CSSLayoutBorderTest.cpp +++ b/tests/YGBorderTest.cpp @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutBorderTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGBorderTest.html #include #include diff --git a/tests/CSSLayoutDirtyMarkingTest.cpp b/tests/YGDirtyMarkingTest.cpp similarity index 100% rename from tests/CSSLayoutDirtyMarkingTest.cpp rename to tests/YGDirtyMarkingTest.cpp diff --git a/tests/CSSLayoutEdgeTest.cpp b/tests/YGEdgeTest.cpp similarity index 100% rename from tests/CSSLayoutEdgeTest.cpp rename to tests/YGEdgeTest.cpp diff --git a/tests/CSSLayoutFlexDirectionTest.cpp b/tests/YGFlexDirectionTest.cpp similarity index 99% rename from tests/CSSLayoutFlexDirectionTest.cpp rename to tests/YGFlexDirectionTest.cpp index 786073a9..4f279e70 100644 --- a/tests/CSSLayoutFlexDirectionTest.cpp +++ b/tests/YGFlexDirectionTest.cpp @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutFlexDirectionTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGFlexDirectionTest.html #include #include diff --git a/tests/CSSLayoutFlexTest.cpp b/tests/YGFlexTest.cpp similarity index 99% rename from tests/CSSLayoutFlexTest.cpp rename to tests/YGFlexTest.cpp index 5035a049..fecc30ee 100644 --- a/tests/CSSLayoutFlexTest.cpp +++ b/tests/YGFlexTest.cpp @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutFlexTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGFlexTest.html #include #include diff --git a/tests/CSSLayoutFlexWrapTest.cpp b/tests/YGFlexWrapTest.cpp similarity index 99% rename from tests/CSSLayoutFlexWrapTest.cpp rename to tests/YGFlexWrapTest.cpp index 0be05d5c..c2d13b77 100644 --- a/tests/CSSLayoutFlexWrapTest.cpp +++ b/tests/YGFlexWrapTest.cpp @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutFlexWrapTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGFlexWrapTest.html #include #include diff --git a/tests/CSSLayoutJustifyContentTest.cpp b/tests/YGJustifyContentTest.cpp similarity index 99% rename from tests/CSSLayoutJustifyContentTest.cpp rename to tests/YGJustifyContentTest.cpp index 5a60b8c3..af0052fa 100644 --- a/tests/CSSLayoutJustifyContentTest.cpp +++ b/tests/YGJustifyContentTest.cpp @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutJustifyContentTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGJustifyContentTest.html #include #include diff --git a/tests/CSSLayoutAspectRatioTest.cpp b/tests/YGLayoutAspectRatioTest.cpp similarity index 100% rename from tests/CSSLayoutAspectRatioTest.cpp rename to tests/YGLayoutAspectRatioTest.cpp diff --git a/tests/CSSLayoutDefaultValuesTest.cpp b/tests/YGLayoutDefaultValuesTest.cpp similarity index 100% rename from tests/CSSLayoutDefaultValuesTest.cpp rename to tests/YGLayoutDefaultValuesTest.cpp diff --git a/tests/CSSLayoutMarginTest.cpp b/tests/YGMarginTest.cpp similarity index 99% rename from tests/CSSLayoutMarginTest.cpp rename to tests/YGMarginTest.cpp index 5d09ebdd..74f1bae0 100644 --- a/tests/CSSLayoutMarginTest.cpp +++ b/tests/YGMarginTest.cpp @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutMarginTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGMarginTest.html #include #include diff --git a/tests/CSSLayoutMeasureCacheTest.cpp b/tests/YGMeasureCacheTest.cpp similarity index 100% rename from tests/CSSLayoutMeasureCacheTest.cpp rename to tests/YGMeasureCacheTest.cpp diff --git a/tests/CSSLayoutMeasureModeTest.cpp b/tests/YGMeasureModeTest.cpp similarity index 100% rename from tests/CSSLayoutMeasureModeTest.cpp rename to tests/YGMeasureModeTest.cpp diff --git a/tests/CSSLayoutMeasureTest.cpp b/tests/YGMeasureTest.cpp similarity index 100% rename from tests/CSSLayoutMeasureTest.cpp rename to tests/YGMeasureTest.cpp diff --git a/tests/CSSLayoutMemoryFuncTest.cpp b/tests/YGMemoryFuncTest.cpp similarity index 100% rename from tests/CSSLayoutMemoryFuncTest.cpp rename to tests/YGMemoryFuncTest.cpp diff --git a/tests/CSSLayoutMinMaxDimensionTest.cpp b/tests/YGMinMaxDimensionTest.cpp similarity index 99% rename from tests/CSSLayoutMinMaxDimensionTest.cpp rename to tests/YGMinMaxDimensionTest.cpp index bd5a7dd8..2b51ae3d 100644 --- a/tests/CSSLayoutMinMaxDimensionTest.cpp +++ b/tests/YGMinMaxDimensionTest.cpp @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutMinMaxDimensionTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGMinMaxDimensionTest.html #include #include diff --git a/tests/CSSLayoutPaddingTest.cpp b/tests/YGPaddingTest.cpp similarity index 99% rename from tests/CSSLayoutPaddingTest.cpp rename to tests/YGPaddingTest.cpp index d5aa6820..359d0235 100644 --- a/tests/CSSLayoutPaddingTest.cpp +++ b/tests/YGPaddingTest.cpp @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutPaddingTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGPaddingTest.html #include #include diff --git a/tests/CSSLayoutRelayoutTest.cpp b/tests/YGRelayoutTest.cpp similarity index 100% rename from tests/CSSLayoutRelayoutTest.cpp rename to tests/YGRelayoutTest.cpp diff --git a/tests/CSSLayoutRoundingMeasureFuncTest.cpp b/tests/YGRoundingMeasureFuncTest.cpp similarity index 100% rename from tests/CSSLayoutRoundingMeasureFuncTest.cpp rename to tests/YGRoundingMeasureFuncTest.cpp diff --git a/tests/CSSLayoutRoundingTest.cpp b/tests/YGRoundingTest.cpp similarity index 99% rename from tests/CSSLayoutRoundingTest.cpp rename to tests/YGRoundingTest.cpp index 9a14ea26..00d6eedf 100644 --- a/tests/CSSLayoutRoundingTest.cpp +++ b/tests/YGRoundingTest.cpp @@ -7,7 +7,7 @@ * of patent rights can be found in the PATENTS file in the same directory. */ - // @Generated by gentest/gentest.rb from gentest/fixtures/CSSLayoutRoundingTest.html + // @Generated by gentest/gentest.rb from gentest/fixtures/YGRoundingTest.html #include #include diff --git a/tests/CSSLayoutStyleTest.cpp b/tests/YGStyleTest.cpp similarity index 100% rename from tests/CSSLayoutStyleTest.cpp rename to tests/YGStyleTest.cpp