@@ -37,7 +37,7 @@ func TestAlignContentFlexStart(t *testing.T) {
37
37
rootChild4 .StyleSetWidth (50 )
38
38
rootChild4 .StyleSetHeight (10 )
39
39
root .InsertChild (rootChild4 , 4 )
40
- NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
40
+ CalculateLayout (root , Undefined , Undefined , DirectionLTR )
41
41
42
42
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
43
43
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -69,7 +69,7 @@ func TestAlignContentFlexStart(t *testing.T) {
69
69
assertFloatEqual (t , 50 , rootChild4 .LayoutGetWidth ())
70
70
assertFloatEqual (t , 10 , rootChild4 .LayoutGetHeight ())
71
71
72
- NodeCalculateLayout (root , Undefined , Undefined , DirectionRTL )
72
+ CalculateLayout (root , Undefined , Undefined , DirectionRTL )
73
73
74
74
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
75
75
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -132,7 +132,7 @@ func TestAlign_content_flex_start_without_height_on_children(t *testing.T) {
132
132
rootChild4 := NewNodeWithConfig (config )
133
133
rootChild4 .StyleSetWidth (50 )
134
134
root .InsertChild (rootChild4 , 4 )
135
- NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
135
+ CalculateLayout (root , Undefined , Undefined , DirectionLTR )
136
136
137
137
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
138
138
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -164,7 +164,7 @@ func TestAlign_content_flex_start_without_height_on_children(t *testing.T) {
164
164
assertFloatEqual (t , 50 , rootChild4 .LayoutGetWidth ())
165
165
assertFloatEqual (t , 0 , rootChild4 .LayoutGetHeight ())
166
166
167
- NodeCalculateLayout (root , Undefined , Undefined , DirectionRTL )
167
+ CalculateLayout (root , Undefined , Undefined , DirectionRTL )
168
168
169
169
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
170
170
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -232,7 +232,7 @@ func TestAlign_content_flex_start_with_flex(t *testing.T) {
232
232
rootChild4 := NewNodeWithConfig (config )
233
233
rootChild4 .StyleSetWidth (50 )
234
234
root .InsertChild (rootChild4 , 4 )
235
- NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
235
+ CalculateLayout (root , Undefined , Undefined , DirectionLTR )
236
236
237
237
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
238
238
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -264,7 +264,7 @@ func TestAlign_content_flex_start_with_flex(t *testing.T) {
264
264
assertFloatEqual (t , 50 , rootChild4 .LayoutGetWidth ())
265
265
assertFloatEqual (t , 0 , rootChild4 .LayoutGetHeight ())
266
266
267
- NodeCalculateLayout (root , Undefined , Undefined , DirectionRTL )
267
+ CalculateLayout (root , Undefined , Undefined , DirectionRTL )
268
268
269
269
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
270
270
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -330,7 +330,7 @@ func TestAlign_content_flex_end(t *testing.T) {
330
330
rootChild4 .StyleSetWidth (50 )
331
331
rootChild4 .StyleSetHeight (10 )
332
332
root .InsertChild (rootChild4 , 4 )
333
- NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
333
+ CalculateLayout (root , Undefined , Undefined , DirectionLTR )
334
334
335
335
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
336
336
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -362,7 +362,7 @@ func TestAlign_content_flex_end(t *testing.T) {
362
362
assertFloatEqual (t , 50 , rootChild4 .LayoutGetWidth ())
363
363
assertFloatEqual (t , 10 , rootChild4 .LayoutGetHeight ())
364
364
365
- NodeCalculateLayout (root , Undefined , Undefined , DirectionRTL )
365
+ CalculateLayout (root , Undefined , Undefined , DirectionRTL )
366
366
367
367
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
368
368
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -423,7 +423,7 @@ func TestAlign_content_stretch(t *testing.T) {
423
423
rootChild4 := NewNodeWithConfig (config )
424
424
rootChild4 .StyleSetWidth (50 )
425
425
root .InsertChild (rootChild4 , 4 )
426
- NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
426
+ CalculateLayout (root , Undefined , Undefined , DirectionLTR )
427
427
428
428
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
429
429
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -455,7 +455,7 @@ func TestAlign_content_stretch(t *testing.T) {
455
455
assertFloatEqual (t , 50 , rootChild4 .LayoutGetWidth ())
456
456
assertFloatEqual (t , 0 , rootChild4 .LayoutGetHeight ())
457
457
458
- NodeCalculateLayout (root , Undefined , Undefined , DirectionRTL )
458
+ CalculateLayout (root , Undefined , Undefined , DirectionRTL )
459
459
460
460
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
461
461
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -522,7 +522,7 @@ func TestAlign_content_spacebetween(t *testing.T) {
522
522
rootChild4 .StyleSetWidth (50 )
523
523
rootChild4 .StyleSetHeight (10 )
524
524
root .InsertChild (rootChild4 , 4 )
525
- NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
525
+ CalculateLayout (root , Undefined , Undefined , DirectionLTR )
526
526
527
527
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
528
528
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -554,7 +554,7 @@ func TestAlign_content_spacebetween(t *testing.T) {
554
554
assertFloatEqual (t , 50 , rootChild4 .LayoutGetWidth ())
555
555
assertFloatEqual (t , 10 , rootChild4 .LayoutGetHeight ())
556
556
557
- NodeCalculateLayout (root , Undefined , Undefined , DirectionRTL )
557
+ CalculateLayout (root , Undefined , Undefined , DirectionRTL )
558
558
559
559
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
560
560
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -623,7 +623,7 @@ func TestAlign_content_spacearound(t *testing.T) {
623
623
rootChild4 .StyleSetWidth (50 )
624
624
rootChild4 .StyleSetHeight (10 )
625
625
root .InsertChild (rootChild4 , 4 )
626
- NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
626
+ CalculateLayout (root , Undefined , Undefined , DirectionLTR )
627
627
628
628
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
629
629
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -655,7 +655,7 @@ func TestAlign_content_spacearound(t *testing.T) {
655
655
assertFloatEqual (t , 50 , rootChild4 .LayoutGetWidth ())
656
656
assertFloatEqual (t , 10 , rootChild4 .LayoutGetHeight ())
657
657
658
- NodeCalculateLayout (root , Undefined , Undefined , DirectionRTL )
658
+ CalculateLayout (root , Undefined , Undefined , DirectionRTL )
659
659
660
660
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
661
661
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -717,7 +717,7 @@ func TestAlign_content_stretch_row(t *testing.T) {
717
717
rootChild4 := NewNodeWithConfig (config )
718
718
rootChild4 .StyleSetWidth (50 )
719
719
root .InsertChild (rootChild4 , 4 )
720
- NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
720
+ CalculateLayout (root , Undefined , Undefined , DirectionLTR )
721
721
722
722
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
723
723
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -749,7 +749,7 @@ func TestAlign_content_stretch_row(t *testing.T) {
749
749
assertFloatEqual (t , 50 , rootChild4 .LayoutGetWidth ())
750
750
assertFloatEqual (t , 50 , rootChild4 .LayoutGetHeight ())
751
751
752
- NodeCalculateLayout (root , Undefined , Undefined , DirectionRTL )
752
+ CalculateLayout (root , Undefined , Undefined , DirectionRTL )
753
753
754
754
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
755
755
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -817,7 +817,7 @@ func TestAlign_content_stretch_row_with_children(t *testing.T) {
817
817
rootChild4 := NewNodeWithConfig (config )
818
818
rootChild4 .StyleSetWidth (50 )
819
819
root .InsertChild (rootChild4 , 4 )
820
- NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
820
+ CalculateLayout (root , Undefined , Undefined , DirectionLTR )
821
821
822
822
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
823
823
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -854,7 +854,7 @@ func TestAlign_content_stretch_row_with_children(t *testing.T) {
854
854
assertFloatEqual (t , 50 , rootChild4 .LayoutGetWidth ())
855
855
assertFloatEqual (t , 50 , rootChild4 .LayoutGetHeight ())
856
856
857
- NodeCalculateLayout (root , Undefined , Undefined , DirectionRTL )
857
+ CalculateLayout (root , Undefined , Undefined , DirectionRTL )
858
858
859
859
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
860
860
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -927,7 +927,7 @@ func TestAlign_content_stretch_row_with_flex(t *testing.T) {
927
927
rootChild4 := NewNodeWithConfig (config )
928
928
rootChild4 .StyleSetWidth (50 )
929
929
root .InsertChild (rootChild4 , 4 )
930
- NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
930
+ CalculateLayout (root , Undefined , Undefined , DirectionLTR )
931
931
932
932
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
933
933
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -959,7 +959,7 @@ func TestAlign_content_stretch_row_with_flex(t *testing.T) {
959
959
assertFloatEqual (t , 50 , rootChild4 .LayoutGetWidth ())
960
960
assertFloatEqual (t , 100 , rootChild4 .LayoutGetHeight ())
961
961
962
- NodeCalculateLayout (root , Undefined , Undefined , DirectionRTL )
962
+ CalculateLayout (root , Undefined , Undefined , DirectionRTL )
963
963
964
964
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
965
965
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -1026,7 +1026,7 @@ func TestAlign_content_stretch_row_with_flex_no_shrink(t *testing.T) {
1026
1026
rootChild4 := NewNodeWithConfig (config )
1027
1027
rootChild4 .StyleSetWidth (50 )
1028
1028
root .InsertChild (rootChild4 , 4 )
1029
- NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
1029
+ CalculateLayout (root , Undefined , Undefined , DirectionLTR )
1030
1030
1031
1031
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
1032
1032
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -1058,7 +1058,7 @@ func TestAlign_content_stretch_row_with_flex_no_shrink(t *testing.T) {
1058
1058
assertFloatEqual (t , 50 , rootChild4 .LayoutGetWidth ())
1059
1059
assertFloatEqual (t , 100 , rootChild4 .LayoutGetHeight ())
1060
1060
1061
- NodeCalculateLayout (root , Undefined , Undefined , DirectionRTL )
1061
+ CalculateLayout (root , Undefined , Undefined , DirectionRTL )
1062
1062
1063
1063
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
1064
1064
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -1128,7 +1128,7 @@ func TestAlign_content_stretch_row_with_margin(t *testing.T) {
1128
1128
rootChild4 := NewNodeWithConfig (config )
1129
1129
rootChild4 .StyleSetWidth (50 )
1130
1130
root .InsertChild (rootChild4 , 4 )
1131
- NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
1131
+ CalculateLayout (root , Undefined , Undefined , DirectionLTR )
1132
1132
1133
1133
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
1134
1134
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -1160,7 +1160,7 @@ func TestAlign_content_stretch_row_with_margin(t *testing.T) {
1160
1160
assertFloatEqual (t , 50 , rootChild4 .LayoutGetWidth ())
1161
1161
assertFloatEqual (t , 20 , rootChild4 .LayoutGetHeight ())
1162
1162
1163
- NodeCalculateLayout (root , Undefined , Undefined , DirectionRTL )
1163
+ CalculateLayout (root , Undefined , Undefined , DirectionRTL )
1164
1164
1165
1165
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
1166
1166
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -1230,7 +1230,7 @@ func TestAlign_content_stretch_row_with_padding(t *testing.T) {
1230
1230
rootChild4 := NewNodeWithConfig (config )
1231
1231
rootChild4 .StyleSetWidth (50 )
1232
1232
root .InsertChild (rootChild4 , 4 )
1233
- NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
1233
+ CalculateLayout (root , Undefined , Undefined , DirectionLTR )
1234
1234
1235
1235
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
1236
1236
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -1262,7 +1262,7 @@ func TestAlign_content_stretch_row_with_padding(t *testing.T) {
1262
1262
assertFloatEqual (t , 50 , rootChild4 .LayoutGetWidth ())
1263
1263
assertFloatEqual (t , 50 , rootChild4 .LayoutGetHeight ())
1264
1264
1265
- NodeCalculateLayout (root , Undefined , Undefined , DirectionRTL )
1265
+ CalculateLayout (root , Undefined , Undefined , DirectionRTL )
1266
1266
1267
1267
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
1268
1268
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -1312,7 +1312,7 @@ func TestAlign_content_stretch_row_with_single_row(t *testing.T) {
1312
1312
rootChild1 := NewNodeWithConfig (config )
1313
1313
rootChild1 .StyleSetWidth (50 )
1314
1314
root .InsertChild (rootChild1 , 1 )
1315
- NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
1315
+ CalculateLayout (root , Undefined , Undefined , DirectionLTR )
1316
1316
1317
1317
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
1318
1318
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -1329,7 +1329,7 @@ func TestAlign_content_stretch_row_with_single_row(t *testing.T) {
1329
1329
assertFloatEqual (t , 50 , rootChild1 .LayoutGetWidth ())
1330
1330
assertFloatEqual (t , 100 , rootChild1 .LayoutGetHeight ())
1331
1331
1332
- NodeCalculateLayout (root , Undefined , Undefined , DirectionRTL )
1332
+ CalculateLayout (root , Undefined , Undefined , DirectionRTL )
1333
1333
1334
1334
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
1335
1335
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -1377,7 +1377,7 @@ func TestAlign_content_stretch_row_with_fixed_height(t *testing.T) {
1377
1377
rootChild4 := NewNodeWithConfig (config )
1378
1378
rootChild4 .StyleSetWidth (50 )
1379
1379
root .InsertChild (rootChild4 , 4 )
1380
- NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
1380
+ CalculateLayout (root , Undefined , Undefined , DirectionLTR )
1381
1381
1382
1382
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
1383
1383
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -1409,7 +1409,7 @@ func TestAlign_content_stretch_row_with_fixed_height(t *testing.T) {
1409
1409
assertFloatEqual (t , 50 , rootChild4 .LayoutGetWidth ())
1410
1410
assertFloatEqual (t , 20 , rootChild4 .LayoutGetHeight ())
1411
1411
1412
- NodeCalculateLayout (root , Undefined , Undefined , DirectionRTL )
1412
+ CalculateLayout (root , Undefined , Undefined , DirectionRTL )
1413
1413
1414
1414
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
1415
1415
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -1472,7 +1472,7 @@ func TestAlign_content_stretch_row_with_max_height(t *testing.T) {
1472
1472
rootChild4 := NewNodeWithConfig (config )
1473
1473
rootChild4 .StyleSetWidth (50 )
1474
1474
root .InsertChild (rootChild4 , 4 )
1475
- NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
1475
+ CalculateLayout (root , Undefined , Undefined , DirectionLTR )
1476
1476
1477
1477
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
1478
1478
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -1504,7 +1504,7 @@ func TestAlign_content_stretch_row_with_max_height(t *testing.T) {
1504
1504
assertFloatEqual (t , 50 , rootChild4 .LayoutGetWidth ())
1505
1505
assertFloatEqual (t , 50 , rootChild4 .LayoutGetHeight ())
1506
1506
1507
- NodeCalculateLayout (root , Undefined , Undefined , DirectionRTL )
1507
+ CalculateLayout (root , Undefined , Undefined , DirectionRTL )
1508
1508
1509
1509
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
1510
1510
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -1567,7 +1567,7 @@ func TestAlign_content_stretch_row_with_min_height(t *testing.T) {
1567
1567
rootChild4 := NewNodeWithConfig (config )
1568
1568
rootChild4 .StyleSetWidth (50 )
1569
1569
root .InsertChild (rootChild4 , 4 )
1570
- NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
1570
+ CalculateLayout (root , Undefined , Undefined , DirectionLTR )
1571
1571
1572
1572
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
1573
1573
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -1599,7 +1599,7 @@ func TestAlign_content_stretch_row_with_min_height(t *testing.T) {
1599
1599
assertFloatEqual (t , 50 , rootChild4 .LayoutGetWidth ())
1600
1600
assertFloatEqual (t , 10 , rootChild4 .LayoutGetHeight ())
1601
1601
1602
- NodeCalculateLayout (root , Undefined , Undefined , DirectionRTL )
1602
+ CalculateLayout (root , Undefined , Undefined , DirectionRTL )
1603
1603
1604
1604
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
1605
1605
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -1669,7 +1669,7 @@ func TestAlign_content_stretch_column(t *testing.T) {
1669
1669
rootChild4 := NewNodeWithConfig (config )
1670
1670
rootChild4 .StyleSetHeight (50 )
1671
1671
root .InsertChild (rootChild4 , 4 )
1672
- NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
1672
+ CalculateLayout (root , Undefined , Undefined , DirectionLTR )
1673
1673
1674
1674
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
1675
1675
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -1706,7 +1706,7 @@ func TestAlign_content_stretch_column(t *testing.T) {
1706
1706
assertFloatEqual (t , 50 , rootChild4 .LayoutGetWidth ())
1707
1707
assertFloatEqual (t , 50 , rootChild4 .LayoutGetHeight ())
1708
1708
1709
- NodeCalculateLayout (root , Undefined , Undefined , DirectionRTL )
1709
+ CalculateLayout (root , Undefined , Undefined , DirectionRTL )
1710
1710
1711
1711
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
1712
1712
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -1763,7 +1763,7 @@ func TestAlign_content_stretch_is_not_overriding_align_items(t *testing.T) {
1763
1763
rootChild0Child0 .StyleSetWidth (10 )
1764
1764
rootChild0Child0 .StyleSetHeight (10 )
1765
1765
rootChild0 .InsertChild (rootChild0Child0 , 0 )
1766
- NodeCalculateLayout (root , Undefined , Undefined , DirectionLTR )
1766
+ CalculateLayout (root , Undefined , Undefined , DirectionLTR )
1767
1767
1768
1768
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
1769
1769
assertFloatEqual (t , 0 , root .LayoutGetTop ())
@@ -1780,7 +1780,7 @@ func TestAlign_content_stretch_is_not_overriding_align_items(t *testing.T) {
1780
1780
assertFloatEqual (t , 10 , rootChild0Child0 .LayoutGetWidth ())
1781
1781
assertFloatEqual (t , 10 , rootChild0Child0 .LayoutGetHeight ())
1782
1782
1783
- NodeCalculateLayout (root , Undefined , Undefined , DirectionRTL )
1783
+ CalculateLayout (root , Undefined , Undefined , DirectionRTL )
1784
1784
1785
1785
assertFloatEqual (t , 0 , root .LayoutGetLeft ())
1786
1786
assertFloatEqual (t , 0 , root .LayoutGetTop ())
0 commit comments