@@ -210,11 +210,11 @@ import utest.Test;
210
210
}
211
211
212
212
public function testSelectionPropertiesAfterSetSelectedLocation (): Void {
213
- var collection = new ArrayHierarchicalCollection ([
213
+ var collection = new ArrayHierarchicalCollection (( [
214
214
{text : " One" },
215
215
{text : " Two" , children : [{text : " 2-A" }, {text : " 2-B" }]},
216
216
{text : " Three" }
217
- ], (item : Dynamic ) -> item .children );
217
+ ] : Array < Dynamic >) , (item : Dynamic ) -> item .children );
218
218
this ._treeView .dataProvider = collection ;
219
219
Assert .isNull (this ._treeView .selectedLocation );
220
220
Assert .isNull (this ._treeView .selectedItem );
@@ -250,11 +250,11 @@ import utest.Test;
250
250
}
251
251
252
252
public function testSelectionPropertiesAfterSetSelectedItem (): Void {
253
- var collection = new ArrayHierarchicalCollection ([
253
+ var collection = new ArrayHierarchicalCollection (( [
254
254
{text : " One" },
255
255
{text : " Two" , children : [{text : " 2-A" }, {text : " 2-B" }]},
256
256
{text : " Three" }
257
- ], (item : Dynamic ) -> item .children );
257
+ ] : Array < Dynamic >) , (item : Dynamic ) -> item .children );
258
258
this ._treeView .dataProvider = collection ;
259
259
Assert .isNull (this ._treeView .selectedLocation );
260
260
Assert .isNull (this ._treeView .selectedItem );
@@ -290,11 +290,11 @@ import utest.Test;
290
290
}
291
291
292
292
public function testSelectionPropertiesAfterSetSelectedLocations (): Void {
293
- var collection = new ArrayHierarchicalCollection ([
293
+ var collection = new ArrayHierarchicalCollection (( [
294
294
{text : " One" },
295
295
{text : " Two" , children : [{text : " 2-A" }, {text : " 2-B" }]},
296
296
{text : " Three" }
297
- ], (item : Dynamic ) -> item .children );
297
+ ] : Array < Dynamic >) , (item : Dynamic ) -> item .children );
298
298
this ._treeView .dataProvider = collection ;
299
299
this ._treeView .allowMultipleSelection = true ;
300
300
Assert .isNull (this ._treeView .selectedLocation );
@@ -349,11 +349,11 @@ import utest.Test;
349
349
}
350
350
351
351
public function testSelectionPropertiesAfterSetSelectedItems (): Void {
352
- var collection = new ArrayHierarchicalCollection ([
352
+ var collection = new ArrayHierarchicalCollection (( [
353
353
{text : " One" },
354
354
{text : " Two" , children : [{text : " 2-A" }, {text : " 2-B" }]},
355
355
{text : " Three" }
356
- ], (item : Dynamic ) -> item .children );
356
+ ] : Array < Dynamic >) , (item : Dynamic ) -> item .children );
357
357
this ._treeView .dataProvider = collection ;
358
358
this ._treeView .allowMultipleSelection = true ;
359
359
Assert .isNull (this ._treeView .selectedLocation );
@@ -408,11 +408,11 @@ import utest.Test;
408
408
}
409
409
410
410
public function testSelectMultipleLocationsWithAllowMultipleSelectionDisabled (): Void {
411
- var collection = new ArrayHierarchicalCollection ([
411
+ var collection = new ArrayHierarchicalCollection (( [
412
412
{text : " One" },
413
413
{text : " Two" , children : [{text : " 2-A" }, {text : " 2-B" }]},
414
414
{text : " Three" }
415
- ], (item : Dynamic ) -> item .children );
415
+ ] : Array < Dynamic >) , (item : Dynamic ) -> item .children );
416
416
this ._treeView .dataProvider = collection ;
417
417
this ._treeView .allowMultipleSelection = false ;
418
418
Assert .isNull (this ._treeView .selectedLocation );
@@ -464,11 +464,11 @@ import utest.Test;
464
464
}
465
465
466
466
public function testSelectMultipleItemsWithAllowMultipleSelectionDisabled (): Void {
467
- var collection = new ArrayHierarchicalCollection ([
467
+ var collection = new ArrayHierarchicalCollection (( [
468
468
{text : " One" },
469
469
{text : " Two" , children : [{text : " 2-A" }, {text : " 2-B" }]},
470
470
{text : " Three" }
471
- ], (item : Dynamic ) -> item .children );
471
+ ] : Array < Dynamic >) , (item : Dynamic ) -> item .children );
472
472
this ._treeView .dataProvider = collection ;
473
473
this ._treeView .allowMultipleSelection = false ;
474
474
Assert .isNull (this ._treeView .selectedLocation );
0 commit comments