incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1370370 [19/43] - in /incubator/flex/trunk/mustella/tests/mx: ./ binding/ binding/utils/ binding/utils/BindingUtils/ binding/utils/BindingUtils/SWFs/ binding/utils/BindingUtils/SWFs/assets/ binding/utils/BindingUtils/method/ binding/utils/...
Date Tue, 07 Aug 2012 17:13:35 GMT
Added: incubator/flex/trunk/mustella/tests/mx/effects/Move/Dimensions/Move_Dimensions.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/Move/Dimensions/Move_Dimensions.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/Move/Dimensions/Move_Dimensions.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/Move/Dimensions/Move_Dimensions.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,390 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester 
+    testDir="mx/effects/Move/Dimensions/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*" 
+    testSWF="../SWFs/Move_Main.mxml">
+
+
+    <!-- this set of lines form a template that must be in each unit test -->
+    <mx:Script>
+        <![CDATA[
+        import mx.effects.Move;
+
+        public static function init(o:DisplayObject):void{}
+        ]]>
+    </mx:Script>
+
+    <mx:Metadata>
+        <![CDATA[
+        [Mixin]
+        ]]>
+    </mx:Metadata>
+    <!-- end of set of lines that must be in each unit test -->
+
+    
+    <testCases>
+
+        <!-- X Tests -->
+        <TestCase testID="Move_Dimensions_Nothing_X"  keywords="[Move, Dimensions]" description="Reset component, test that nothing happens on a non-initialized Move effect.">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPropertyValue target="testButton" propertyName="x" value="100"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_NaNAll_X"  keywords="[Move, Dimensions]" description="Test Move with all x dimensions cleared.">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="xFrom" value="NaN"/>
+                <SetProperty target="testEffect" propertyName="xTo" value="NaN"/>
+                <SetProperty target="testEffect" propertyName="xBy" value="NaN"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPropertyValue target="testButton" propertyName="x" value="100"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_xFromStart"  keywords="[Move, Dimensions]" description="Verfiy the object snaps to xFrom at effectStart.">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="xFrom" value="50"/>
+                <SetProperty target="testEffect" propertyName="duration" value="20000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectStart"/>
+                <AssertMethodValue method="value=Math.round(application.testButton.x)" value="50"/>
+                <RunCode code="application.testEffect.stop()" waitTarget="testEffect" waitEvent="effectEnd"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_xFromOnly"  keywords="[Move, Dimensions]" description="Test Move by only setting xFrom.">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="xFrom" value="50"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <SetProperty target="testEffect" propertyName="xFrom" value="50"/>
+                <SetProperty target="testEffect" propertyName="xTo" value="100"/>
+                <AssertPropertyValue target="testButton" propertyName="x" value="100"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_xFromToSame"  keywords="[Move, Dimensions]" description="Test Move by setting xFrom AND xTo.">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="xFrom" value="50"/>
+                <SetProperty target="testEffect" propertyName="xTo" value="50"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPropertyValue target="testButton" propertyName="x" value="50"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_xFromTo"  keywords="[Move, Dimensions]" description="Test Move by setting xFrom AND xTo.">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="xFrom" value="50"/>
+                <SetProperty target="testEffect" propertyName="xTo" value="90"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPropertyValue target="testButton" propertyName="x" value="90"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_xToOnly"  keywords="[Move, Dimensions]" description="Test Move by only setting xTo.">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="xTo" value="300"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPropertyValue target="testButton" propertyName="x" value="300"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_xToxBy"  keywords="[Move, Dimensions]" description="Test Move by setting xTo AND xBy. Verify xFrom">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="xTo" value="200"/>
+                <SetProperty target="testEffect" propertyName="xBy" value="40"/>
+                <SetProperty target="testEffect" propertyName="duration" value="20000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectStart"/>
+                <AssertMethodValue method="value=Math.round(application.testButton.x)" value="160"/>
+                <RunCode code="application.testEffect.stop()" waitTarget="testEffect" waitEvent="effectEnd"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_xToxByInverted"  keywords="[Move, Dimensions]" description="Test Move by setting xTo AND xBy where xBy > xTo. Verify xFrom">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="xTo" value="40"/>
+                <SetProperty target="testEffect" propertyName="xBy" value="200"/>
+                <SetProperty target="testEffect" propertyName="duration" value="20000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectStart"/>
+                <AssertMethodValue method="value=Math.round(application.testButton.x)" value="-160"/>
+                <RunCode code="application.testEffect.stop()" waitTarget="testEffect" waitEvent="effectEnd"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_xBy"  keywords="[Move, Dimensions]" description="Test Move by only setting xBy. Verify final x">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="xBy" value="50"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPropertyValue target="testButton" propertyName="x" value="150"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_xByNegative"  keywords="[Move, Dimensions]" description="Test Move by setting xBy to a negative value.">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="xBy" value="-50"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPropertyValue target="testButton" propertyName="x" value="50"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_xByNegativeBeyondZero"  keywords="[Move, Dimensions]" description="Test Move by setting xBy to a negative value to go past 0.">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="xBy" value="-250"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPropertyValue target="testButton" propertyName="x" value="-150"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_xFromBy"  keywords="[Move, Dimensions]" description="Test Move by settingxFrom AND xBy.">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="xFrom" value="50"/>
+                <SetProperty target="testEffect" propertyName="xBy" value="200"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPropertyValue target="testButton" propertyName="x" value="250"/>
+            </body>
+        </TestCase>
+
+        <!-- Y Tests -->
+        <TestCase testID="Move_Dimensions_Nothing_Y"  keywords="[Move, Dimensions]" description="Reset component, test that nothing happens on a non-initialized Move effect.">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPropertyValue target="testButton" propertyName="y" value="110"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_NaNAll_Y"  keywords="[Move, Dimensions]" description="Test Move with all x dimensions cleared.">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="yFrom" value="NaN"/>
+                <SetProperty target="testEffect" propertyName="yTo" value="NaN"/>
+                <SetProperty target="testEffect" propertyName="yBy" value="NaN"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPropertyValue target="testButton" propertyName="y" value="110"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_yFromStart"  keywords="[Move, Dimensions]" description="Verfiy the object snaps to yFrom at effectStart.">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="yFrom" value="50"/>
+                <SetProperty target="testEffect" propertyName="duration" value="20000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectStart"/>
+                <AssertMethodValue method="value=Math.round(application.testButton.y)" value="50"/>
+                <RunCode code="application.testEffect.stop()" waitTarget="testEffect" waitEvent="effectEnd"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_yFromOnly"  keywords="[Move, Dimensions]" description="Test Move by only setting yFrom.">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="yFrom" value="50"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <SetProperty target="testEffect" propertyName="yFrom" value="50"/>
+                <SetProperty target="testEffect" propertyName="yTo" value="110"/>
+                <AssertPropertyValue target="testButton" propertyName="y" value="110"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_yFromToSame"  keywords="[Move, Dimensions]" description="Test Move by setting yFrom AND yTo to the same value.">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="yFrom" value="50"/>
+                <SetProperty target="testEffect" propertyName="yTo" value="50"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPropertyValue target="testButton" propertyName="y" value="50"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_yFromTo"  keywords="[Move, Dimensions]" description="Test Move by setting yFrom AND yTo.">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="yFrom" value="50"/>
+                <SetProperty target="testEffect" propertyName="yTo" value="90"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPropertyValue target="testButton" propertyName="y" value="90"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_yToOnly"  keywords="[Move, Dimensions]" description="Test Move by only setting yTo.">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="yTo" value="300"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPropertyValue target="testButton" propertyName="y" value="300"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_yToyBy"  keywords="[Move, Dimensions]" description="Test Move by setting yTo AND yBy. Verify yFrom">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="yTo" value="200"/>
+                <SetProperty target="testEffect" propertyName="yBy" value="40"/>
+                <SetProperty target="testEffect" propertyName="duration" value="20000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectStart"/>
+                <AssertMethodValue method="value=Math.round(application.testButton.y)" value="160"/>
+                <RunCode code="application.testEffect.stop()" waitTarget="testEffect" waitEvent="effectEnd"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_yToyByInverted"  keywords="[Move, Dimensions]" description="Test Move by setting yTo AND yBy where yBy > yTo. Verify yFrom at effectStart">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="yTo" value="40"/>
+                <SetProperty target="testEffect" propertyName="yBy" value="200"/>
+                <SetProperty target="testEffect" propertyName="duration" value="20000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectStart"/>
+                <AssertMethodValue method="value=Math.round(application.testButton.y)" value="-160"/>
+                <RunCode code="application.testEffect.stop()" waitTarget="testEffect" waitEvent="effectEnd"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_yBy"  keywords="[Move, Dimensions]" description="Test Move by only setting yBy. Verify final y">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="yBy" value="50"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPropertyValue target="testButton" propertyName="y" value="160"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_yByNegative"  keywords="[Move, Dimensions]" description="Test Move by setting yBy to a negative value.">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="yBy" value="-50"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPropertyValue target="testButton" propertyName="y" value="60"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_yByNegativeBeyondZero"  keywords="[Move, Dimensions]" description="Test Move by setting yBy to a negative value to go past 0.">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="yBy" value="-250"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPropertyValue target="testButton" propertyName="y" value="-140"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Dimensions_yFromBy"  keywords="[Move, Dimensions]" description="Test Move by setting yFrom AND yBy.">
+            <setup>
+                <ResetComponent target="testButton" className="Assets.TrixButton" waitTarget="testButton" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="yFrom" value="50"/>
+                <SetProperty target="testEffect" propertyName="yBy" value="200"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testButton], false)" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPropertyValue target="testButton" propertyName="y" value="250"/>
+            </body>
+        </TestCase>
+        
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/mx/effects/Move/Events/Move_Events.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/Move/Events/Move_Events.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/Move/Events/Move_Events.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/Move/Events/Move_Events.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="utf-8"?>
+<UnitTester 
+    testDir="mx/effects/Move/Events/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*"
+    testSWF="../SWFs/Move_Main.mxml">
+    
+    
+    <!-- this set of lines form a template that must be in each unit test -->
+    <mx:Script>
+        <![CDATA[
+        public static function init(o:DisplayObject):void
+        {
+        }
+        ]]>
+    </mx:Script>
+    <mx:Metadata>
+        <![CDATA[
+        [Mixin]
+        ]]>
+    </mx:Metadata>
+    <!-- end of set of lines that must be in each unit test -->
+    
+    
+    <testCases>
+        <TestCase testID="Move_Events_EffectStart" keywords="[Effects, Move, Events, EffectStart]" description="Verify EffectStart is raised.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="xBy" value="20"/>
+                <SetProperty target="testEffect" propertyName="yBy" value="20"/>
+                <SetProperty target="testEffect" propertyName="duration" value="250"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testVBox], false)" waitTarget="testEffect" waitEvent="effectEnd" />
+                <AssertEvent target="testEffect" eventName="effectStart" eventClass="mx.events::EffectEvent" />
+            </body>
+        </TestCase>
+        <TestCase testID="Move_Events_EffectEnd" keywords="[Effects, Move, Events, EffectEnd]" description="Verify EffectEnd is raised.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="xBy" value="20"/>
+                <SetProperty target="testEffect" propertyName="yBy" value="20"/>
+                <SetProperty target="testEffect" propertyName="duration" value="250"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testVBox], false)" waitTarget="testEffect" waitEvent="effectEnd" />
+                <AssertEvent target="testEffect" eventName="effectEnd" eventClass="mx.events::EffectEvent" />
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Events_TweenStart" keywords="[Effects, Move, Events, TweenStart]" description="Verify TweenStart is raised.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="xBy" value="20"/>
+                <SetProperty target="testEffect" propertyName="yBy" value="20"/>
+                <SetProperty target="testEffect" propertyName="duration" value="250"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testVBox], false)" waitTarget="testEffect" waitEvent="effectEnd" />
+                <AssertEvent target="testEffect" eventName="tweenStart" eventClass="mx.events::TweenEvent" />
+            </body>
+        </TestCase>
+        <TestCase testID="Move_Events_TweenUpdate" keywords="[Effects, Move, Events, TweenUpdate]" description="Verify TweenUpdate is raised.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="xBy" value="20"/>
+                <SetProperty target="testEffect" propertyName="yBy" value="20"/>
+                <SetProperty target="testEffect" propertyName="duration" value="250"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testVBox], false)" waitTarget="testEffect" waitEvent="effectEnd" />
+                <AssertEvent target="testEffect" eventName="tweenUpdate" eventClass="mx.events::TweenEvent" numExpectedEvents="-1" />
+            </body>
+        </TestCase>
+        <TestCase testID="Move_Events_TweenEnd" keywords="[Effects, Move, Events, TweenEnd]" description="Verify TweenEnd is raised.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+                <SetProperty target="testEffect" propertyName="xBy" value="20"/>
+                <SetProperty target="testEffect" propertyName="yBy" value="20"/>
+                <SetProperty target="testEffect" propertyName="duration" value="250"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testVBox], false)" waitTarget="testEffect" waitEvent="effectEnd" />
+                <AssertEvent target="testEffect" eventName="tweenEnd" eventClass="mx.events::TweenEvent" />
+            </body>
+        </TestCase>
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/mx/effects/Move/Methods/Move_Methods.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/Move/Methods/Move_Methods.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/Move/Methods/Move_Methods.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/Move/Methods/Move_Methods.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester 
+    testDir="mx/effects/Move/Methods/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*" 
+    testSWF="../SWFs/Move_Main.mxml">
+
+    <!-- this set of lines form a template that must be in each unit test -->
+    <mx:Script>
+        <![CDATA[
+        public static function init(o:DisplayObject):void{}
+        ]]>
+    </mx:Script>
+
+    <mx:Metadata>
+        <![CDATA[
+        [Mixin]
+        ]]>
+    </mx:Metadata>
+    <!-- end of set of lines that must be in each unit test -->
+
+    <mx:Script>
+        <![CDATA[
+        import mx.effects.Move;
+        ]]>
+    </mx:Script>
+
+    <testCases>
+
+        <!-- Construtor - Move -->
+        <TestCase testID="Move_Constructor_Empty"  keywords="[Move, method, constructor]" description="Try to initialize the constructor with an empty arg.">
+            <body>
+                <RunCode code="application.testEffect = new Move();"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Constructor_Null"  keywords="[Move, method, constructor]" description="Try to initialize the constructor with the null arg.">
+            <body>
+                <RunCode code="application.testEffect = new Move(null);"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_Constructor_Object"  keywords="[Move, method, constructor]" description="Try to initialize the constructor with an object.">
+            <body>
+                <RunCode code="application.testEffect = new Move(new Object());" />
+            </body>
+        </TestCase>
+
+        <!-- Move.getAffectedProperties -->
+        <TestCase testID="Move_GetAffectedProperties"  keywords="[Move, method, GetAffectedProperties]" description="Test the return values from GetAffectedProperties.">
+            <body>
+                <AssertMethodValue method="value=application.testEffect.getAffectedProperties()" value="x,y" />
+            </body>
+        </TestCase>
+
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/mx/effects/Move/Props/Move_Properties.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/Move/Props/Move_Properties.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/Move/Props/Move_Properties.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/Move/Props/Move_Properties.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,335 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester 
+    testDir="mx/effects/Move/Props/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*" 
+    testSWF="../SWFs/Move_Main.mxml">
+
+    <!-- this set of lines form a template that must be in each unit test -->
+    <mx:Script>
+        <![CDATA[
+        public static function init(o:DisplayObject):void{}
+        ]]>
+    </mx:Script>
+
+    <mx:Metadata>
+        <![CDATA[
+        [Mixin]
+        ]]>
+    </mx:Metadata>
+    <!-- end of set of lines that must be in each unit test -->
+
+    <mx:Script>
+        <![CDATA[
+        import mx.effects.Move;
+        ]]>
+    </mx:Script>
+    
+    <!-- 
+    Property Test Plan
+    ############################################
+    
+    xBy
+    xFrom
+    xTo
+    
+    yBy
+    yFrom
+    yTo
+    
+    ############################################
+    -->
+
+    <testCases>
+
+        <TestCase testID="Move_xByZero"  keywords="[Effects, Move, Properties, xBy]" description="Try to set the xBy property to zero.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="xBy" value="0"/>
+                <AssertPropertyValue target="testEffect" propertyName="xBy" value="0"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_xByNegative"  keywords="[Effects, Move, Properties, xBy]" description="Try to set the xBy property to a negative value.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="xBy" value="-20"/>
+                <AssertPropertyValue target="testEffect" propertyName="xBy" value="-20"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_xByNormal"  keywords="[Effects, Move, Properties, xBy]" description="Try to set the xBy property to a normal value.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="xBy" value="20"/>
+                <AssertPropertyValue target="testEffect" propertyName="xBy" value="20"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_xByOffStage"  keywords="[Effects, Move, Properties, xBy]" description="Try to set the xBy property to a large value.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="xBy" value="2000"/>
+                <AssertPropertyValue target="testEffect" propertyName="xBy" value="2000"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_xFromZero"  keywords="[Effects, Move, Properties, xFrom]" description="Try to set the xFrom property to zero.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="xFrom" value="0"/>
+                <AssertPropertyValue target="testEffect" propertyName="xFrom" value="0"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_xFromNegative"  keywords="[Effects, Move, Properties, xFrom]" description="Try to set the xFrom property to a negative value.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="xFrom" value="-20"/>
+                <AssertPropertyValue target="testEffect" propertyName="xFrom" value="-20"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_xFromNormal"  keywords="[Effects, Move, Properties, xFrom]" description="Try to set the xFrom property to a normal value.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="xFrom" value="20"/>
+                <AssertPropertyValue target="testEffect" propertyName="xFrom" value="20"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_xFromOffStage"  keywords="[Effects, Move, Properties, xFrom]" description="Try to set the xFrom property to a large value.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="xFrom" value="2000"/>
+                <AssertPropertyValue target="testEffect" propertyName="xFrom" value="2000"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_xToZero"  keywords="[Effects, Move, Properties, xTo]" description="Try to set the xTo property to zero.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="xTo" value="0"/>
+                <AssertPropertyValue target="testEffect" propertyName="xTo" value="0"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_xToNegative"  keywords="[Effects, Move, Properties, xTo]" description="Try to set the xTo property to a negative value.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="xTo" value="-20"/>
+                <AssertPropertyValue target="testEffect" propertyName="xTo" value="-20"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_xToNormal"  keywords="[Effects, Move, Properties, xTo]" description="Try to set the xTo property to a normal value.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="xTo" value="20"/>
+                <AssertPropertyValue target="testEffect" propertyName="xTo" value="20"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_xToOffStage"  keywords="[Effects, Move, Properties, xTo]" description="Try to set the xTo property to a large value.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="xTo" value="2000"/>
+                <AssertPropertyValue target="testEffect" propertyName="xTo" value="2000"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_yByZero"  keywords="[Effects, Move, Properties, yBy]" description="Try to set the yBy property to zero.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="yBy" value="0"/>
+                <AssertPropertyValue target="testEffect" propertyName="yBy" value="0"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_yByNegative"  keywords="[Effects, Move, Properties, yBy]" description="Try to set the yBy property to a negative value.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="yBy" value="-20"/>
+                <AssertPropertyValue target="testEffect" propertyName="yBy" value="-20"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_yByNormal"  keywords="[Effects, Move, Properties, yBy]" description="Try to set the yBy property to a normal value.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="yBy" value="20"/>
+                <AssertPropertyValue target="testEffect" propertyName="yBy" value="20"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_yByOffStage"  keywords="[Effects, Move, Properties, yBy]" description="Try to set the yBy property to a large value.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="yBy" value="2000"/>
+                <AssertPropertyValue target="testEffect" propertyName="yBy" value="2000"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_yFromZero"  keywords="[Effects, Move, Properties, yFrom]" description="Try to set the yFrom property to zero.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="yFrom" value="0"/>
+                <AssertPropertyValue target="testEffect" propertyName="yFrom" value="0"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_yFromNegative"  keywords="[Effects, Move, Properties, yFrom]" description="Try to set the yFrom property to a negative value.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="yFrom" value="-20"/>
+                <AssertPropertyValue target="testEffect" propertyName="yFrom" value="-20"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_yFromNormal"  keywords="[Effects, Move, Properties, yFrom]" description="Try to set the yFrom property to a normal value.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="yFrom" value="20"/>
+                <AssertPropertyValue target="testEffect" propertyName="yFrom" value="20"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_yFromOffStage"  keywords="[Effects, Move, Properties, yFrom]" description="Try to set the yFrom property to a large value.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="yFrom" value="2000"/>
+                <AssertPropertyValue target="testEffect" propertyName="yFrom" value="2000"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_yToZero"  keywords="[Effects, Move, Properties, yTo]" description="Try to set the yTo property to zero.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="yTo" value="0"/>
+                <AssertPropertyValue target="testEffect" propertyName="yTo" value="0"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_yToNegative"  keywords="[Effects, Move, Properties, yTo]" description="Try to set the yTo property to a negative value.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="yTo" value="-20"/>
+                <AssertPropertyValue target="testEffect" propertyName="yTo" value="-20"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_yToNormal"  keywords="[Effects, Move, Properties, yTo]" description="Try to set the yTo property to a normal value.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="yTo" value="20"/>
+                <AssertPropertyValue target="testEffect" propertyName="yTo" value="20"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_yToOffStage"  keywords="[Effects, Move, Properties, yTo]" description="Try to set the yTo property to a large value.">
+            <setup>
+                <ResetComponent target="testVBox" className="Assets.TrixVBox" waitTarget="testVBox" waitEvent="updateComplete"/>
+                <ResetComponent target="testEffect" className="mx.effects.Move"/>
+            </setup>
+            <body>
+                <SetProperty target="testEffect" propertyName="yTo" value="2000"/>
+                <AssertPropertyValue target="testEffect" propertyName="yTo" value="2000"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_RelevantStyles"  keywords="[Move, properties, RelevantStyles]" description="Test the return values from RelevantStyles.">
+            <body>
+                <AssertPropertyValue target="testEffect" propertyName="relevantStyles" value="left,right,top,bottom,horizontalCenter,verticalCenter" />
+            </body>
+        </TestCase>
+
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Assets/TrixButton.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Assets/TrixButton.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Assets/TrixButton.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Assets/TrixButton.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<mx:Button 
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+	width="300" 
+	height="30"
+    x="100"
+    y="110"
+    label="Trix Button">
+</mx:Button>

