Repository: flex-sdk
Updated Branches:
  refs/heads/develop 2779ea9f3 -> 41ef6ebd5


FLEX-34885
Improving unit test.


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/b266fa75
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/b266fa75
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/b266fa75

Branch: refs/heads/develop
Commit: b266fa75ca774026b79a12db8b9a8c4db48a1a28
Parents: 2779ea9
Author: Mihai Chira <[email protected]>
Authored: Tue Jun 9 10:57:55 2015 +0200
Committer: Mihai Chira <[email protected]>
Committed: Tue Jun 9 10:57:55 2015 +0200

----------------------------------------------------------------------
 .../projects/framework/tests/ListCollectionView_Sort_Tests.as  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/b266fa75/frameworks/projects/framework/tests/ListCollectionView_Sort_Tests.as
----------------------------------------------------------------------
diff --git 
a/frameworks/projects/framework/tests/ListCollectionView_Sort_Tests.as 
b/frameworks/projects/framework/tests/ListCollectionView_Sort_Tests.as
index f21310e..5338923 100644
--- a/frameworks/projects/framework/tests/ListCollectionView_Sort_Tests.as
+++ b/frameworks/projects/framework/tests/ListCollectionView_Sort_Tests.as
@@ -364,7 +364,7 @@ package {
         public function 
test_marking_entire_item_as_updated_gets_the_old_object_out_of_the_list():void
         {
             //given
-            var from0To4:IList = generateVOs(5);
+            var from0To4:IList = generateVOs(5, true); //values["name"]: 
Object4, Object3, Object2, Object1, Object0
             _sut.addAll(from0To4);
 
             const sortByNameAscending:Sort = new Sort();
@@ -373,8 +373,8 @@ package {
             _sut.refresh(); //values["name"]: Object0, Object1, Object2, 
Object3, Object4
 
             //when
-            const removedItem:ListCollectionView_Sort_VO = _sut.getItemAt(0) 
as ListCollectionView_Sort_VO;
-            const newItem:ListCollectionView_Sort_VO = generateOneObject(0);
+            const removedItem:ListCollectionView_Sort_VO = (_sut.list as 
ArrayList).source[0] as ListCollectionView_Sort_VO;
+            const newItem:ListCollectionView_Sort_VO = generateOneObject(-1);
             (_sut.list as ArrayList).source[0] = newItem;
             _sut.itemUpdated(newItem, null, removedItem, newItem);
 

Reply via email to