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
This commit is contained in:
Nick Gerleman
2022-10-04 08:51:51 -07:00
committed by Facebook GitHub Bot
parent 7a6f667bf1
commit 585df10ee8
10 changed files with 18 additions and 18 deletions

View File

@@ -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();

View File

@@ -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();

View File

@@ -176,7 +176,7 @@
</div>
</div>
<div id="align_strech_should_size_based_on_parent" style="width: 100px; height: 100px; align-items: strech; margin-top: 20px;">
<div id="align_stretch_should_size_based_on_parent" style="width: 100px; height: 100px; align-items: stretch; margin-top: 20px;">
<div style="flex-grow: 0; flex-shrink: 1; justify-content: center;">
<div style="flex-grow: 1; flex-shrink: 1;">
<div style="width: 20px; height: 20px;"></div>
@@ -193,7 +193,7 @@
</div>
<div id="align_flex_start_with_stretching_children" style="height: 500px; width: 500px">
<div style="align-items: strech;">
<div style="align-items: stretch;">
<div style="flex-grow: 1; flex-shrink: 1;">
<div style="flex-grow: 1; flex-shrink: 1;"></div>
</div>
@@ -206,4 +206,4 @@
<div style="flex-grow: 1; flex-shrink: 1;"></div>
</div>
</div>
</div>
</div>

View File

@@ -107,12 +107,12 @@
<div style="width: 50px; height: 50px;"></div>
</div>
<div id="margin_auto_left_and_right_strech" style="width: 200px; height: 200px; flex-direction:row; align-items: stretch;">
<div id="margin_auto_left_and_right_stretch" style="width: 200px; height: 200px; flex-direction:row; align-items: stretch;">
<div style="width: 50px; height: 50px; margin-left:auto; margin-right:auto;"></div>
<div style="width: 50px; height: 50px;"></div>
</div>
<div id="margin_auto_top_and_bottom_strech" style="width: 200px; height: 200px; flex-direction: column; align-items: stretch;">
<div id="margin_auto_top_and_bottom_stretch" style="width: 200px; height: 200px; flex-direction: column; align-items: stretch;">
<div style="width: 50px; height: 50px; margin-top:auto; margin-bottom:auto;"></div>
<div style="width: 50px; height: 50px;"></div>
</div>
@@ -149,4 +149,4 @@
<div id="margin_auto_left_stretching_child" style="width: 200px; height: 200px; align-items: center;">
<div style="flex: 1; margin-left:auto;"></div>
<div style="width: 50px; height: 50px;"></div>
</div>
</div>

View File

@@ -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);

View File

@@ -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);

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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);

View File

@@ -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);