Revamp tests for row reverse + border after fix
Summary: this is fixed now so we can turn it on Reviewed By: NickGerleman Differential Revision: D50348206 fbshipit-source-id: 61c2a72164c6f0ee91b1b5b576d3f129e8cfbe40
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b52d6ce7f2
commit
b558059b74
@@ -95,28 +95,28 @@ public class YGAspectRatioTest {
|
||||
|
||||
assertEquals(0f, root_child0_child0.getLayoutX(), 0.0f);
|
||||
assertEquals(0f, root_child0_child0.getLayoutY(), 0.0f);
|
||||
assertEquals(300f, root_child0_child0.getLayoutWidth(), 0.0f);
|
||||
assertEquals(197f, root_child0_child0.getLayoutHeight(), 0.0f);
|
||||
assertEquals(285f, root_child0_child0.getLayoutWidth(), 0.0f);
|
||||
assertEquals(187f, root_child0_child0.getLayoutHeight(), 0.0f);
|
||||
|
||||
assertEquals(0f, root_child0_child0_child0.getLayoutX(), 0.0f);
|
||||
assertEquals(0f, root_child0_child0_child0.getLayoutY(), 0.0f);
|
||||
assertEquals(197f, root_child0_child0_child0.getLayoutWidth(), 0.0f);
|
||||
assertEquals(197f, root_child0_child0_child0.getLayoutHeight(), 0.0f);
|
||||
assertEquals(187f, root_child0_child0_child0.getLayoutWidth(), 0.0f);
|
||||
assertEquals(187f, root_child0_child0_child0.getLayoutHeight(), 0.0f);
|
||||
|
||||
assertEquals(197f, root_child0_child0_child1.getLayoutX(), 0.0f);
|
||||
assertEquals(187f, root_child0_child0_child1.getLayoutX(), 0.0f);
|
||||
assertEquals(0f, root_child0_child0_child1.getLayoutY(), 0.0f);
|
||||
assertEquals(5f, root_child0_child0_child1.getLayoutWidth(), 0.0f);
|
||||
assertEquals(197f, root_child0_child0_child1.getLayoutHeight(), 0.0f);
|
||||
assertEquals(187f, root_child0_child0_child1.getLayoutHeight(), 0.0f);
|
||||
|
||||
assertEquals(202f, root_child0_child0_child2.getLayoutX(), 0.0f);
|
||||
assertEquals(192f, root_child0_child0_child2.getLayoutX(), 0.0f);
|
||||
assertEquals(0f, root_child0_child0_child2.getLayoutY(), 0.0f);
|
||||
assertEquals(98f, root_child0_child0_child2.getLayoutWidth(), 0.0f);
|
||||
assertEquals(197f, root_child0_child0_child2.getLayoutHeight(), 0.0f);
|
||||
assertEquals(93f, root_child0_child0_child2.getLayoutWidth(), 0.0f);
|
||||
assertEquals(187f, root_child0_child0_child2.getLayoutHeight(), 0.0f);
|
||||
|
||||
assertEquals(0f, root_child0_child0_child2_child0.getLayoutX(), 0.0f);
|
||||
assertEquals(0f, root_child0_child0_child2_child0.getLayoutY(), 0.0f);
|
||||
assertEquals(98f, root_child0_child0_child2_child0.getLayoutWidth(), 0.0f);
|
||||
assertEquals(197f, root_child0_child0_child2_child0.getLayoutHeight(), 0.0f);
|
||||
assertEquals(93f, root_child0_child0_child2_child0.getLayoutWidth(), 0.0f);
|
||||
assertEquals(187f, root_child0_child0_child2_child0.getLayoutHeight(), 0.0f);
|
||||
|
||||
assertEquals(0f, root_child0_child0_child2_child0_child0.getLayoutX(), 0.0f);
|
||||
assertEquals(0f, root_child0_child0_child2_child0_child0.getLayoutY(), 0.0f);
|
||||
@@ -125,8 +125,8 @@ public class YGAspectRatioTest {
|
||||
|
||||
assertEquals(0f, root_child0_child0_child2_child0_child1.getLayoutX(), 0.0f);
|
||||
assertEquals(0f, root_child0_child0_child2_child0_child1.getLayoutY(), 0.0f);
|
||||
assertEquals(98f, root_child0_child0_child2_child0_child1.getLayoutWidth(), 0.0f);
|
||||
assertEquals(197f, root_child0_child0_child2_child0_child1.getLayoutHeight(), 0.0f);
|
||||
assertEquals(93f, root_child0_child0_child2_child0_child1.getLayoutWidth(), 0.0f);
|
||||
assertEquals(187f, root_child0_child0_child2_child0_child1.getLayoutHeight(), 0.0f);
|
||||
|
||||
root.setDirection(YogaDirection.RTL);
|
||||
root.calculateLayout(YogaConstants.UNDEFINED, YogaConstants.UNDEFINED);
|
||||
@@ -141,40 +141,40 @@ public class YGAspectRatioTest {
|
||||
assertEquals(300f, root_child0.getLayoutWidth(), 0.0f);
|
||||
assertEquals(300f, root_child0.getLayoutHeight(), 0.0f);
|
||||
|
||||
assertEquals(0f, root_child0_child0.getLayoutX(), 0.0f);
|
||||
assertEquals(30f, root_child0_child0.getLayoutX(), 0.0f);
|
||||
assertEquals(0f, root_child0_child0.getLayoutY(), 0.0f);
|
||||
assertEquals(300f, root_child0_child0.getLayoutWidth(), 0.0f);
|
||||
assertEquals(197f, root_child0_child0.getLayoutHeight(), 0.0f);
|
||||
assertEquals(285f, root_child0_child0.getLayoutWidth(), 0.0f);
|
||||
assertEquals(187f, root_child0_child0.getLayoutHeight(), 0.0f);
|
||||
|
||||
assertEquals(103f, root_child0_child0_child0.getLayoutX(), 0.0f);
|
||||
assertEquals(98f, root_child0_child0_child0.getLayoutX(), 0.0f);
|
||||
assertEquals(0f, root_child0_child0_child0.getLayoutY(), 0.0f);
|
||||
assertEquals(197f, root_child0_child0_child0.getLayoutWidth(), 0.0f);
|
||||
assertEquals(197f, root_child0_child0_child0.getLayoutHeight(), 0.0f);
|
||||
assertEquals(187f, root_child0_child0_child0.getLayoutWidth(), 0.0f);
|
||||
assertEquals(187f, root_child0_child0_child0.getLayoutHeight(), 0.0f);
|
||||
|
||||
assertEquals(98f, root_child0_child0_child1.getLayoutX(), 0.0f);
|
||||
assertEquals(93f, root_child0_child0_child1.getLayoutX(), 0.0f);
|
||||
assertEquals(0f, root_child0_child0_child1.getLayoutY(), 0.0f);
|
||||
assertEquals(5f, root_child0_child0_child1.getLayoutWidth(), 0.0f);
|
||||
assertEquals(197f, root_child0_child0_child1.getLayoutHeight(), 0.0f);
|
||||
assertEquals(187f, root_child0_child0_child1.getLayoutHeight(), 0.0f);
|
||||
|
||||
assertEquals(0f, root_child0_child0_child2.getLayoutX(), 0.0f);
|
||||
assertEquals(0f, root_child0_child0_child2.getLayoutY(), 0.0f);
|
||||
assertEquals(98f, root_child0_child0_child2.getLayoutWidth(), 0.0f);
|
||||
assertEquals(197f, root_child0_child0_child2.getLayoutHeight(), 0.0f);
|
||||
assertEquals(93f, root_child0_child0_child2.getLayoutWidth(), 0.0f);
|
||||
assertEquals(187f, root_child0_child0_child2.getLayoutHeight(), 0.0f);
|
||||
|
||||
assertEquals(0f, root_child0_child0_child2_child0.getLayoutX(), 0.0f);
|
||||
assertEquals(0f, root_child0_child0_child2_child0.getLayoutY(), 0.0f);
|
||||
assertEquals(98f, root_child0_child0_child2_child0.getLayoutWidth(), 0.0f);
|
||||
assertEquals(197f, root_child0_child0_child2_child0.getLayoutHeight(), 0.0f);
|
||||
assertEquals(93f, root_child0_child0_child2_child0.getLayoutWidth(), 0.0f);
|
||||
assertEquals(187f, root_child0_child0_child2_child0.getLayoutHeight(), 0.0f);
|
||||
|
||||
assertEquals(93f, root_child0_child0_child2_child0_child0.getLayoutX(), 0.0f);
|
||||
assertEquals(88f, root_child0_child0_child2_child0_child0.getLayoutX(), 0.0f);
|
||||
assertEquals(0f, root_child0_child0_child2_child0_child0.getLayoutY(), 0.0f);
|
||||
assertEquals(5f, root_child0_child0_child2_child0_child0.getLayoutWidth(), 0.0f);
|
||||
assertEquals(0f, root_child0_child0_child2_child0_child0.getLayoutHeight(), 0.0f);
|
||||
|
||||
assertEquals(0f, root_child0_child0_child2_child0_child1.getLayoutX(), 0.0f);
|
||||
assertEquals(0f, root_child0_child0_child2_child0_child1.getLayoutY(), 0.0f);
|
||||
assertEquals(98f, root_child0_child0_child2_child0_child1.getLayoutWidth(), 0.0f);
|
||||
assertEquals(197f, root_child0_child0_child2_child0_child1.getLayoutHeight(), 0.0f);
|
||||
assertEquals(93f, root_child0_child0_child2_child0_child1.getLayoutWidth(), 0.0f);
|
||||
assertEquals(187f, root_child0_child0_child2_child0_child1.getLayoutHeight(), 0.0f);
|
||||
}
|
||||
|
||||
private YogaNode createNode(YogaConfig config) {
|
||||
|
@@ -1329,7 +1329,6 @@ public class YGFlexDirectionTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void test_flex_direction_row_reverse_border_start() {
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
config.setExperimentalFeatureEnabled(YogaExperimentalFeature.ABSOLUTE_PERCENTAGE_AGAINST_PADDING_EDGE, true);
|
||||
@@ -1468,7 +1467,6 @@ public class YGFlexDirectionTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void test_flex_direction_row_reverse_border_end() {
|
||||
YogaConfig config = YogaConfigFactory.create();
|
||||
config.setExperimentalFeatureEnabled(YogaExperimentalFeature.ABSOLUTE_PERCENTAGE_AGAINST_PADDING_EDGE, true);
|
||||
|
Reference in New Issue
Block a user