From c61944e231c915d8f3cc48b07934d28bf7168104 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Thu, 5 Feb 2026 15:26:01 +0000 Subject: [PATCH] Fix main by running yarn gentest --- .../facebook/yoga/YGIntrinsicSizeTest.java | 42 +++++++++---------- .../generated/YGIntrinsicSizeTest.test.ts | 42 +++++++++---------- tests/generated/YGIntrinsicSizeTest.cpp | 42 +++++++++---------- 3 files changed, 63 insertions(+), 63 deletions(-) diff --git a/java/tests/generated/com/facebook/yoga/YGIntrinsicSizeTest.java b/java/tests/generated/com/facebook/yoga/YGIntrinsicSizeTest.java index ea2458fea6..95c98570f7 100644 --- a/java/tests/generated/com/facebook/yoga/YGIntrinsicSizeTest.java +++ b/java/tests/generated/com/facebook/yoga/YGIntrinsicSizeTest.java @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @generated SignedSource<<96b528db5cda18b4993df8a0a5ce62a1>> + * @generated SignedSource<<750c3eb87df8af0b92ba799ed2d61227>> * generated by gentest/gentest-driver.ts from gentest/fixtures/YGIntrinsicSizeTest.html */ @@ -2272,20 +2272,20 @@ public void test_max_content_min_height() { assertEquals(0f, root.getLayoutX(), 0.0f); assertEquals(0f, root.getLayoutY(), 0.0f); assertEquals(50f, root.getLayoutWidth(), 0.0f); - assertEquals(175f, root.getLayoutHeight(), 0.0f); + assertEquals(100f, root.getLayoutHeight(), 0.0f); assertEquals(0f, root_child0.getLayoutX(), 0.0f); assertEquals(0f, root_child0.getLayoutY(), 0.0f); assertEquals(50f, root_child0.getLayoutWidth(), 0.0f); assertEquals(50f, root_child0.getLayoutHeight(), 0.0f); - assertEquals(0f, root_child1.getLayoutX(), 0.0f); - assertEquals(50f, root_child1.getLayoutY(), 0.0f); + assertEquals(50f, root_child1.getLayoutX(), 0.0f); + assertEquals(0f, root_child1.getLayoutY(), 0.0f); assertEquals(50f, root_child1.getLayoutWidth(), 0.0f); assertEquals(100f, root_child1.getLayoutHeight(), 0.0f); - assertEquals(0f, root_child2.getLayoutX(), 0.0f); - assertEquals(150f, root_child2.getLayoutY(), 0.0f); + assertEquals(100f, root_child2.getLayoutX(), 0.0f); + assertEquals(0f, root_child2.getLayoutY(), 0.0f); assertEquals(50f, root_child2.getLayoutWidth(), 0.0f); assertEquals(25f, root_child2.getLayoutHeight(), 0.0f); @@ -2295,20 +2295,20 @@ public void test_max_content_min_height() { assertEquals(0f, root.getLayoutX(), 0.0f); assertEquals(0f, root.getLayoutY(), 0.0f); assertEquals(50f, root.getLayoutWidth(), 0.0f); - assertEquals(175f, root.getLayoutHeight(), 0.0f); + assertEquals(100f, root.getLayoutHeight(), 0.0f); assertEquals(0f, root_child0.getLayoutX(), 0.0f); assertEquals(0f, root_child0.getLayoutY(), 0.0f); assertEquals(50f, root_child0.getLayoutWidth(), 0.0f); assertEquals(50f, root_child0.getLayoutHeight(), 0.0f); - assertEquals(0f, root_child1.getLayoutX(), 0.0f); - assertEquals(50f, root_child1.getLayoutY(), 0.0f); + assertEquals(-50f, root_child1.getLayoutX(), 0.0f); + assertEquals(0f, root_child1.getLayoutY(), 0.0f); assertEquals(50f, root_child1.getLayoutWidth(), 0.0f); assertEquals(100f, root_child1.getLayoutHeight(), 0.0f); - assertEquals(0f, root_child2.getLayoutX(), 0.0f); - assertEquals(150f, root_child2.getLayoutY(), 0.0f); + assertEquals(-100f, root_child2.getLayoutX(), 0.0f); + assertEquals(0f, root_child2.getLayoutY(), 0.0f); assertEquals(50f, root_child2.getLayoutWidth(), 0.0f); assertEquals(25f, root_child2.getLayoutHeight(), 0.0f); } @@ -2353,20 +2353,20 @@ public void test_fit_content_min_height() { assertEquals(0f, root_child0.getLayoutX(), 0.0f); assertEquals(0f, root_child0.getLayoutY(), 0.0f); assertEquals(50f, root_child0.getLayoutWidth(), 0.0f); - assertEquals(175f, root_child0.getLayoutHeight(), 0.0f); + assertEquals(100f, root_child0.getLayoutHeight(), 0.0f); assertEquals(0f, root_child0_child0.getLayoutX(), 0.0f); assertEquals(0f, root_child0_child0.getLayoutY(), 0.0f); assertEquals(50f, root_child0_child0.getLayoutWidth(), 0.0f); assertEquals(50f, root_child0_child0.getLayoutHeight(), 0.0f); - assertEquals(0f, root_child0_child1.getLayoutX(), 0.0f); - assertEquals(50f, root_child0_child1.getLayoutY(), 0.0f); + assertEquals(50f, root_child0_child1.getLayoutX(), 0.0f); + assertEquals(0f, root_child0_child1.getLayoutY(), 0.0f); assertEquals(50f, root_child0_child1.getLayoutWidth(), 0.0f); assertEquals(100f, root_child0_child1.getLayoutHeight(), 0.0f); - assertEquals(0f, root_child0_child2.getLayoutX(), 0.0f); - assertEquals(150f, root_child0_child2.getLayoutY(), 0.0f); + assertEquals(100f, root_child0_child2.getLayoutX(), 0.0f); + assertEquals(0f, root_child0_child2.getLayoutY(), 0.0f); assertEquals(50f, root_child0_child2.getLayoutWidth(), 0.0f); assertEquals(25f, root_child0_child2.getLayoutHeight(), 0.0f); @@ -2381,20 +2381,20 @@ public void test_fit_content_min_height() { assertEquals(0f, root_child0.getLayoutX(), 0.0f); assertEquals(0f, root_child0.getLayoutY(), 0.0f); assertEquals(50f, root_child0.getLayoutWidth(), 0.0f); - assertEquals(175f, root_child0.getLayoutHeight(), 0.0f); + assertEquals(100f, root_child0.getLayoutHeight(), 0.0f); assertEquals(0f, root_child0_child0.getLayoutX(), 0.0f); assertEquals(0f, root_child0_child0.getLayoutY(), 0.0f); assertEquals(50f, root_child0_child0.getLayoutWidth(), 0.0f); assertEquals(50f, root_child0_child0.getLayoutHeight(), 0.0f); - assertEquals(0f, root_child0_child1.getLayoutX(), 0.0f); - assertEquals(50f, root_child0_child1.getLayoutY(), 0.0f); + assertEquals(-50f, root_child0_child1.getLayoutX(), 0.0f); + assertEquals(0f, root_child0_child1.getLayoutY(), 0.0f); assertEquals(50f, root_child0_child1.getLayoutWidth(), 0.0f); assertEquals(100f, root_child0_child1.getLayoutHeight(), 0.0f); - assertEquals(0f, root_child0_child2.getLayoutX(), 0.0f); - assertEquals(150f, root_child0_child2.getLayoutY(), 0.0f); + assertEquals(-100f, root_child0_child2.getLayoutX(), 0.0f); + assertEquals(0f, root_child0_child2.getLayoutY(), 0.0f); assertEquals(50f, root_child0_child2.getLayoutWidth(), 0.0f); assertEquals(25f, root_child0_child2.getLayoutHeight(), 0.0f); } diff --git a/javascript/tests/generated/YGIntrinsicSizeTest.test.ts b/javascript/tests/generated/YGIntrinsicSizeTest.test.ts index cb4e2740d4..97f43f46ee 100644 --- a/javascript/tests/generated/YGIntrinsicSizeTest.test.ts +++ b/javascript/tests/generated/YGIntrinsicSizeTest.test.ts @@ -4,7 +4,7 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * - * @generated SignedSource<<3f04f55b43e5a47ed2f33485e63ac039>> + * @generated SignedSource<> * generated by gentest/gentest-driver.ts from gentest/fixtures/YGIntrinsicSizeTest.html */ @@ -2409,20 +2409,20 @@ test.skip('max_content_min_height', () => { expect(root.getComputedLeft()).toBe(0); expect(root.getComputedTop()).toBe(0); expect(root.getComputedWidth()).toBe(50); - expect(root.getComputedHeight()).toBe(175); + expect(root.getComputedHeight()).toBe(100); expect(root_child0.getComputedLeft()).toBe(0); expect(root_child0.getComputedTop()).toBe(0); expect(root_child0.getComputedWidth()).toBe(50); expect(root_child0.getComputedHeight()).toBe(50); - expect(root_child1.getComputedLeft()).toBe(0); - expect(root_child1.getComputedTop()).toBe(50); + expect(root_child1.getComputedLeft()).toBe(50); + expect(root_child1.getComputedTop()).toBe(0); expect(root_child1.getComputedWidth()).toBe(50); expect(root_child1.getComputedHeight()).toBe(100); - expect(root_child2.getComputedLeft()).toBe(0); - expect(root_child2.getComputedTop()).toBe(150); + expect(root_child2.getComputedLeft()).toBe(100); + expect(root_child2.getComputedTop()).toBe(0); expect(root_child2.getComputedWidth()).toBe(50); expect(root_child2.getComputedHeight()).toBe(25); @@ -2431,20 +2431,20 @@ test.skip('max_content_min_height', () => { expect(root.getComputedLeft()).toBe(0); expect(root.getComputedTop()).toBe(0); expect(root.getComputedWidth()).toBe(50); - expect(root.getComputedHeight()).toBe(175); + expect(root.getComputedHeight()).toBe(100); expect(root_child0.getComputedLeft()).toBe(0); expect(root_child0.getComputedTop()).toBe(0); expect(root_child0.getComputedWidth()).toBe(50); expect(root_child0.getComputedHeight()).toBe(50); - expect(root_child1.getComputedLeft()).toBe(0); - expect(root_child1.getComputedTop()).toBe(50); + expect(root_child1.getComputedLeft()).toBe(-50); + expect(root_child1.getComputedTop()).toBe(0); expect(root_child1.getComputedWidth()).toBe(50); expect(root_child1.getComputedHeight()).toBe(100); - expect(root_child2.getComputedLeft()).toBe(0); - expect(root_child2.getComputedTop()).toBe(150); + expect(root_child2.getComputedLeft()).toBe(-100); + expect(root_child2.getComputedTop()).toBe(0); expect(root_child2.getComputedWidth()).toBe(50); expect(root_child2.getComputedHeight()).toBe(25); } finally { @@ -2494,20 +2494,20 @@ test.skip('fit_content_min_height', () => { expect(root_child0.getComputedLeft()).toBe(0); expect(root_child0.getComputedTop()).toBe(0); expect(root_child0.getComputedWidth()).toBe(50); - expect(root_child0.getComputedHeight()).toBe(175); + expect(root_child0.getComputedHeight()).toBe(100); expect(root_child0_child0.getComputedLeft()).toBe(0); expect(root_child0_child0.getComputedTop()).toBe(0); expect(root_child0_child0.getComputedWidth()).toBe(50); expect(root_child0_child0.getComputedHeight()).toBe(50); - expect(root_child0_child1.getComputedLeft()).toBe(0); - expect(root_child0_child1.getComputedTop()).toBe(50); + expect(root_child0_child1.getComputedLeft()).toBe(50); + expect(root_child0_child1.getComputedTop()).toBe(0); expect(root_child0_child1.getComputedWidth()).toBe(50); expect(root_child0_child1.getComputedHeight()).toBe(100); - expect(root_child0_child2.getComputedLeft()).toBe(0); - expect(root_child0_child2.getComputedTop()).toBe(150); + expect(root_child0_child2.getComputedLeft()).toBe(100); + expect(root_child0_child2.getComputedTop()).toBe(0); expect(root_child0_child2.getComputedWidth()).toBe(50); expect(root_child0_child2.getComputedHeight()).toBe(25); @@ -2521,20 +2521,20 @@ test.skip('fit_content_min_height', () => { expect(root_child0.getComputedLeft()).toBe(0); expect(root_child0.getComputedTop()).toBe(0); expect(root_child0.getComputedWidth()).toBe(50); - expect(root_child0.getComputedHeight()).toBe(175); + expect(root_child0.getComputedHeight()).toBe(100); expect(root_child0_child0.getComputedLeft()).toBe(0); expect(root_child0_child0.getComputedTop()).toBe(0); expect(root_child0_child0.getComputedWidth()).toBe(50); expect(root_child0_child0.getComputedHeight()).toBe(50); - expect(root_child0_child1.getComputedLeft()).toBe(0); - expect(root_child0_child1.getComputedTop()).toBe(50); + expect(root_child0_child1.getComputedLeft()).toBe(-50); + expect(root_child0_child1.getComputedTop()).toBe(0); expect(root_child0_child1.getComputedWidth()).toBe(50); expect(root_child0_child1.getComputedHeight()).toBe(100); - expect(root_child0_child2.getComputedLeft()).toBe(0); - expect(root_child0_child2.getComputedTop()).toBe(150); + expect(root_child0_child2.getComputedLeft()).toBe(-100); + expect(root_child0_child2.getComputedTop()).toBe(0); expect(root_child0_child2.getComputedWidth()).toBe(50); expect(root_child0_child2.getComputedHeight()).toBe(25); } finally { diff --git a/tests/generated/YGIntrinsicSizeTest.cpp b/tests/generated/YGIntrinsicSizeTest.cpp index 630d251d6b..7a9ebb7a0a 100644 --- a/tests/generated/YGIntrinsicSizeTest.cpp +++ b/tests/generated/YGIntrinsicSizeTest.cpp @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. * * clang-format off - * @generated SignedSource<<718c2ea7c24bad16412bbcda9182fc9f>> + * @generated SignedSource<<2829dc62309945a6659caa578d8351c8>> * generated by gentest/gentest-driver.ts from gentest/fixtures/YGIntrinsicSizeTest.html */ @@ -2306,20 +2306,20 @@ TEST(YogaTest, max_content_min_height) { ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root)); - ASSERT_FLOAT_EQ(175, YGNodeLayoutGetHeight(root)); + ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetHeight(root_child0)); - ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child1)); - ASSERT_FLOAT_EQ(50, YGNodeLayoutGetTop(root_child1)); + ASSERT_FLOAT_EQ(50, YGNodeLayoutGetLeft(root_child1)); + ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child1)); ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child1)); - ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child2)); - ASSERT_FLOAT_EQ(150, YGNodeLayoutGetTop(root_child2)); + ASSERT_FLOAT_EQ(100, YGNodeLayoutGetLeft(root_child2)); + ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child2)); ASSERT_FLOAT_EQ(25, YGNodeLayoutGetHeight(root_child2)); @@ -2328,20 +2328,20 @@ TEST(YogaTest, max_content_min_height) { ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root)); - ASSERT_FLOAT_EQ(175, YGNodeLayoutGetHeight(root)); + ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetHeight(root_child0)); - ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child1)); - ASSERT_FLOAT_EQ(50, YGNodeLayoutGetTop(root_child1)); + ASSERT_FLOAT_EQ(-50, YGNodeLayoutGetLeft(root_child1)); + ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child1)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child1)); ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child1)); - ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child2)); - ASSERT_FLOAT_EQ(150, YGNodeLayoutGetTop(root_child2)); + ASSERT_FLOAT_EQ(-100, YGNodeLayoutGetLeft(root_child2)); + ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child2)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child2)); ASSERT_FLOAT_EQ(25, YGNodeLayoutGetHeight(root_child2)); @@ -2389,20 +2389,20 @@ TEST(YogaTest, fit_content_min_height) { ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0)); - ASSERT_FLOAT_EQ(175, YGNodeLayoutGetHeight(root_child0)); + ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0_child0)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0_child0)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetHeight(root_child0_child0)); - ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0_child1)); - ASSERT_FLOAT_EQ(50, YGNodeLayoutGetTop(root_child0_child1)); + ASSERT_FLOAT_EQ(50, YGNodeLayoutGetLeft(root_child0_child1)); + ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0_child1)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0_child1)); ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child0_child1)); - ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0_child2)); - ASSERT_FLOAT_EQ(150, YGNodeLayoutGetTop(root_child0_child2)); + ASSERT_FLOAT_EQ(100, YGNodeLayoutGetLeft(root_child0_child2)); + ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0_child2)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0_child2)); ASSERT_FLOAT_EQ(25, YGNodeLayoutGetHeight(root_child0_child2)); @@ -2416,20 +2416,20 @@ TEST(YogaTest, fit_content_min_height) { ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0)); - ASSERT_FLOAT_EQ(175, YGNodeLayoutGetHeight(root_child0)); + ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0_child0)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0_child0)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetHeight(root_child0_child0)); - ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0_child1)); - ASSERT_FLOAT_EQ(50, YGNodeLayoutGetTop(root_child0_child1)); + ASSERT_FLOAT_EQ(-50, YGNodeLayoutGetLeft(root_child0_child1)); + ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0_child1)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0_child1)); ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child0_child1)); - ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0_child2)); - ASSERT_FLOAT_EQ(150, YGNodeLayoutGetTop(root_child0_child2)); + ASSERT_FLOAT_EQ(-100, YGNodeLayoutGetLeft(root_child0_child2)); + ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0_child2)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0_child2)); ASSERT_FLOAT_EQ(25, YGNodeLayoutGetHeight(root_child0_child2));