Added: incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Assets/TrixHBox.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Assets/TrixHBox.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Assets/TrixHBox.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Assets/TrixHBox.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:HBox 
+	xmlns:mx="http://www.adobe.com/2006/mxml" 
+	borderStyle="solid" 
+	paddingTop="10" 
+	paddingBottom="10" 
+	paddingLeft="10" 
+	paddingRight="10"
+    x="100"
+    y="0"
+	width="300"
+    height="100">
+
+    <mx:Button id="btn0" label="0" width="30" height="30"/>
+    <mx:Button id="btn1" label="1" width="30" height="30"/>
+    <mx:Button id="btn2" label="2" width="30" height="30"/>
+    <mx:Button id="btn3" label="3" width="30" height="30"/>
+    <mx:Button id="btn4" label="4" width="30" height="30"/>
+
+</mx:HBox>

Added: incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Assets/TrixVBox.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Assets/TrixVBox.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Assets/TrixVBox.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Assets/TrixVBox.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:VBox 
+	xmlns:mx="http://www.adobe.com/2006/mxml" 
+	width="200" 
+	height="200"
+    x="150"
+    y="150"
+	borderColor="#FF00FF" 
+	borderStyle="solid" 
+	borderThickness="3">
+	
+	<mx:Button id="btn0" label="0" width="100" height="30"/>
+    <mx:Button id="btn1" label="1" width="100" height="30"/>
+    <mx:Button id="btn2" label="2" width="100" height="30"/>
+    <mx:Button id="btn3" label="3" width="100" height="30"/>
+    <mx:Button id="btn4" label="4" width="100" height="30"/>
+	
+</mx:VBox>

