You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2013/05/19 09:48:09 UTC
[2/2] git commit: [flex-sdk] [refs/heads/develop] - Reset players
array each time so tests don't effect each other
Reset players array each time so tests don't effect each other
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/01321507
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/01321507
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/01321507
Branch: refs/heads/develop
Commit: 01321507cbfc5f422b3d9efeb015c4bc2fdaac2b
Parents: 39c681c
Author: Justin Mclean <jm...@apache.org>
Authored: Sun May 19 17:47:39 2013 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Sun May 19 17:47:39 2013 +1000
----------------------------------------------------------------------
.../ArrayCollection/SWFs/ArrayCollectionMain.mxml | 26 ++++++++-------
1 files changed, 14 insertions(+), 12 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/01321507/mustella/tests/collections/ArrayCollection/SWFs/ArrayCollectionMain.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/collections/ArrayCollection/SWFs/ArrayCollectionMain.mxml b/mustella/tests/collections/ArrayCollection/SWFs/ArrayCollectionMain.mxml
index af8db54..613c326 100644
--- a/mustella/tests/collections/ArrayCollection/SWFs/ArrayCollectionMain.mxml
+++ b/mustella/tests/collections/ArrayCollection/SWFs/ArrayCollectionMain.mxml
@@ -23,24 +23,26 @@
<![CDATA[
import mx.collections.*;
+
[Bindable]
- public var ac:ArrayCollection;
- public var cursor:IViewCursor;
- [Bindable]
+ public var ac:ArrayCollection;
+ [Bindable]
public var view:ListCollectionView;
- public var players:Array=[
- {team:"TeamOne",jerseyNumber:80,lastName:"PlayerA",firstName:"Aa"},
- {team:"TeamTwo",jerseyNumber:7, lastName:"PlayerB",firstName:"Bb"},
- {team:"TeamOne",jerseyNumber:12, lastName:"PlayerC",firstName:"Cc"},
- {team:"TeamOne",jerseyNumber:21,lastName:"PlayerD",firstName:"Dd"},
- {team:"TeamThree",jerseyNumber:34, lastName:"PlayerE",firstName:"Ee"},
- {team:"TeamOne",jerseyNumber:12, lastName:"PlayerF",firstName:"Ff"},
- {team:"TeamTwo",jerseyNumber:7, lastName:"PlayerG",firstName:"Gg"},
- ];
+ public var cursor:IViewCursor;
+ public var players:Array = [];
public function ready():void
{
+ players = [
+ {team:"TeamOne",jerseyNumber:80,lastName:"PlayerA",firstName:"Aa"},
+ {team:"TeamTwo",jerseyNumber:7, lastName:"PlayerB",firstName:"Bb"},
+ {team:"TeamOne",jerseyNumber:12, lastName:"PlayerC",firstName:"Cc"},
+ {team:"TeamOne",jerseyNumber:21,lastName:"PlayerD",firstName:"Dd"},
+ {team:"TeamThree",jerseyNumber:34, lastName:"PlayerE",firstName:"Ee"},
+ {team:"TeamOne",jerseyNumber:12, lastName:"PlayerF",firstName:"Ff"},
+ {team:"TeamTwo",jerseyNumber:7, lastName:"PlayerG",firstName:"Gg"},
+ ];
ac = new ArrayCollection(players);
var s:Sort = new Sort();
var f:SortField = new SortField("jerseyNumber");