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 [26/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/WipeDown/Props/WipeDown_Properties.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/WipeDown/Props/WipeDown_Properties.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/WipeDown/Props/WipeDown_Properties.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/WipeDown/Props/WipeDown_Properties.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,95 @@
+<?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/WipeDown/Props/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*" 
+    testSWF="../SWFs/WipeDown_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="WipeDown_showTarget_Default" keywords="[WipeDown, Properties, showTarget]" description="Test the default value of the showTarget property.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+            </setup>
+            <body>
+                <AssertPropertyValue target="testEffect" propertyName="showTarget" value="true"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeDown_showTarget" keywords="[WipeDown, Properties, showTarget]" description="Test setting the showTarget property.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="showTarget" value="false"/>
+            </setup>
+            <body>
+                <AssertPropertyValue target="testEffect" propertyName="showTarget" value="false"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeDown_showTarget_True" keywords="[WipeDown, Properties, showTarget]" description="Test WipeDown when showTarget is true.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="showTarget" value="true"/>
+                <SetProperty target="testEffect" propertyName="duration" value="1000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play()"/>
+                <Pause timeout="500"/>
+                <RunCode code="application.testEffect.pause()"/>
+                <Pause timeout="500"/>
+                <AssertPixelValue target="testImage" x="100" y="50" value="0"/>
+                <AssertPixelValue target="testImage" x="100" y="200" value="0"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeDown_showTarget_False" keywords="[WipeDown, Properties, showTarget]" description="Test WipeDown when showTarget is false.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="showTarget" value="false"/>
+                <SetProperty target="testEffect" propertyName="duration" value="1000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play()"/>
+                <Pause timeout="500"/>
+                <RunCode code="application.testEffect.pause()"/>
+                <Pause timeout="500"/>
+                <AssertPixelValue target="testImage" x="100" y="50" value="0"/>
+                <AssertPixelValue target="testImage" x="100" y="250" value="0"/>
+            </body>
+        </TestCase>
+
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/mx/effects/WipeDown/Props/baseline/WipeDown_showTarget_True.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/WipeDown/Props/baseline/WipeDown_showTarget_True.png?rev=1370370&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/mx/effects/WipeDown/Props/baseline/WipeDown_showTarget_True.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/mx/effects/WipeDown/SWFs/WipeDown_Main.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/WipeDown/SWFs/WipeDown_Main.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/WipeDown/SWFs/WipeDown_Main.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/WipeDown/SWFs/WipeDown_Main.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,102 @@
+<?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:Script>
+        <![CDATA[
+        import mx.controls.Image;
+        import mx.effects.WipeDown;
+        import mx.events.StateChangeEvent;
+        import mx.effects.effectClasses.WipeDownInstance;
+        
+        //Vars
+        public var myWipeDownInstance:WipeDownInstance = new WipeDownInstance(null);
+
+        //Methods
+        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"));
+        }
+        
+        //Reset the glow effect to default initialization
+        public function ResetEffectDefault():void
+        {
+            this.testEffect.stop();
+            this.testImage.filters = null;
+			this.testEffect = new WipeDown(this.testImage);
+        }
+        
+        public function ResetImage():void
+        {
+        }
+        
+        public function MyScaleEasing():void
+        {  
+        }
+        
+        public function MyMoveEasing():void
+        {
+        }
+        
+        public function MyMaskFunction():void
+        {
+        }
+        ]]>
+    </mx:Script>
+   
+    <mx:states>
+        <mx:State name="stateOne"/>
+        <mx:State name="stateTwo"/>
+    </mx:states>
+
+    <mx:transitions>
+        <mx:Transition fromState="stateOne" toState="stateTwo">
+			<mx:Sequence id="toStateTwo">
+                <mx:WipeDown targets="{[testImage]}" duration="500"/>
+			</mx:Sequence>
+	    </mx:Transition>
+    </mx:transitions>
+
+    <!-- Simple Effects -->
+    <mx:WipeDown id="testEffect" />
+
+    <!-- UI Components -->
+    <mx:Image id="testImage" source="Assets/../../../../../../Assets/Images/bluerect.jpg"/>
+
+</mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/effects/WipeDown/States/WipeDown_States.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/WipeDown/States/WipeDown_States.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/WipeDown/States/WipeDown_States.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/WipeDown/States/WipeDown_States.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,65 @@
+<?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.
+
+-->
+<!-- 
+     Methods.mxml - the following testCases test the given effect's public methods.
+-->
+<UnitTester 
+    testDir="mx/effects/WipeDown/States/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*" 
+    testSWF="../SWFs/WipeDown_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;
+        ]]>
+    </mx:Script>
+
+    <testCases>
+
+        <TestCase testID="WipeDown_TransitionToStateTwo"  keywords="[WipeDown, Transition, ChangeState]" description="Verify the WipeDown 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" />
+                <AssertPixelValue target="testImage" x="100" y="50" value="0"/>
+                <AssertPixelValue target="testImage" x="100" y="250" value="0"/>
+            </body>
+        </TestCase>
+
+
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/mx/effects/WipeLeft/Events/WipeLeft_Events.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/WipeLeft/Events/WipeLeft_Events.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/WipeLeft/Events/WipeLeft_Events.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/WipeLeft/Events/WipeLeft_Events.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="utf-8"?>
+<UnitTester 
+    testDir="mx/effects/WipeLeft/Events/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*"
+    testSWF="../SWFs/WipeLeft_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="WipeLeft_Events_EffectStart" keywords="[WipeLeft, Events, EffectStart]" description="Verify effectStart is raised during the play() of an effect.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <RunCode code="application.ResetImage()"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testImage], false)" waitTarget="testEffect" waitEvent="effectStart" />
+                <AssertEvent target="testEffect" eventName="effectStart" eventClass="mx.events::EffectEvent" />
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeLeft_Events_TweenStart" keywords="[WipeLeft, Events, TweenStart]" description="Verify tweenStart is NOT raised during the play() of an effect.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <RunCode code="application.ResetImage()"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testImage], false)" waitTarget="testEffect" waitEvent="effectEnd" />
+                <AssertEvent target="testEffect" eventName="tweenStart" eventClass="mx.events::TweenEvent" />
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeLeft_Events_TweenUpdate" keywords="[WipeLeft, Events, TweenUpdate]" description="Verify tweenUpdate is NOT raised during the play() of an effect.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <RunCode code="application.ResetImage()"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testImage], false)" waitTarget="testEffect" waitEvent="effectEnd" />
+                <AssertEvent target="testEffect" eventName="tweenUpdate" eventClass="mx.events::TweenEvent" numExpectedEvents="-1" />
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeLeft_Events_TweenEnd" keywords="[WipeLeft, Events, TweenEnd]" description="Verify tweenEnd is NOT raised during the play() of an effect.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <RunCode code="application.ResetImage()"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testImage], false)" waitTarget="testEffect" waitEvent="effectEnd" />
+                <AssertEvent target="testEffect" eventName="tweenEnd" eventClass="mx.events::TweenEvent" />
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeLeft_Events_EffectEnd" keywords="[WipeLeft, Events, EffectEnd]" description="Verify effectEnd is raised during the play() of an effect.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <RunCode code="application.ResetImage()"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testImage], false)" waitTarget="testEffect" waitEvent="effectEnd" />
+                <AssertEvent target="testEffect" eventName="effectEnd" eventClass="mx.events::EffectEvent" />
+            </body>
+        </TestCase>
+        
+    </testCases>
+    
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/mx/effects/WipeLeft/Methods/WipeLeft_Methods.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/WipeLeft/Methods/WipeLeft_Methods.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/WipeLeft/Methods/WipeLeft_Methods.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/WipeLeft/Methods/WipeLeft_Methods.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,133 @@
+<?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/WipeLeft/Methods/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*" 
+    testSWF="../SWFs/WipeLeft_Main.mxml">
+
+    <!-- this set of lines form a template that must be in each unit test -->
+    <mx:Script>
+        <![CDATA[
+        import mx.effects.WipeLeft;
+
+        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>
+
+        <!-- Construtor -->
+        <TestCase testID="WipeLeft_Constructor_Empty"  keywords="[WipeLeft, method, constructor]" description="Try to initialize the constructor with an empty arg.">
+            <body>
+                <RunCode code="application.testEffect = new WipeLeft();"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeLeft_Constructor_Null"  keywords="[WipeLeft, method, constructor]" description="Try to initialize the constructor with the null arg.">
+            <body>
+                <RunCode code="application.testEffect = new WipeLeft(null);"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeLeft_Constructor_Object"  keywords="[WipeLeft, method, constructor]" description="Try to initialize the constructor with an object.">
+            <body>
+                <RunCode code="application.testEffect = new WipeLeft(application.testImage);" />
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeLeft_resume" keywords="[WipeLeft, Methods, resume]" description="Test the resume() method.">
+            <setup>
+                <RunCode code="application.ResetImage()"/>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="duration" value="1000"/>
+                <RunCode code="application.testEffect.play()"/>
+                <Pause timeout="500"/>
+                <RunCode code="application.testEffect.pause()"/>
+                <Pause timeout="1000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.resume()" waitTarget="testEffect" waitEvent="effectEnd"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeLeft_pause" keywords="[WipeLeft, Methods, pause]" description="Test the pause() method.">
+            <setup>
+                <RunCode code="application.ResetImage()"/>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="duration" value="1000"/>
+                <RunCode code="application.testEffect.play()"/>
+                <Pause timeout="500"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.pause()"/>
+                <AssertPixelValue x="50" y="50" value="0xFFFFFF"/>
+                <Pause timeout="700"/>
+                <AssertNoEvent target="testEffect" eventName="effectEnd" eventClass="mx.effects.EffectEvent"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeLeft_play" keywords="[WipeLeft, Methods, play]" description="Test the play() method.">
+            <setup>
+                <RunCode code="application.ResetImage()"/>
+                <RunCode code="application.ResetEffectDefault()"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play()" waitTarget="testEffect" waitEvent="effectEnd"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeLeft_stop" keywords="[WipeLeft, Methods, stop]" description="Test the stop() method. Start, wait 500ms, then stop in mid-effect. Verify effectEnd">
+            <setup>
+                <RunCode code="application.ResetImage()"/>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="duration" value="1000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play()"/>
+                <Pause timeout="500"/>
+                <RunCode code="application.testEffect.stop()" waitTarget="testEffect" waitEvent="effectEnd"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeLeft_reverse" keywords="[WipeLeft, Methods, reverse]" description="Test the reverse() method. Start, wait 500ms, then reverse in mid-effect.">
+            <setup>
+                <RunCode code="application.ResetImage()"/>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="duration" value="1000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play()"/>
+                <Pause timeout="500"/>
+                <RunCode code="application.testEffect.reverse()" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPixelValue x="50" y="50" value="0xFFFFFF"/>
+            </body>
+        </TestCase>
+
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/mx/effects/WipeLeft/Props/WipeLeft_Properties.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/WipeLeft/Props/WipeLeft_Properties.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/WipeLeft/Props/WipeLeft_Properties.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/WipeLeft/Props/WipeLeft_Properties.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,91 @@
+<?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/WipeLeft/Props/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*" 
+    testSWF="../SWFs/WipeLeft_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="WipeLeft_showTarget_Default" keywords="[WipeLeft, Properties, showTarget]" description="Test the default value of the showTarget property.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+            </setup>
+            <body>
+                <AssertPropertyValue target="testEffect" propertyName="showTarget" value="true"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeLeft_showTarget" keywords="[WipeLeft, Properties, showTarget]" description="Test setting the showTarget property.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="showTarget" value="false"/>
+            </setup>
+            <body>
+                <AssertPropertyValue target="testEffect" propertyName="showTarget" value="false"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeLeft_showTarget_True" keywords="[WipeLeft, Properties, showTarget]" description="Test WipeLeft when showTarget is true.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="showTarget" value="true"/>
+                <SetProperty target="testEffect" propertyName="duration" value="1000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play()"/>
+                <Pause timeout="500"/>
+                <RunCode code="application.testEffect.pause()"/>
+                <AssertPixelValue target="testImage" x="50" y="50" value="0"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeLeft_showTarget_False" keywords="[WipeLeft, Properties, showTarget]" description="Test WipeLeft when showTarget is false.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="showTarget" value="false"/>
+                <SetProperty target="testEffect" propertyName="duration" value="1000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play()"/>
+                <Pause timeout="500"/>
+                <RunCode code="application.testEffect.pause()"/>
+                <AssertPixelValue target="testImage" x="50" y="50" value="0"/>
+            </body>
+        </TestCase>
+
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/mx/effects/WipeLeft/SWFs/WipeLeft_Main.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/WipeLeft/SWFs/WipeLeft_Main.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/WipeLeft/SWFs/WipeLeft_Main.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/WipeLeft/SWFs/WipeLeft_Main.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,102 @@
+<?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:Script>
+        <![CDATA[
+        import mx.controls.Image;
+        import mx.effects.WipeLeft;
+        import mx.events.StateChangeEvent;
+        import mx.effects.effectClasses.WipeLeftInstance;
+        
+        //Vars
+        public var myWipeLeftInstance:WipeLeftInstance = new WipeLeftInstance(null);
+
+        //Methods
+        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"));
+        }
+        
+        //Reset the glow effect to default initialization
+        public function ResetEffectDefault():void
+        {
+            this.testEffect.stop();
+            this.testImage.filters = null;
+			this.testEffect = new WipeLeft(this.testImage);
+        }
+        
+        public function ResetImage():void
+        {
+        }
+        
+        public function MyScaleEasing():void
+        {  
+        }
+        
+        public function MyMoveEasing():void
+        {
+        }
+        
+        public function MyMaskFunction():void
+        {
+        }
+        ]]>
+    </mx:Script>
+   
+    <mx:states>
+        <mx:State name="stateOne"/>
+        <mx:State name="stateTwo"/>
+    </mx:states>
+
+    <mx:transitions>
+        <mx:Transition fromState="stateOne" toState="stateTwo">
+			<mx:Sequence id="toStateTwo">
+                <mx:WipeLeft targets="{[testImage]}" duration="500"/>
+			</mx:Sequence>
+	    </mx:Transition>
+    </mx:transitions>
+
+    <!-- Simple Effects -->
+    <mx:WipeLeft id="testEffect" />
+
+    <!-- UI Components -->
+    <mx:Image id="testImage" source="Assets/../../../../../../Assets/Images/bluerect.jpg"/>
+
+</mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/effects/WipeLeft/States/WipeLeft_States.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/WipeLeft/States/WipeLeft_States.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/WipeLeft/States/WipeLeft_States.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/WipeLeft/States/WipeLeft_States.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,65 @@
+<?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.
+
+-->
+<!-- 
+     Methods.mxml - the following testCases test the given effect's public methods.
+-->
+<UnitTester 
+    testDir="mx/effects/WipeLeft/States/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*" 
+    testSWF="../SWFs/WipeLeft_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;
+        ]]>
+    </mx:Script>
+
+    <testCases>
+
+        <TestCase testID="WipeLeft_TransitionToStateTwo"  keywords="[WipeLeft, Transition, ChangeState]" description="Verify the WipeLeft 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" />
+                <AssertPixelValue target="testImage" x="50" y="150" value="0"/>
+                <AssertPixelValue target="testImage" x="150" y="150" value="0"/>
+            </body>
+        </TestCase>
+
+
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/mx/effects/WipeRight/Events/WipeRight_Events.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/WipeRight/Events/WipeRight_Events.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/WipeRight/Events/WipeRight_Events.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/WipeRight/Events/WipeRight_Events.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="utf-8"?>
+<UnitTester 
+    testDir="mx/effects/WipeRight/Events/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*"
+    testSWF="../SWFs/WipeRight_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="WipeRight_Events_EffectStart" keywords="[WipeRight, Events, EffectStart]" description="Verify effectStart is raised during the play() of an effect.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <RunCode code="application.ResetImage()"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testImage], false)" waitTarget="testEffect" waitEvent="effectStart" />
+                <AssertEvent target="testEffect" eventName="effectStart" eventClass="mx.events::EffectEvent" />
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeRight_Events_TweenStart" keywords="[WipeRight, Events, TweenStart]" description="Verify tweenStart is NOT raised during the play() of an effect.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <RunCode code="application.ResetImage()"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testImage], false)" waitTarget="testEffect" waitEvent="effectEnd" />
+                <AssertEvent target="testEffect" eventName="tweenStart" eventClass="mx.events::TweenEvent" />
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeRight_Events_TweenUpdate" keywords="[WipeRight, Events, TweenUpdate]" description="Verify tweenUpdate is NOT raised during the play() of an effect.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <RunCode code="application.ResetImage()"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testImage], false)" waitTarget="testEffect" waitEvent="effectEnd" />
+                <AssertEvent target="testEffect" eventName="tweenUpdate" eventClass="mx.events::TweenEvent" numExpectedEvents="-1" />
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeRight_Events_TweenEnd" keywords="[WipeRight, Events, TweenEnd]" description="Verify tweenEnd is NOT raised during the play() of an effect.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <RunCode code="application.ResetImage()"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testImage], false)" waitTarget="testEffect" waitEvent="effectEnd" />
+                <AssertEvent target="testEffect" eventName="tweenEnd" eventClass="mx.events::TweenEvent" />
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeRight_Events_EffectEnd" keywords="[WipeRight, Events, EffectEnd]" description="Verify effectEnd is raised during the play() of an effect.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <RunCode code="application.ResetImage()"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testImage], false)" waitTarget="testEffect" waitEvent="effectEnd" />
+                <AssertEvent target="testEffect" eventName="effectEnd" eventClass="mx.events::EffectEvent" />
+            </body>
+        </TestCase>
+        
+    </testCases>
+    
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/mx/effects/WipeRight/Methods/WipeRight_Methods.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/WipeRight/Methods/WipeRight_Methods.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/WipeRight/Methods/WipeRight_Methods.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/WipeRight/Methods/WipeRight_Methods.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,136 @@
+<?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/WipeRight/Methods/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*" 
+    testSWF="../SWFs/WipeRight_Main.mxml">
+
+    <!-- this set of lines form a template that must be in each unit test -->
+    <mx:Script>
+        <![CDATA[
+        import mx.effects.WipeRight;
+
+        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>
+
+        <!-- Construtor -->
+        <TestCase testID="WipeRight_Constructor_Empty"  keywords="[WipeRight, method, constructor]" description="Try to initialize the constructor with an empty arg.">
+            <body>
+                <RunCode code="application.testEffect = new WipeRight();"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeRight_Constructor_Null"  keywords="[WipeRight, method, constructor]" description="Try to initialize the constructor with the null arg.">
+            <body>
+                <RunCode code="application.testEffect = new WipeRight(null);"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeRight_Constructor_Object"  keywords="[WipeRight, method, constructor]" description="Try to initialize the constructor with an object.">
+            <body>
+                <RunCode code="application.testEffect = new WipeRight(application.testImage);" />
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeRight_resume" keywords="[WipeRight, Methods, resume]" description="Test the resume() method.">
+            <setup>
+                <RunCode code="application.ResetImage()"/>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="duration" value="1000"/>
+                <RunCode code="application.testEffect.play()"/>
+                <Pause timeout="500"/>
+                <RunCode code="application.testEffect.pause()"/>
+                <Pause timeout="1000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.resume()" waitTarget="testEffect" waitEvent="effectEnd"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeRight_pause" keywords="[WipeRight, Methods, pause]" description="Test the pause() method.">
+            <setup>
+                <RunCode code="application.ResetImage()"/>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="duration" value="1000"/>
+                <RunCode code="application.testEffect.play()"/>
+                <Pause timeout="500"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.pause()"/>
+                <AssertPixelValue x="50" y="50" value="0xFFFFFF"/>
+                <AssertPixelValue x="150" y="150" value="0xFFFFFF"/>
+                <Pause timeout="700"/>
+                <AssertNoEvent target="testEffect" eventName="effectEnd" eventClass="mx.effects.EffectEvent"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeRight_play" keywords="[WipeRight, Methods, play]" description="Test the play() method.">
+            <setup>
+                <RunCode code="application.ResetImage()"/>
+                <RunCode code="application.ResetEffectDefault()"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play()" waitTarget="testEffect" waitEvent="effectEnd"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeRight_stop" keywords="[WipeRight, Methods, stop]" description="Test the stop() method. Start, wait 500ms, then stop in mid-effect. Verify effectEnd">
+            <setup>
+                <RunCode code="application.ResetImage()"/>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="duration" value="1000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play()"/>
+                <Pause timeout="500"/>
+                <RunCode code="application.testEffect.stop()" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPixelValue x="150" y="150" value="0xFFFFFF"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeRight_reverse" keywords="[WipeRight, Methods, reverse]" description="Test the reverse() method. Start, wait 500ms, then reverse in mid-effect.">
+            <setup>
+                <RunCode code="application.ResetImage()"/>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="duration" value="1000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play()"/>
+                <Pause timeout="500"/>
+                <AssertPixelValue x="150" y="150" value="0xFFFFFF"/>
+                <RunCode code="application.testEffect.reverse()" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPixelValue x="150" y="150" value="0xFFFFFF"/>
+            </body>
+        </TestCase>
+
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/mx/effects/WipeRight/Props/WipeRight_Properties.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/WipeRight/Props/WipeRight_Properties.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/WipeRight/Props/WipeRight_Properties.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/WipeRight/Props/WipeRight_Properties.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,93 @@
+<?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/WipeRight/Props/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*" 
+    testSWF="../SWFs/WipeRight_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="WipeRight_showTarget_Default" keywords="[WipeRight, Properties, showTarget]" description="Test the default value of the showTarget property.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+            </setup>
+            <body>
+                <AssertPropertyValue target="testEffect" propertyName="showTarget" value="true"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeRight_showTarget" keywords="[WipeRight, Properties, showTarget]" description="Test setting the showTarget property.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="showTarget" value="false"/>
+            </setup>
+            <body>
+                <AssertPropertyValue target="testEffect" propertyName="showTarget" value="false"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeRight_showTarget_True" keywords="[WipeRight, Properties, showTarget]" description="Test WipeRight when showTarget is true.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="showTarget" value="true"/>
+                <SetProperty target="testEffect" propertyName="duration" value="1000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play()"/>
+                <Pause timeout="500"/>
+                <RunCode code="application.testEffect.pause()"/>
+                <AssertPixelValue target="testImage" x="50" y="50" value="0"/>
+                <AssertPixelValue target="testImage" x="150" y="150" value="0"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeRight_showTarget_False" keywords="[WipeRight, Properties, showTarget]" description="Test WipeRight when showTarget is false.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="showTarget" value="false"/>
+                <SetProperty target="testEffect" propertyName="duration" value="1000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play()"/>
+                <Pause timeout="500"/>
+                <RunCode code="application.testEffect.pause()"/>
+                <AssertPixelValue target="testImage" x="50" y="50" value="0"/>
+                <AssertPixelValue target="testImage" x="150" y="150" value="0"/>
+            </body>
+        </TestCase>
+
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/mx/effects/WipeRight/SWFs/WipeRight_Main.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/WipeRight/SWFs/WipeRight_Main.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/WipeRight/SWFs/WipeRight_Main.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/WipeRight/SWFs/WipeRight_Main.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,102 @@
+<?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:Script>
+        <![CDATA[
+        import mx.controls.Image;
+        import mx.effects.WipeRight;
+        import mx.events.StateChangeEvent;
+        import mx.effects.effectClasses.WipeRightInstance;
+        
+        //Vars
+        public var myWipeRightInstance:WipeRightInstance = new WipeRightInstance(null);
+
+        //Methods
+        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"));
+        }
+        
+        //Reset the glow effect to default initialization
+        public function ResetEffectDefault():void
+        {
+            this.testEffect.stop();
+            this.testImage.filters = null;
+			this.testEffect = new WipeRight(this.testImage);
+        }
+        
+        public function ResetImage():void
+        {
+        }
+        
+        public function MyScaleEasing():void
+        {  
+        }
+        
+        public function MyMoveEasing():void
+        {
+        }
+        
+        public function MyMaskFunction():void
+        {
+        }
+        ]]>
+    </mx:Script>
+   
+    <mx:states>
+        <mx:State name="stateOne"/>
+        <mx:State name="stateTwo"/>
+    </mx:states>
+
+    <mx:transitions>
+        <mx:Transition fromState="stateOne" toState="stateTwo">
+			<mx:Sequence id="toStateTwo">
+                <mx:WipeRight targets="{[testImage]}" duration="500"/>
+			</mx:Sequence>
+	    </mx:Transition>
+    </mx:transitions>
+
+    <!-- Simple Effects -->
+    <mx:WipeRight id="testEffect" />
+
+    <!-- UI Components -->
+    <mx:Image id="testImage" source="Assets/../../../../../../Assets/Images/bluerect.jpg"/>
+
+</mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/effects/WipeRight/States/WipeRight_States.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/WipeRight/States/WipeRight_States.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/WipeRight/States/WipeRight_States.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/WipeRight/States/WipeRight_States.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,65 @@
+<?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.
+
+-->
+<!-- 
+     Methods.mxml - the following testCases test the given effect's public methods.
+-->
+<UnitTester 
+    testDir="mx/effects/WipeRight/States/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*" 
+    testSWF="../SWFs/WipeRight_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;
+        ]]>
+    </mx:Script>
+
+    <testCases>
+
+        <TestCase testID="WipeRight_TransitionToStateTwo"  keywords="[WipeRight, Transition, ChangeState]" description="Verify the WipeRight 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" />
+                <AssertPixelValue target="testImage" x="50" y="50" value="0"/>
+                <AssertPixelValue target="testImage" x="150" y="150" value="0"/>
+            </body>
+        </TestCase>
+
+
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/mx/effects/WipeUp/Events/WipeUp_Events.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/WipeUp/Events/WipeUp_Events.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/WipeUp/Events/WipeUp_Events.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/WipeUp/Events/WipeUp_Events.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="utf-8"?>
+<UnitTester 
+    testDir="mx/effects/WipeUp/Events/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*"
+    testSWF="../SWFs/WipeUp_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="WipeUp_Events_EffectStart" keywords="[WipeUp, Events, EffectStart]" description="Verify effectStart is raised during the play() of an effect.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <RunCode code="application.ResetImage()"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testImage], false)" waitTarget="testEffect" waitEvent="effectStart" />
+                <AssertEvent target="testEffect" eventName="effectStart" eventClass="mx.events::EffectEvent" />
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeUp_Events_TweenStart" keywords="[WipeUp, Events, TweenStart]" description="Verify tweenStart is NOT raised during the play() of an effect.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <RunCode code="application.ResetImage()"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testImage], false)" waitTarget="testEffect" waitEvent="effectEnd" />
+                <AssertEvent target="testEffect" eventName="tweenStart" eventClass="mx.events::TweenEvent" />
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeUp_Events_TweenUpdate" keywords="[WipeUp, Events, TweenUpdate]" description="Verify tweenUpdate is NOT raised during the play() of an effect.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <RunCode code="application.ResetImage()"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testImage], false)" waitTarget="testEffect" waitEvent="effectEnd" />
+                <AssertEvent target="testEffect" eventName="tweenUpdate" eventClass="mx.events::TweenEvent" numExpectedEvents="-1" />
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeUp_Events_TweenEnd" keywords="[WipeUp, Events, TweenEnd]" description="Verify tweenEnd is NOT raised during the play() of an effect.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <RunCode code="application.ResetImage()"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testImage], false)" waitTarget="testEffect" waitEvent="effectEnd" />
+                <AssertEvent target="testEffect" eventName="tweenEnd" eventClass="mx.events::TweenEvent" />
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeUp_Events_EffectEnd" keywords="[WipeUp, Events, EffectEnd]" description="Verify effectEnd is raised during the play() of an effect.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <RunCode code="application.ResetImage()"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play([application.testImage], false)" waitTarget="testEffect" waitEvent="effectEnd" />
+                <AssertEvent target="testEffect" eventName="effectEnd" eventClass="mx.events::EffectEvent" />
+            </body>
+        </TestCase>
+        
+    </testCases>
+    
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/mx/effects/WipeUp/Methods/WipeUp_Methods.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/WipeUp/Methods/WipeUp_Methods.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/WipeUp/Methods/WipeUp_Methods.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/WipeUp/Methods/WipeUp_Methods.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,137 @@
+<?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/WipeUp/Methods/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*" 
+    testSWF="../SWFs/WipeUp_Main.mxml">
+
+    <!-- this set of lines form a template that must be in each unit test -->
+    <mx:Script>
+        <![CDATA[
+        import mx.effects.WipeUp;
+
+        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>
+
+        <!-- Construtor -->
+        <TestCase testID="WipeUp_Constructor_Empty"  keywords="[WipeUp, method, constructor]" description="Try to initialize the constructor with an empty arg.">
+            <body>
+                <RunCode code="application.testEffect = new WipeUp();"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeUp_Constructor_Null"  keywords="[WipeUp, method, constructor]" description="Try to initialize the constructor with the null arg.">
+            <body>
+                <RunCode code="application.testEffect = new WipeUp(null);"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeUp_Constructor_Object"  keywords="[WipeUp, method, constructor]" description="Try to initialize the constructor with an object.">
+            <body>
+                <RunCode code="application.testEffect = new WipeUp(application.testImage);" />
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeUp_resume" keywords="[WipeUp, Methods, resume]" description="Test the resume() method.">
+            <setup>
+                <RunCode code="application.ResetImage()"/>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="duration" value="1000"/>
+                <RunCode code="application.testEffect.play()"/>
+                <Pause timeout="500"/>
+                <RunCode code="application.testEffect.pause()"/>
+                <Pause timeout="1000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.resume()" waitTarget="testEffect" waitEvent="effectEnd"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeUp_pause" keywords="[WipeUp, Methods, pause]" description="Test the pause() method.">
+            <setup>
+                <RunCode code="application.ResetImage()"/>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="duration" value="1000"/>
+                <RunCode code="application.testEffect.play()"/>
+                <Pause timeout="500"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.pause()"/>
+                <AssertPixelValue x="100" y="50" value="0xFFFFFF"/>
+                <AssertPixelValue x="100" y="200" value="0xFFFFFF"/>
+                <Pause timeout="700"/>
+                <AssertNoEvent target="testEffect" eventName="effectEnd" eventClass="mx.effects.EffectEvent"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeUp_play" keywords="[WipeUp, Methods, play]" description="Test the play() method.">
+            <setup>
+                <RunCode code="application.ResetImage()"/>
+                <RunCode code="application.ResetEffectDefault()"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play()" waitTarget="testEffect" waitEvent="effectEnd"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeUp_stop" keywords="[WipeUp, Methods, stop]" description="Test the stop() method. Start, wait 500ms, then stop in mid-effect. Verify effectEnd">
+            <setup>
+                <RunCode code="application.ResetImage()"/>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="duration" value="1000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play()"/>
+                <Pause timeout="500"/>
+                <RunCode code="application.testEffect.stop()" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPixelValue x="100" y="50" value="0xFFFFFF"/>
+                <AssertPixelValue x="100" y="200" value="0xFFFFFF"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeUp_reverse" keywords="[WipeUp, Methods, reverse]" description="Test the reverse() method. Start, wait 500ms, then reverse in mid-effect.">
+            <setup>
+                <RunCode code="application.ResetImage()"/>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="duration" value="1000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play()"/>
+                <Pause timeout="500"/>
+                <AssertPixelValue x="100" y="50" value="0xFFFFFF"/>
+                <RunCode code="application.testEffect.reverse()" waitTarget="testEffect" waitEvent="effectEnd"/>
+                <AssertPixelValue x="100" y="50" value="0xFFFFFF"/>
+            </body>
+        </TestCase>
+
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/mx/effects/WipeUp/Props/Wipeup_Properties.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/WipeUp/Props/Wipeup_Properties.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/WipeUp/Props/Wipeup_Properties.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/WipeUp/Props/Wipeup_Properties.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,93 @@
+<?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/WipeUp/Props/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*" 
+    testSWF="../SWFs/WipeUp_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="WipeUp_showTarget_Default" keywords="[WipeUp, Properties, showTarget]" description="Test the default value of the showTarget property.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+            </setup>
+            <body>
+                <AssertPropertyValue target="testEffect" propertyName="showTarget" value="true"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeUp_showTarget" keywords="[WipeUp, Properties, showTarget]" description="Test setting the showTarget property.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="showTarget" value="false"/>
+            </setup>
+            <body>
+                <AssertPropertyValue target="testEffect" propertyName="showTarget" value="false"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeUp_showTarget_True" keywords="[WipeUp, Properties, showTarget]" description="Test WipeUp when showTarget is true.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="showTarget" value="true"/>
+                <SetProperty target="testEffect" propertyName="duration" value="1000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play()"/>
+                <Pause timeout="500"/>
+                <RunCode code="application.testEffect.pause()"/>
+                <AssertPixelValue target="testImage" x="100" y="50" value="0"/>
+                <AssertPixelValue target="testImage" x="100" y="250" value="0"/>
+            </body>
+        </TestCase>
+
+        <TestCase testID="WipeUp_showTarget_False" keywords="[WipeUp, Properties, showTarget]" description="Test WipeUp when showTarget is false.">
+            <setup>
+                <RunCode code="application.ResetEffectDefault()"/>
+                <SetProperty target="testEffect" propertyName="showTarget" value="false"/>
+                <SetProperty target="testEffect" propertyName="duration" value="1000"/>
+            </setup>
+            <body>
+                <RunCode code="application.testEffect.play()"/>
+                <Pause timeout="500"/>
+                <RunCode code="application.testEffect.pause()"/>
+                <AssertPixelValue target="testImage" x="100" y="50" value="0"/>
+                <AssertPixelValue target="testImage" x="100" y="250" value="0"/>
+            </body>
+        </TestCase>
+
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/mx/effects/WipeUp/SWFs/WipeUp_Main.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/WipeUp/SWFs/WipeUp_Main.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/WipeUp/SWFs/WipeUp_Main.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/WipeUp/SWFs/WipeUp_Main.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,102 @@
+<?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:Script>
+        <![CDATA[
+        import mx.controls.Image;
+        import mx.effects.WipeUp;
+        import mx.events.StateChangeEvent;
+        import mx.effects.effectClasses.WipeUpInstance;
+        
+        //Vars
+        public var myWipeUpInstance:WipeUpInstance = new WipeUpInstance(null);
+
+        //Methods
+        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"));
+        }
+        
+        //Reset the glow effect to default initialization
+        public function ResetEffectDefault():void
+        {
+            this.testEffect.stop();
+            this.testImage.filters = null;
+			this.testEffect = new WipeUp(this.testImage);
+        }
+        
+        public function ResetImage():void
+        {
+        }
+        
+        public function MyScaleEasing():void
+        {  
+        }
+        
+        public function MyMoveEasing():void
+        {
+        }
+        
+        public function MyMaskFunction():void
+        {
+        }
+        ]]>
+    </mx:Script>
+   
+    <mx:states>
+        <mx:State name="stateOne"/>
+        <mx:State name="stateTwo"/>
+    </mx:states>
+
+    <mx:transitions>
+        <mx:Transition fromState="stateOne" toState="stateTwo">
+			<mx:Sequence id="toStateTwo">
+                <mx:WipeUp targets="{[testImage]}" duration="500"/>
+			</mx:Sequence>
+	    </mx:Transition>
+    </mx:transitions>
+
+    <!-- Simple Effects -->
+    <mx:WipeUp id="testEffect" />
+
+    <!-- UI Components -->
+    <mx:Image id="testImage" source="Assets/../../../../../../Assets/Images/bluerect.jpg"/>
+
+</mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/mx/effects/WipeUp/States/WipeUp_States.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/mx/effects/WipeUp/States/WipeUp_States.mxml?rev=1370370&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/mx/effects/WipeUp/States/WipeUp_States.mxml (added)
+++ incubator/flex/trunk/mustella/tests/mx/effects/WipeUp/States/WipeUp_States.mxml Tue Aug  7 17:13:06 2012
@@ -0,0 +1,65 @@
+<?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.
+
+-->
+<!-- 
+     Methods.mxml - the following testCases test the given effect's public methods.
+-->
+<UnitTester 
+    testDir="mx/effects/WipeUp/States/"  
+    xmlns:mx="http://www.adobe.com/2006/mxml" 
+    xmlns="*" 
+    testSWF="../SWFs/WipeUp_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;
+        ]]>
+    </mx:Script>
+
+    <testCases>
+
+        <TestCase testID="WipeUp_TransitionToStateTwo"  keywords="[WipeUp, Transition, ChangeState]" description="Verify the WipeUp 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" />
+                <AssertPixelValue target="testImage" x="100" y="50" value="0"/>
+                <AssertPixelValue target="testImage" x="100" y="250" value="0"/>
+            </body>
+        </TestCase>
+
+
+    </testCases>
+
+</UnitTester>



Mime
View raw message