Added: incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Move_Main.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Move_Main.compile?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Move_Main.compile (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Move_Main.compile Tue Aug  7 17:13:06 2012
@@ -0,0 +1 @@
+ -theme=${flexlib}/themes/Halo/halo.swc

Added: incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Move_Main.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Move_Main.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Move_Main.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Move_Main.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Application height="500" width="500"
+    xmlns:mx="http://www.adobe.com/2006/mxml"
+    xmlns:trix="Assets.*"
+    xmlns="*"
+    backgroundColor="0xFFFFFF"
+    
+    layout="absolute">
+
+    <mx:Move id="testEffect"/>
+
+    <trix:TrixHBox id="testHBox"/>
+    <trix:TrixButton id="testButton"/>
+    <trix:TrixVBox id="testVBox"/>
+
+</mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Move_States_Main.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Move_States_Main.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Move_States_Main.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/Move/SWFs/Move_States_Main.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Application height="500" width="500"
+    xmlns:mx="http://www.adobe.com/2006/mxml"
+    xmlns="*"
+    backgroundColor="0xFFFFFF"
+    
+    layout="absolute">
+
+    <mx:states>
+        <mx:State name="stateOne"/>
+        <mx:State name="stateTwo"/>
+    </mx:states>
+
+    <mx:transitions>
+        <mx:Transition effect="{toStateTwo}" fromState="stateOne" toState="stateTwo" />
+        <mx:Transition effect="{toStateOne}" fromState="stateTwo" toState="stateOne" />
+    </mx:transitions>
+
+    <!-- Simple Effects -->
+    <mx:Move id="testEffect" duration="250"/>
+
+    <!-- Effects for transitions -->
+    <mx:Parallel id="toStateTwo">
+        <mx:Move targets="{[testButton, testList]}" xBy="0" yBy="30" duration="1000" effectStart="testList.setStyle('backgroundColor', '#FF0000');" effectEnd="testList.setStyle('backgroundColor', '#FFFFFF');"/>
+    </mx:Parallel>
+    <mx:Parallel id="toStateOne">
+        <mx:Move targets="{[testButton, testList]}" xBy="0" yBy="-30" duration="1000" effectStart="testList.setStyle('backgroundColor', '#0000FF');" effectEnd="testList.setStyle('backgroundColor', '#FFFFFF');"/>
+    </mx:Parallel>
+
+    <mx:Script>
+        <![CDATA[
+        import mx.events.StateChangeEvent;
+            
+        public function doManualReset():void
+        {
+            if(currentState == "stateOne")
+            {
+                dispatchEvent(new Event("manualResetComplete"));
+            }
+            else
+            {
+                addEventListener("currentStateChange", handleCurrentStateChange);
+                currentState = "stateOne";   
+            }
+        }
+
+        private function handleCurrentStateChange(e:StateChangeEvent):void
+        {
+            dispatchEvent(new Event("manualResetComplete"));
+        }
+        ]]>
+    </mx:Script>
+
+    <mx:Button id="testButton" 
+            x="150"
+            y="10"
+            width="200"
+            height="30"
+            label="Test Button"/>
+
+    <mx:List id="testList" 
+        x="150" 
+        y="50" 
+        width="200"
+        height="300">
+
+        <mx:Button id="btn0" label="0" width="100%" height="30"/>
+        <mx:Button id="btn1" label="1" width="100%" height="30"/>
+        <mx:Button id="btn2" label="2" width="100%" height="30"/>
+        <mx:Button id="btn3" label="3" width="100%" height="30"/>
+        <mx:Button id="btn4" label="4" width="100%" height="30"/>
+    </mx:List>
+
+</mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/effects/Move/States/Move_States.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/Move/States/Move_States.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/Move/States/Move_States.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/Move/States/Move_States.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester 
+    testDir="mx/effects/Move/States/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*" 
+    testSWF="../SWFs/Move_States_Main.mxml">
+
+    <!-- this set of lines form a template that must be in each unit test -->
+    <mx:Script>
+        <![CDATA[
+        public static function init(o:DisplayObject):void{}
+        ]]>
+    </mx:Script>
+
+    <mx:Metadata>
+        <![CDATA[
+        [Mixin]
+        ]]>
+    </mx:Metadata>
+    <!-- end of set of lines that must be in each unit test -->
+
+    <mx:Script>
+        <![CDATA[
+        import mx.core.Application;
+        import mx.effects.Move;
+        ]]>
+    </mx:Script>
+
+    <testCases>
+
+        <TestCase testID="Move_TransitionToStateTwo"  keywords="[Move, Transition, ChangeState]" description="Verify the Move effect works in a transition composite effect.">
+            <setup>
+                <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+            </setup>
+            <body>
+                <SetProperty target="{application}" propertyName="currentState" value="stateTwo" waitTarget="toStateTwo" waitEvent="effectEnd" />
+                <AssertPropertyValue target="testButton" propertyName="x" value="150"/>
+                <AssertPropertyValue target="testButton" propertyName="y" value="40"/>
+                <AssertPropertyValue target="testList" propertyName="x" value="150"/>
+                <AssertPropertyValue target="testList" propertyName="y" value="80"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="Move_TransitionToStateOne"  keywords="[Move, Transition, ChangeState]" description="Verify the Move effect works in a transition composite effect.">
+            <setup>
+                <RunCode code="application.doManualReset()" waitEvent="manualResetComplete" />
+                <SetProperty target="{application}" propertyName="currentState" value="stateTwo" waitTarget="toStateTwo" waitEvent="effectEnd" />
+            </setup>
+            <body>
+                <SetProperty target="{application}" propertyName="currentState" value="stateOne" waitTarget="toStateOne" waitEvent="effectEnd" />
+                <AssertPropertyValue target="testButton" propertyName="x" value="150"/>
+                <AssertPropertyValue target="testButton" propertyName="y" value="10"/>
+                <AssertPropertyValue target="testList" propertyName="x" value="150"/>
+                <AssertPropertyValue target="testList" propertyName="y" value="50"/>
+            </body>
+        </TestCase>
+
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/mx/effects/Parallel/SWFs/Parallel_main.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/Parallel/SWFs/Parallel_main.compile?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/Parallel/SWFs/Parallel_main.compile (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/Parallel/SWFs/Parallel_main.compile Tue Aug  7 17:13:06 2012
@@ -0,0 +1 @@
+ -theme=${flexlib}/themes/Halo/halo.swc



Mime
View raw message