From 585df10ee892b2ca879c5d470cfc43cf2d726ae6 Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Tue, 4 Oct 2022 08:51:51 -0700 Subject: [PATCH] strech -> stretch Summary: This replicates https://github.com/facebook/yoga/pull/760, to fix a typo around align-items. It does not have an effect on the tests themselves, since align-items defaults to stretch, and the test generator omits CSS properties of a default value. Reviewed By: yungsters Differential Revision: D40060324 fbshipit-source-id: da0565f2ad17e3e4e0f541a1c7006cdeeb991ece --- csharp/tests/Facebook.Yoga/YGAlignItemsTest.cs | 2 +- csharp/tests/Facebook.Yoga/YGMarginTest.cs | 4 ++-- gentest/fixtures/YGAlignItemsTest.html | 6 +++--- gentest/fixtures/YGMarginTest.html | 6 +++--- java/tests/com/facebook/yoga/YGAlignItemsTest.java | 2 +- java/tests/com/facebook/yoga/YGMarginTest.java | 4 ++-- javascript/tests/Facebook.Yoga/YGAlignItemsTest.js | 2 +- javascript/tests/Facebook.Yoga/YGMarginTest.js | 4 ++-- tests/YGAlignItemsTest.cpp | 2 +- tests/YGMarginTest.cpp | 4 ++-- 10 files changed, 18 insertions(+), 18 deletions(-) diff --git a/csharp/tests/Facebook.Yoga/YGAlignItemsTest.cs b/csharp/tests/Facebook.Yoga/YGAlignItemsTest.cs index ea1732dd..22436839 100644 --- a/csharp/tests/Facebook.Yoga/YGAlignItemsTest.cs +++ b/csharp/tests/Facebook.Yoga/YGAlignItemsTest.cs @@ -1886,7 +1886,7 @@ namespace Facebook.Yoga } [Test] - public void Test_align_strech_should_size_based_on_parent() + public void Test_align_stretch_should_size_based_on_parent() { YogaConfig config = new YogaConfig(); diff --git a/csharp/tests/Facebook.Yoga/YGMarginTest.cs b/csharp/tests/Facebook.Yoga/YGMarginTest.cs index dbf28bd7..409c55fb 100644 --- a/csharp/tests/Facebook.Yoga/YGMarginTest.cs +++ b/csharp/tests/Facebook.Yoga/YGMarginTest.cs @@ -1236,7 +1236,7 @@ namespace Facebook.Yoga } [Test] - public void Test_margin_auto_left_and_right_strech() + public void Test_margin_auto_left_and_right_stretch() { YogaConfig config = new YogaConfig(); @@ -1294,7 +1294,7 @@ namespace Facebook.Yoga } [Test] - public void Test_margin_auto_top_and_bottom_strech() + public void Test_margin_auto_top_and_bottom_stretch() { YogaConfig config = new YogaConfig(); diff --git a/gentest/fixtures/YGAlignItemsTest.html b/gentest/fixtures/YGAlignItemsTest.html index fa043673..57bafc0f 100644 --- a/gentest/fixtures/YGAlignItemsTest.html +++ b/gentest/fixtures/YGAlignItemsTest.html @@ -176,7 +176,7 @@ -
+
@@ -193,7 +193,7 @@
-
+
@@ -206,4 +206,4 @@
-
\ No newline at end of file +
diff --git a/gentest/fixtures/YGMarginTest.html b/gentest/fixtures/YGMarginTest.html index 60924c8f..3258c1fc 100644 --- a/gentest/fixtures/YGMarginTest.html +++ b/gentest/fixtures/YGMarginTest.html @@ -107,12 +107,12 @@
-
+
-
+
@@ -149,4 +149,4 @@
-
\ No newline at end of file +
diff --git a/java/tests/com/facebook/yoga/YGAlignItemsTest.java b/java/tests/com/facebook/yoga/YGAlignItemsTest.java index e1e3e703..cf66f98b 100644 --- a/java/tests/com/facebook/yoga/YGAlignItemsTest.java +++ b/java/tests/com/facebook/yoga/YGAlignItemsTest.java @@ -1871,7 +1871,7 @@ public class YGAlignItemsTest { } @Test - public void test_align_strech_should_size_based_on_parent() { + public void test_align_stretch_should_size_based_on_parent() { YogaConfig config = YogaConfigFactory.create(); final YogaNode root = createNode(config); diff --git a/java/tests/com/facebook/yoga/YGMarginTest.java b/java/tests/com/facebook/yoga/YGMarginTest.java index 6508042c..7196159b 100644 --- a/java/tests/com/facebook/yoga/YGMarginTest.java +++ b/java/tests/com/facebook/yoga/YGMarginTest.java @@ -1222,7 +1222,7 @@ public class YGMarginTest { } @Test - public void test_margin_auto_left_and_right_strech() { + public void test_margin_auto_left_and_right_stretch() { YogaConfig config = YogaConfigFactory.create(); final YogaNode root = createNode(config); @@ -1279,7 +1279,7 @@ public class YGMarginTest { } @Test - public void test_margin_auto_top_and_bottom_strech() { + public void test_margin_auto_top_and_bottom_stretch() { YogaConfig config = YogaConfigFactory.create(); final YogaNode root = createNode(config); diff --git a/javascript/tests/Facebook.Yoga/YGAlignItemsTest.js b/javascript/tests/Facebook.Yoga/YGAlignItemsTest.js index 0ca20825..35f07ce6 100644 --- a/javascript/tests/Facebook.Yoga/YGAlignItemsTest.js +++ b/javascript/tests/Facebook.Yoga/YGAlignItemsTest.js @@ -1951,7 +1951,7 @@ it("align_center_should_size_based_on_content", function () { config.free(); } }); -it("align_strech_should_size_based_on_parent", function () { +it("align_stretch_should_size_based_on_parent", function () { var config = Yoga.Config.create(); try { diff --git a/javascript/tests/Facebook.Yoga/YGMarginTest.js b/javascript/tests/Facebook.Yoga/YGMarginTest.js index 2ccd37d6..5bce1653 100644 --- a/javascript/tests/Facebook.Yoga/YGMarginTest.js +++ b/javascript/tests/Facebook.Yoga/YGMarginTest.js @@ -1298,7 +1298,7 @@ it("margin_auto_right", function () { config.free(); } }); -it("margin_auto_left_and_right_strech", function () { +it("margin_auto_left_and_right_stretch", function () { var config = Yoga.Config.create(); try { @@ -1359,7 +1359,7 @@ it("margin_auto_left_and_right_strech", function () { config.free(); } }); -it("margin_auto_top_and_bottom_strech", function () { +it("margin_auto_top_and_bottom_stretch", function () { var config = Yoga.Config.create(); try { diff --git a/tests/YGAlignItemsTest.cpp b/tests/YGAlignItemsTest.cpp index 30575f84..24ba1988 100644 --- a/tests/YGAlignItemsTest.cpp +++ b/tests/YGAlignItemsTest.cpp @@ -1881,7 +1881,7 @@ TEST(YogaTest, align_center_should_size_based_on_content) { YGConfigFree(config); } -TEST(YogaTest, align_strech_should_size_based_on_parent) { +TEST(YogaTest, align_stretch_should_size_based_on_parent) { const YGConfigRef config = YGConfigNew(); const YGNodeRef root = YGNodeNewWithConfig(config); diff --git a/tests/YGMarginTest.cpp b/tests/YGMarginTest.cpp index fe6c2074..ecfea4c4 100644 --- a/tests/YGMarginTest.cpp +++ b/tests/YGMarginTest.cpp @@ -1231,7 +1231,7 @@ TEST(YogaTest, margin_auto_right) { YGConfigFree(config); } -TEST(YogaTest, margin_auto_left_and_right_strech) { +TEST(YogaTest, margin_auto_left_and_right_stretch) { const YGConfigRef config = YGConfigNew(); const YGNodeRef root = YGNodeNewWithConfig(config); @@ -1289,7 +1289,7 @@ TEST(YogaTest, margin_auto_left_and_right_strech) { YGConfigFree(config); } -TEST(YogaTest, margin_auto_top_and_bottom_strech) { +TEST(YogaTest, margin_auto_top_and_bottom_stretch) { const YGConfigRef config = YGConfigNew(); const YGNodeRef root = YGNodeNewWithConfig(config);