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/11 05:45:19 UTC
[6/6] git commit: [flex-sdk] [refs/heads/develop] - Added sort and
remove all test
Added sort and remove all 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/c6885ea5
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/c6885ea5
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/c6885ea5
Branch: refs/heads/develop
Commit: c6885ea5974a99411a8b81e47e96e22f39d8c360
Parents: 54ce8e1
Author: Justin Mclean <jm...@apache.org>
Authored: Sat May 11 13:39:54 2013 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Sat May 11 13:39:54 2013 +1000
----------------------------------------------------------------------
.../Methods/ArrayCollection_Methods.mxml | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/c6885ea5/mustella/tests/collections/ArrayCollection/Methods/ArrayCollection_Methods.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/collections/ArrayCollection/Methods/ArrayCollection_Methods.mxml b/mustella/tests/collections/ArrayCollection/Methods/ArrayCollection_Methods.mxml
index 7949e4d..81eef2b 100644
--- a/mustella/tests/collections/ArrayCollection/Methods/ArrayCollection_Methods.mxml
+++ b/mustella/tests/collections/ArrayCollection/Methods/ArrayCollection_Methods.mxml
@@ -199,7 +199,20 @@
<AssertMethodValue method="value = application.ac.contains(application.players[11])" value="false" />
</body>
- </TestCase>
+ </TestCase>
+
+ <TestCase testID="ArrayCollection_Method_sortAndRemoveAll" keywords="[ArrayCollection, Method, itemUpdated,contains]">
+ <setup>
+ <AssertPropertyValue target="application.ac" propertyName ="length" value="4"/>
+ <RunCode code ="application.ready();application.ac.sort();application.ac.removeAll();" />
+ <AssertPropertyValue target="application.ac" propertyName ="length" value="0"/>
+ </setup>
+ <body>
+ <AssertPropertyValue target="ac" propertyName ="length" value="4"/>
+ <AssertMethodValue method="value = application.ac.contains(application.players[11])" value="false" />
+
+ </body>
+ </TestCase>
</testCases>
</UnitTester>