flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject [2/2] git commit: [flex-sdk] [refs/heads/develop] - Reset players array each time so tests don't effect each other
Date Sun, 19 May 2013 07:48:09 GMT
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 <jmclean@apache.org>
Authored: Sun May 19 17:47:39 2013 +1000
Committer: Justin Mclean <jmclean@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");


Mime
View raw message