44 * This source code is licensed under the MIT license found in the
55 * LICENSE file in the root directory of this source tree.
66 *
7- * @generated SignedSource<<bcf4b24144910012045652321b43e373 >>
8- * generated by gentest/gentest-driver .ts from gentest/fixtures/YGPercentageTest.html
7+ * @generated SignedSource<<fe83d0aace9c561f0b18e607d36ed19b >>
8+ * generated by gentest/src/GentestDriver .ts from gentest/fixtures/YGPercentageTest.html
99 */
1010
1111package com .facebook .yoga ;
@@ -32,10 +32,10 @@ public void test_percentage_width_height() {
3232 YogaConfig config = YogaConfigFactory .create ();
3333
3434 final YogaNode root = createNode (config );
35- root .setFlexDirection (YogaFlexDirection .ROW );
3635 root .setPositionType (YogaPositionType .ABSOLUTE );
3736 root .setWidth (200f );
3837 root .setHeight (200f );
38+ root .setFlexDirection (YogaFlexDirection .ROW );
3939
4040 final YogaNode root_child0 = createNode (config );
4141 root_child0 .setWidthPercent (30f );
@@ -73,16 +73,16 @@ public void test_percentage_position_left_top() {
7373 YogaConfig config = YogaConfigFactory .create ();
7474
7575 final YogaNode root = createNode (config );
76- root .setFlexDirection (YogaFlexDirection .ROW );
7776 root .setPositionType (YogaPositionType .ABSOLUTE );
7877 root .setWidth (400f );
7978 root .setHeight (400f );
79+ root .setFlexDirection (YogaFlexDirection .ROW );
8080
8181 final YogaNode root_child0 = createNode (config );
82- root_child0 .setPositionPercent (YogaEdge .LEFT , 10f );
83- root_child0 .setPositionPercent (YogaEdge .TOP , 20f );
8482 root_child0 .setWidthPercent (45f );
8583 root_child0 .setHeightPercent (55f );
84+ root_child0 .setPositionPercent (YogaEdge .LEFT , 10f );
85+ root_child0 .setPositionPercent (YogaEdge .TOP , 20f );
8686 root .addChildAt (root_child0 , 0 );
8787 root .setDirection (YogaDirection .LTR );
8888 root .calculateLayout (YogaConstants .UNDEFINED , YogaConstants .UNDEFINED );
@@ -116,16 +116,16 @@ public void test_percentage_position_bottom_right() {
116116 YogaConfig config = YogaConfigFactory .create ();
117117
118118 final YogaNode root = createNode (config );
119- root .setFlexDirection (YogaFlexDirection .ROW );
120119 root .setPositionType (YogaPositionType .ABSOLUTE );
121120 root .setWidth (500f );
122121 root .setHeight (500f );
122+ root .setFlexDirection (YogaFlexDirection .ROW );
123123
124124 final YogaNode root_child0 = createNode (config );
125- root_child0 .setPositionPercent (YogaEdge .RIGHT , 20f );
126- root_child0 .setPositionPercent (YogaEdge .BOTTOM , 10f );
127125 root_child0 .setWidthPercent (55f );
128126 root_child0 .setHeightPercent (15f );
127+ root_child0 .setPositionPercent (YogaEdge .BOTTOM , 10f );
128+ root_child0 .setPositionPercent (YogaEdge .RIGHT , 20f );
129129 root .addChildAt (root_child0 , 0 );
130130 root .setDirection (YogaDirection .LTR );
131131 root .calculateLayout (YogaConstants .UNDEFINED , YogaConstants .UNDEFINED );
@@ -159,10 +159,10 @@ public void test_percentage_flex_basis() {
159159 YogaConfig config = YogaConfigFactory .create ();
160160
161161 final YogaNode root = createNode (config );
162- root .setFlexDirection (YogaFlexDirection .ROW );
163162 root .setPositionType (YogaPositionType .ABSOLUTE );
164163 root .setWidth (200f );
165164 root .setHeight (200f );
165+ root .setFlexDirection (YogaFlexDirection .ROW );
166166
167167 final YogaNode root_child0 = createNode (config );
168168 root_child0 .setFlexGrow (1f );
@@ -326,10 +326,10 @@ public void test_percentage_flex_basis_main_max_height() {
326326 YogaConfig config = YogaConfigFactory .create ();
327327
328328 final YogaNode root = createNode (config );
329- root .setFlexDirection (YogaFlexDirection .ROW );
330329 root .setPositionType (YogaPositionType .ABSOLUTE );
331330 root .setWidth (200f );
332331 root .setHeight (200f );
332+ root .setFlexDirection (YogaFlexDirection .ROW );
333333
334334 final YogaNode root_child0 = createNode (config );
335335 root_child0 .setFlexGrow (1f );
@@ -441,10 +441,10 @@ public void test_percentage_flex_basis_main_max_width() {
441441 YogaConfig config = YogaConfigFactory .create ();
442442
443443 final YogaNode root = createNode (config );
444- root .setFlexDirection (YogaFlexDirection .ROW );
445444 root .setPositionType (YogaPositionType .ABSOLUTE );
446445 root .setWidth (200f );
447446 root .setHeight (200f );
447+ root .setFlexDirection (YogaFlexDirection .ROW );
448448
449449 final YogaNode root_child0 = createNode (config );
450450 root_child0 .setFlexGrow (1f );
@@ -557,10 +557,10 @@ public void test_percentage_flex_basis_main_min_width() {
557557 YogaConfig config = YogaConfigFactory .create ();
558558
559559 final YogaNode root = createNode (config );
560- root .setFlexDirection (YogaFlexDirection .ROW );
561560 root .setPositionType (YogaPositionType .ABSOLUTE );
562561 root .setWidth (200f );
563562 root .setHeight (200f );
563+ root .setFlexDirection (YogaFlexDirection .ROW );
564564
565565 final YogaNode root_child0 = createNode (config );
566566 root_child0 .setFlexGrow (1f );
@@ -679,39 +679,21 @@ public void test_percentage_multiple_nested_with_padding_margin_and_percentage_v
679679 final YogaNode root_child0 = createNode (config );
680680 root_child0 .setFlexGrow (1f );
681681 root_child0 .setFlexBasisPercent (10f );
682- root_child0 .setMargin (YogaEdge .LEFT , 5f );
683- root_child0 .setMargin (YogaEdge .TOP , 5f );
684- root_child0 .setMargin (YogaEdge .RIGHT , 5f );
685- root_child0 .setMargin (YogaEdge .BOTTOM , 5f );
686- root_child0 .setPadding (YogaEdge .LEFT , 3 );
687- root_child0 .setPadding (YogaEdge .TOP , 3 );
688- root_child0 .setPadding (YogaEdge .RIGHT , 3 );
689- root_child0 .setPadding (YogaEdge .BOTTOM , 3 );
690682 root_child0 .setMinWidthPercent (60f );
683+ root_child0 .setMargin (YogaEdge .ALL , 5f );
684+ root_child0 .setPadding (YogaEdge .ALL , 3 );
691685 root .addChildAt (root_child0 , 0 );
692686
693687 final YogaNode root_child0_child0 = createNode (config );
694- root_child0_child0 .setMargin (YogaEdge .LEFT , 5f );
695- root_child0_child0 .setMargin (YogaEdge .TOP , 5f );
696- root_child0_child0 .setMargin (YogaEdge .RIGHT , 5f );
697- root_child0_child0 .setMargin (YogaEdge .BOTTOM , 5f );
698- root_child0_child0 .setPaddingPercent (YogaEdge .LEFT , 3 );
699- root_child0_child0 .setPaddingPercent (YogaEdge .TOP , 3 );
700- root_child0_child0 .setPaddingPercent (YogaEdge .RIGHT , 3 );
701- root_child0_child0 .setPaddingPercent (YogaEdge .BOTTOM , 3 );
702688 root_child0_child0 .setWidthPercent (50f );
689+ root_child0_child0 .setMargin (YogaEdge .ALL , 5f );
690+ root_child0_child0 .setPaddingPercent (YogaEdge .ALL , 3 );
703691 root_child0 .addChildAt (root_child0_child0 , 0 );
704692
705693 final YogaNode root_child0_child0_child0 = createNode (config );
706- root_child0_child0_child0 .setMarginPercent (YogaEdge .LEFT , 5f );
707- root_child0_child0_child0 .setMarginPercent (YogaEdge .TOP , 5f );
708- root_child0_child0_child0 .setMarginPercent (YogaEdge .RIGHT , 5f );
709- root_child0_child0_child0 .setMarginPercent (YogaEdge .BOTTOM , 5f );
710- root_child0_child0_child0 .setPadding (YogaEdge .LEFT , 3 );
711- root_child0_child0_child0 .setPadding (YogaEdge .TOP , 3 );
712- root_child0_child0_child0 .setPadding (YogaEdge .RIGHT , 3 );
713- root_child0_child0_child0 .setPadding (YogaEdge .BOTTOM , 3 );
714694 root_child0_child0_child0 .setWidthPercent (45f );
695+ root_child0_child0_child0 .setMarginPercent (YogaEdge .ALL , 5f );
696+ root_child0_child0_child0 .setPadding (YogaEdge .ALL , 3 );
715697 root_child0_child0 .addChildAt (root_child0_child0_child0 , 0 );
716698
717699 final YogaNode root_child1 = createNode (config );
@@ -787,10 +769,7 @@ public void test_percentage_margin_should_calculate_based_only_on_width() {
787769
788770 final YogaNode root_child0 = createNode (config );
789771 root_child0 .setFlexGrow (1f );
790- root_child0 .setMarginPercent (YogaEdge .LEFT , 10f );
791- root_child0 .setMarginPercent (YogaEdge .TOP , 10f );
792- root_child0 .setMarginPercent (YogaEdge .RIGHT , 10f );
793- root_child0 .setMarginPercent (YogaEdge .BOTTOM , 10f );
772+ root_child0 .setMarginPercent (YogaEdge .ALL , 10f );
794773 root .addChildAt (root_child0 , 0 );
795774
796775 final YogaNode root_child0_child0 = createNode (config );
@@ -845,10 +824,7 @@ public void test_percentage_padding_should_calculate_based_only_on_width() {
845824
846825 final YogaNode root_child0 = createNode (config );
847826 root_child0 .setFlexGrow (1f );
848- root_child0 .setPaddingPercent (YogaEdge .LEFT , 10 );
849- root_child0 .setPaddingPercent (YogaEdge .TOP , 10 );
850- root_child0 .setPaddingPercent (YogaEdge .RIGHT , 10 );
851- root_child0 .setPaddingPercent (YogaEdge .BOTTOM , 10 );
827+ root_child0 .setPaddingPercent (YogaEdge .ALL , 10 );
852828 root .addChildAt (root_child0 , 0 );
853829
854830 final YogaNode root_child0_child0 = createNode (config );
@@ -903,8 +879,8 @@ public void test_percentage_absolute_position() {
903879
904880 final YogaNode root_child0 = createNode (config );
905881 root_child0 .setPositionType (YogaPositionType .ABSOLUTE );
906- root_child0 .setPositionPercent (YogaEdge .LEFT , 30f );
907882 root_child0 .setPositionPercent (YogaEdge .TOP , 10f );
883+ root_child0 .setPositionPercent (YogaEdge .LEFT , 30f );
908884 root_child0 .setWidth (10f );
909885 root_child0 .setHeight (10f );
910886 root .addChildAt (root_child0 , 0 );
@@ -978,8 +954,8 @@ public void test_percent_within_flex_grow() {
978954 YogaConfig config = YogaConfigFactory .create ();
979955
980956 final YogaNode root = createNode (config );
981- root .setFlexDirection (YogaFlexDirection .ROW );
982957 root .setPositionType (YogaPositionType .ABSOLUTE );
958+ root .setFlexDirection (YogaFlexDirection .ROW );
983959 root .setWidth (350f );
984960 root .setHeight (100f );
985961
@@ -1060,11 +1036,11 @@ public void test_percentage_container_in_wrapping_container() {
10601036 YogaConfig config = YogaConfigFactory .create ();
10611037
10621038 final YogaNode root = createNode (config );
1063- root .setJustifyContent (YogaJustify .CENTER );
1064- root .setAlignItems (YogaAlign .CENTER );
10651039 root .setPositionType (YogaPositionType .ABSOLUTE );
1040+ root .setAlignItems (YogaAlign .CENTER );
10661041 root .setWidth (200f );
10671042 root .setHeight (200f );
1043+ root .setJustifyContent (YogaJustify .CENTER );
10681044
10691045 final YogaNode root_child0 = createNode (config );
10701046 root .addChildAt (root_child0 , 0 );
@@ -1151,11 +1127,11 @@ public void test_percent_absolute_position() {
11511127 root .setHeight (50f );
11521128
11531129 final YogaNode root_child0 = createNode (config );
1154- root_child0 .setFlexDirection (YogaFlexDirection .ROW );
1155- root_child0 .setPositionType (YogaPositionType .ABSOLUTE );
1156- root_child0 .setPositionPercent (YogaEdge .LEFT , 50f );
1157- root_child0 .setWidthPercent (100f );
11581130 root_child0 .setHeight (50f );
1131+ root_child0 .setWidthPercent (100f );
1132+ root_child0 .setPositionPercent (YogaEdge .LEFT , 50f );
1133+ root_child0 .setPositionType (YogaPositionType .ABSOLUTE );
1134+ root_child0 .setFlexDirection (YogaFlexDirection .ROW );
11591135 root .addChildAt (root_child0 , 0 );
11601136
11611137 final YogaNode root_child0_child0 = createNode (config );
@@ -1217,8 +1193,8 @@ public void test_percent_of_minmax_main() {
12171193 YogaConfig config = YogaConfigFactory .create ();
12181194
12191195 final YogaNode root = createNode (config );
1220- root .setFlexDirection (YogaFlexDirection .ROW );
12211196 root .setPositionType (YogaPositionType .ABSOLUTE );
1197+ root .setFlexDirection (YogaFlexDirection .ROW );
12221198 root .setMinWidth (60f );
12231199 root .setMaxWidth (60f );
12241200 root .setHeight (50f );
@@ -1260,8 +1236,8 @@ public void test_percent_of_min_main() {
12601236 YogaConfig config = YogaConfigFactory .create ();
12611237
12621238 final YogaNode root = createNode (config );
1263- root .setFlexDirection (YogaFlexDirection .ROW );
12641239 root .setPositionType (YogaPositionType .ABSOLUTE );
1240+ root .setFlexDirection (YogaFlexDirection .ROW );
12651241 root .setMinWidth (60f );
12661242 root .setHeight (50f );
12671243
@@ -1302,8 +1278,8 @@ public void test_percent_of_min_main_multiple() {
13021278 YogaConfig config = YogaConfigFactory .create ();
13031279
13041280 final YogaNode root = createNode (config );
1305- root .setFlexDirection (YogaFlexDirection .ROW );
13061281 root .setPositionType (YogaPositionType .ABSOLUTE );
1282+ root .setFlexDirection (YogaFlexDirection .ROW );
13071283 root .setMinWidth (60f );
13081284 root .setHeight (50f );
13091285
@@ -1374,8 +1350,8 @@ public void test_percent_of_max_main() {
13741350 YogaConfig config = YogaConfigFactory .create ();
13751351
13761352 final YogaNode root = createNode (config );
1377- root .setFlexDirection (YogaFlexDirection .ROW );
13781353 root .setPositionType (YogaPositionType .ABSOLUTE );
1354+ root .setFlexDirection (YogaFlexDirection .ROW );
13791355 root .setMaxWidth (60f );
13801356 root .setHeight (50f );
13811357
@@ -1462,9 +1438,9 @@ public void test_percent_absolute_of_minmax_cross_stretched() {
14621438 root .setHeight (50f );
14631439
14641440 final YogaNode root_child0 = createNode (config );
1465- root_child0 .setPositionType (YogaPositionType .ABSOLUTE );
14661441 root_child0 .setWidthPercent (50f );
14671442 root_child0 .setHeight (20f );
1443+ root_child0 .setPositionType (YogaPositionType .ABSOLUTE );
14681444 root .addChildAt (root_child0 , 0 );
14691445 root .setDirection (YogaDirection .LTR );
14701446 root .calculateLayout (YogaConstants .UNDEFINED , YogaConstants .UNDEFINED );
@@ -1498,11 +1474,11 @@ public void test_percent_of_minmax_cross_unstretched() {
14981474 YogaConfig config = YogaConfigFactory .create ();
14991475
15001476 final YogaNode root = createNode (config );
1501- root .setAlignItems (YogaAlign .FLEX_START );
15021477 root .setPositionType (YogaPositionType .ABSOLUTE );
15031478 root .setMinWidth (60f );
15041479 root .setMaxWidth (60f );
15051480 root .setHeight (50f );
1481+ root .setAlignItems (YogaAlign .FLEX_START );
15061482
15071483 final YogaNode root_child0 = createNode (config );
15081484 root_child0 .setWidthPercent (50f );
@@ -1541,10 +1517,10 @@ public void test_percent_of_min_cross_unstretched() {
15411517 YogaConfig config = YogaConfigFactory .create ();
15421518
15431519 final YogaNode root = createNode (config );
1544- root .setAlignItems (YogaAlign .FLEX_START );
15451520 root .setPositionType (YogaPositionType .ABSOLUTE );
15461521 root .setMinWidth (60f );
15471522 root .setHeight (50f );
1523+ root .setAlignItems (YogaAlign .FLEX_START );
15481524
15491525 final YogaNode root_child0 = createNode (config );
15501526 root_child0 .setWidthPercent (50f );
@@ -1582,10 +1558,10 @@ public void test_percent_of_max_cross_unstretched() {
15821558 YogaConfig config = YogaConfigFactory .create ();
15831559
15841560 final YogaNode root = createNode (config );
1585- root .setAlignItems (YogaAlign .FLEX_START );
15861561 root .setPositionType (YogaPositionType .ABSOLUTE );
15871562 root .setMaxWidth (60f );
15881563 root .setHeight (50f );
1564+ root .setAlignItems (YogaAlign .FLEX_START );
15891565
15901566 final YogaNode root_child0 = createNode (config );
15911567 root_child0 .setWidthPercent (50f );
@@ -1623,8 +1599,8 @@ public void test_percentage_nested_min_width() {
16231599 YogaConfig config = YogaConfigFactory .create ();
16241600
16251601 final YogaNode root = createNode (config );
1626- root .setFlexDirection (YogaFlexDirection .ROW );
16271602 root .setPositionType (YogaPositionType .ABSOLUTE );
1603+ root .setFlexDirection (YogaFlexDirection .ROW );
16281604 root .setWidth (40f );
16291605 root .setHeight (20f );
16301606
@@ -1679,8 +1655,8 @@ public void test_percentage_nested_max_width() {
16791655 YogaConfig config = YogaConfigFactory .create ();
16801656
16811657 final YogaNode root = createNode (config );
1682- root .setFlexDirection (YogaFlexDirection .ROW );
16831658 root .setPositionType (YogaPositionType .ABSOLUTE );
1659+ root .setFlexDirection (YogaFlexDirection .ROW );
16841660 root .setWidth (40f );
16851661 root .setHeight (20f );
16861662
0 commit comments