Skip to content

Commit

Permalink
No longer skip margin_start and margin_end row reverse tests
Browse files Browse the repository at this point in the history
Summary: These are fixed now!

Reviewed By: NickGerleman

Differential Revision: D50200030

fbshipit-source-id: ac3e80e33d8c35440e342a10cfd3246161ee9018
  • Loading branch information
joevilches authored and facebook-github-bot committed Oct 12, 2023
1 parent f4337fb commit 3fbd92b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
6 changes: 2 additions & 4 deletions gentest/fixtures/YGFlexDirectionTest.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
</div>

<!-- gentest.rb will swap margin-start to margin-left. This is needed to use YGEdgeStart instead of YGEdgeLeft in the generated tests -->
<!-- TODO: Yoga flips marginStart and marginEnd with rowReverse direction -->
<div id="flex_direction_row_reverse_margin_start" data-disabled="true" style="height: 100px; width: 100px; flex-direction: row-reverse; margin-start: 100px;">
<div id="flex_direction_row_reverse_margin_start" style="height: 100px; width: 100px; flex-direction: row-reverse; margin-start: 100px;">
<div style="width: 10px;"></div>
<div style="width: 10px;"></div>
<div style="width: 10px;"></div>
Expand All @@ -54,8 +53,7 @@
<div style="width: 10px;"></div>
</div>

<!-- TODO: Yoga flips marginStart and marginEnd with rowReverse direction -->
<div id="flex_direction_row_reverse_margin_end" data-disabled="true" style="height: 100px; width: 100px; flex-direction: row-reverse; margin-end: 100px;">
<div id="flex_direction_row_reverse_margin_end" style="height: 100px; width: 100px; flex-direction: row-reverse; margin-end: 100px;">
<div style="width: 10px;"></div>
<div style="width: 10px;"></div>
<div style="width: 10px;"></div>
Expand Down
2 changes: 0 additions & 2 deletions java/tests/com/facebook/yoga/YGFlexDirectionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,6 @@ public void test_flex_direction_row_reverse_margin_left() {
}

@Test
@Ignore
public void test_flex_direction_row_reverse_margin_start() {
YogaConfig config = YogaConfigFactory.create();
config.setExperimentalFeatureEnabled(YogaExperimentalFeature.ABSOLUTE_PERCENTAGE_AGAINST_PADDING_EDGE, true);
Expand Down Expand Up @@ -638,7 +637,6 @@ public void test_flex_direction_row_reverse_margin_right() {
}

@Test
@Ignore
public void test_flex_direction_row_reverse_margin_end() {
YogaConfig config = YogaConfigFactory.create();
config.setExperimentalFeatureEnabled(YogaExperimentalFeature.ABSOLUTE_PERCENTAGE_AGAINST_PADDING_EDGE, true);
Expand Down
4 changes: 2 additions & 2 deletions javascript/tests/generated/YGFlexDirectionTest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ test('flex_direction_row_reverse_margin_left', () => {
config.free();
}
});
test.skip('flex_direction_row_reverse_margin_start', () => {
test('flex_direction_row_reverse_margin_start', () => {
const config = Yoga.Config.create();
let root;

Expand Down Expand Up @@ -690,7 +690,7 @@ test('flex_direction_row_reverse_margin_right', () => {
config.free();
}
});
test.skip('flex_direction_row_reverse_margin_end', () => {
test('flex_direction_row_reverse_margin_end', () => {
const config = Yoga.Config.create();
let root;

Expand Down
4 changes: 0 additions & 4 deletions tests/generated/YGFlexDirectionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,6 @@ TEST(YogaTest, flex_direction_row_reverse_margin_left) {
}

TEST(YogaTest, flex_direction_row_reverse_margin_start) {
GTEST_SKIP();

const YGConfigRef config = YGConfigNew();
YGConfigSetExperimentalFeatureEnabled(config, YGExperimentalFeatureAbsolutePercentageAgainstPaddingEdge, true);

Expand Down Expand Up @@ -634,8 +632,6 @@ TEST(YogaTest, flex_direction_row_reverse_margin_right) {
}

TEST(YogaTest, flex_direction_row_reverse_margin_end) {
GTEST_SKIP();

const YGConfigRef config = YGConfigNew();
YGConfigSetExperimentalFeatureEnabled(config, YGExperimentalFeatureAbsolutePercentageAgainstPaddingEdge, true);

Expand Down

0 comments on commit 3fbd92b

Please sign in to comment.