File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,40 @@ export function test_removeColumn_shouldThrow_onNullValues() {
202
202
} , "removeColumn called with null should throw exception" ) ;
203
203
}
204
204
205
+ export function test_removeColumns ( ) {
206
+ var columns = rootLayout . getColumns ( ) ;
207
+
208
+ rootLayout . removeColumns ( ) ;
209
+
210
+ TKUnit . assertEqual ( rootLayout . getColumns ( ) . length , 0 ) ;
211
+
212
+ columns . forEach ( c => rootLayout . addColumn ( c ) ) ;
213
+ }
214
+
215
+ export function test_removeRows ( ) {
216
+ var rows = rootLayout . getRows ( ) ;
217
+
218
+ rootLayout . removeRows ( ) ;
219
+
220
+ TKUnit . assertEqual ( rootLayout . getRows ( ) . length , 0 ) ;
221
+
222
+ rows . forEach ( r => rootLayout . addRow ( r ) ) ;
223
+ }
224
+
225
+ export function test_removeChildren ( ) {
226
+ var children = [ ] ;
227
+
228
+ for ( let i = 0 ; i < rootLayout . getChildrenCount ( ) ; i ++ ) {
229
+ children . push ( rootLayout . getChildAt ( i ) ) ;
230
+ }
231
+
232
+ rootLayout . removeChildren ( ) ;
233
+
234
+ TKUnit . assertEqual ( rootLayout . getChildrenCount ( ) , 0 ) ;
235
+
236
+ children . forEach ( c => rootLayout . addChild ( c ) ) ;
237
+ }
238
+
205
239
export function test_getRows_shouldNotReturnNULL ( ) {
206
240
var rows = rootLayout . getRows ( ) ;
207
241
TKUnit . assert ( rows , "getRows should not return null/undefinied" ) ;
You can’t perform that action at this time.
0 commit comments