@@ -50,17 +50,17 @@ class YGAlignBaselineTest {
5050
5151 root.calculateLayout(YogaConstants .UNDEFINED , YogaConstants .UNDEFINED )
5252
53- assertEquals(0f , root_child0.getLayoutX() , 0.0f )
54- assertEquals(0f , root_child0.getLayoutY() , 0.0f )
53+ assertEquals(0f , root_child0.layoutX , 0.0f )
54+ assertEquals(0f , root_child0.layoutY , 0.0f )
5555
56- assertEquals(500f , root_child1.getLayoutX() , 0.0f )
57- assertEquals(100f , root_child1.getLayoutY() , 0.0f )
56+ assertEquals(500f , root_child1.layoutX , 0.0f )
57+ assertEquals(100f , root_child1.layoutY , 0.0f )
5858
59- assertEquals(0f , root_child1_child0.getLayoutX() , 0.0f )
60- assertEquals(0f , root_child1_child0.getLayoutY() , 0.0f )
59+ assertEquals(0f , root_child1_child0.layoutX , 0.0f )
60+ assertEquals(0f , root_child1_child0.layoutY , 0.0f )
6161
62- assertEquals(0f , root_child1_child1.getLayoutX() , 0.0f )
63- assertEquals(300f , root_child1_child1.getLayoutY() , 0.0f )
62+ assertEquals(0f , root_child1_child1.layoutX , 0.0f )
63+ assertEquals(300f , root_child1_child1.layoutY , 0.0f )
6464 }
6565
6666 @Test
@@ -85,17 +85,17 @@ class YGAlignBaselineTest {
8585
8686 root.calculateLayout(YogaConstants .UNDEFINED , YogaConstants .UNDEFINED )
8787
88- assertEquals(0f , root_child0.getLayoutX() , 0.0f )
89- assertEquals(0f , root_child0.getLayoutY() , 0.0f )
88+ assertEquals(0f , root_child0.layoutX , 0.0f )
89+ assertEquals(0f , root_child0.layoutY , 0.0f )
9090
91- assertEquals(500f , root_child1.getLayoutX() , 0.0f )
92- assertEquals(100f , root_child1.getLayoutY() , 0.0f )
91+ assertEquals(500f , root_child1.layoutX , 0.0f )
92+ assertEquals(100f , root_child1.layoutY , 0.0f )
9393
94- assertEquals(0f , root_child1_child0.getLayoutX() , 0.0f )
95- assertEquals(0f , root_child1_child0.getLayoutY() , 0.0f )
94+ assertEquals(0f , root_child1_child0.layoutX , 0.0f )
95+ assertEquals(0f , root_child1_child0.layoutY , 0.0f )
9696
97- assertEquals(500f , root_child1_child1.getLayoutX() , 0.0f )
98- assertEquals(300f , root_child1_child1.getLayoutY() , 0.0f )
97+ assertEquals(500f , root_child1_child1.layoutX , 0.0f )
98+ assertEquals(300f , root_child1_child1.layoutY , 0.0f )
9999 }
100100
101101 private fun createYGNode (
@@ -106,11 +106,11 @@ class YGAlignBaselineTest {
106106 alignBaseline : Boolean ,
107107 ): YogaNode {
108108 val node = mNodeFactory.create(config)
109- node.setFlexDirection( flexDirection)
109+ node.flexDirection = flexDirection
110110 node.setWidth(width)
111111 node.setHeight(height)
112112 if (alignBaseline) {
113- node.setAlignItems( YogaAlign .BASELINE )
113+ node.alignItems = YogaAlign .BASELINE
114114 }
115115 return node
116116 }
0 commit comments