@@ -119,6 +119,60 @@ export class GridLayoutTest extends testModule.UITest<RemovalTrackingGridLayout>
119119 TKUnit . assertEqual ( this . colSpan ( test ) , 1 , "'columnSpan' property default value should be 1." ) ;
120120 }
121121
122+ public test_synonym_property_setting_column_changes_col ( ) {
123+ const test = new Button ( ) ;
124+
125+ test . column = 3 ;
126+
127+ TKUnit . assertEqual ( test . column , 3 , "Setting column should work." ) ;
128+ TKUnit . assertEqual ( test . col , 3 , "Setting column property should affect col property." ) ;
129+ }
130+
131+ public test_synonym_property_setting_col_changes_column ( ) {
132+ const test = new Button ( ) ;
133+
134+ test . col = 3 ;
135+
136+ TKUnit . assertEqual ( test . col , 3 , "Setting col should work." ) ;
137+ TKUnit . assertEqual ( test . column , 3 , "Setting col property should affect column property." ) ;
138+ }
139+
140+ public test_synonym_property_setColumn_should_set_col_and_column ( ) {
141+ const test = new Button ( ) ;
142+
143+ GridLayout . setColumn ( test , 3 ) ;
144+
145+ TKUnit . assertEqual ( test . col , 3 , "setColumn should set col" ) ;
146+ TKUnit . assertEqual ( test . column , 3 , "setColumn should set column" ) ;
147+ }
148+
149+ public test_synonym_property_setting_columnSpan_changes_colSpan ( ) {
150+ const test = new Button ( ) ;
151+
152+ test . columnSpan = 3 ;
153+
154+ TKUnit . assertEqual ( test . columnSpan , 3 , "Setting columnSpan should work." ) ;
155+ TKUnit . assertEqual ( test . colSpan , 3 , "Setting columnSpan property should affect colSpan property." ) ;
156+ }
157+
158+ public test_synonym_property_setting_colSpan_changes_columnSpan ( ) {
159+ const test = new Button ( ) ;
160+
161+ test . colSpan = 3 ;
162+
163+ TKUnit . assertEqual ( test . colSpan , 3 , "Setting colSpan should work." ) ;
164+ TKUnit . assertEqual ( test . columnSpan , 3 , "Setting colSpan property should affect columnSpan property." ) ;
165+ }
166+
167+ public test_synonym_property_setColumnSpan_should_set_colSpan_and_columnSpan ( ) {
168+ const test = new Button ( ) ;
169+
170+ GridLayout . setColumnSpan ( test , 3 ) ;
171+
172+ TKUnit . assertEqual ( test . colSpan , 3 , "setColumnSpan should set colSpan" ) ;
173+ TKUnit . assertEqual ( test . columnSpan , 3 , "setColumnSpan should set columnSpan" ) ;
174+ }
175+
122176 public test_getRow_shouldThrow_onNullValues ( ) {
123177 TKUnit . assertThrows ( ( ) => {
124178 GridLayout . getRow ( null ) ;
@@ -250,17 +304,17 @@ export class GridLayoutTest extends testModule.UITest<RemovalTrackingGridLayout>
250304 TKUnit . assertEqual (
251305 this . row ( btn ) ,
252306 row ,
253- "'row' property not applied For GridLayout addChildAtCell without rowspan ."
307+ "'row' property not applied For GridLayout addChildAtCell without rowSpan ."
254308 ) ;
255309 TKUnit . assertEqual (
256310 this . col ( btn ) ,
257311 column ,
258- "'column' property not applied For GridLayout addChildAtCell without rowspan ."
312+ "'column' property not applied For GridLayout addChildAtCell without rowSpan ."
259313 ) ;
260314 TKUnit . assertEqual (
261315 this . rowSpan ( btn ) ,
262316 defaultSpanValue ,
263- "'rowSpan' property not applied For GridLayout addChildAtCell without rowspan ."
317+ "'rowSpan' property not applied For GridLayout addChildAtCell without rowSpan ."
264318 ) ;
265319 TKUnit . assertEqual (
266320 this . colSpan ( btn ) ,
0 commit comments