You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cf...@apache.org on 2012/09/26 19:27:07 UTC

svn commit: r1390622 - /incubator/flex/sdk/branches/develop/mustella/tests/spark/effects/Resize/BetterAutoCenter/Resize_SpaceInvaders.mxml

Author: cframpton
Date: Wed Sep 26 17:27:07 2012
New Revision: 1390622

URL: http://svn.apache.org/viewvc?rev=1390622&view=rev
Log:
Add timeout to waitEvent=effectEnd and replace Pause tags with WaitForLayoutManager tags.

Modified:
    incubator/flex/sdk/branches/develop/mustella/tests/spark/effects/Resize/BetterAutoCenter/Resize_SpaceInvaders.mxml

Modified: incubator/flex/sdk/branches/develop/mustella/tests/spark/effects/Resize/BetterAutoCenter/Resize_SpaceInvaders.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/spark/effects/Resize/BetterAutoCenter/Resize_SpaceInvaders.mxml?rev=1390622&r1=1390621&r2=1390622&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/tests/spark/effects/Resize/BetterAutoCenter/Resize_SpaceInvaders.mxml (original)
+++ incubator/flex/sdk/branches/develop/mustella/tests/spark/effects/Resize/BetterAutoCenter/Resize_SpaceInvaders.mxml Wed Sep 26 17:27:07 2012
@@ -8,7 +8,7 @@
     <!-- this set of lines form a template that must be in each unit test -->
     <mx:Script>
         <![CDATA[
-		[Bindable]private var timeout:int = 200;
+		[Bindable]private var timeout:int = 5000;
 		
         public static function init(o:DisplayObject):void
         {
@@ -26,10 +26,10 @@
 		<TestCase testID="Resize_SpaceInvaders_RM" keywords="[Resize]" description="Resize with better auto centering.">
             <setup>
                 <RunCode code="application.Reset()" />
-				<Pause timeout="{timeout}"/>
+				<WaitForLayoutManager/>
             </setup>
             <body>
-                <RunCode code="application.p_rm.play();" waitTarget="p_rm" waitEvent="effectEnd"  />
+                <RunCode code="application.p_rm.play();" waitTarget="p_rm" waitEvent="effectEnd" timeout="{timeout}"  />
 				<AssertPropertyValue target="invader1" propertyName="width" value="200"/>
 				<AssertPropertyValue target="invader1" propertyName="height" value="100"/>
 				<AssertPropertyValue target="invader1" propertyName="x" value="250"/>
@@ -40,10 +40,10 @@
 		<TestCase testID="Resize_SpaceInvaders_RM_ACT" keywords="[Resize]" description="Resize with better auto centering.">
 			<setup>
 				<RunCode code="application.Reset()" />
-				<Pause timeout="{timeout}"/>
+				<WaitForLayoutManager/>
 			</setup>
 			<body>
-				<RunCode code="application.p_rm_act.play();" waitTarget="p_rm_act" waitEvent="effectEnd"  />
+				<RunCode code="application.p_rm_act.play();" waitTarget="p_rm_act" waitEvent="effectEnd" timeout="{timeout}"  />
 				<AssertPropertyValue target="invader1" propertyName="width" value="200"/>
 				<AssertPropertyValue target="invader1" propertyName="height" value="100"/>
 				<AssertPropertyValue target="invader1" propertyName="x" value="200"/>
@@ -54,10 +54,10 @@
 		<TestCase testID="Resize_SpaceInvaders_RM_ACPL" keywords="[Resize]" description="Resize with better auto centering.">
 			<setup>
 				<RunCode code="application.Reset()" />
-				<Pause timeout="{timeout}"/>
+				<WaitForLayoutManager/>
 			</setup>
 			<body>
-				<RunCode code="application.p_rm_acpl.play();" waitTarget="p_rm_acpl" waitEvent="effectEnd"  />
+				<RunCode code="application.p_rm_acpl.play();" waitTarget="p_rm_acpl" waitEvent="effectEnd" timeout="{timeout}"  />
 				<AssertPropertyValue target="invader1" propertyName="width" value="200"/>
 				<AssertPropertyValue target="invader1" propertyName="height" value="100"/>
 				<AssertPropertyValue target="invader1" propertyName="x" value="250"/>
@@ -69,10 +69,10 @@
 		<TestCase testID="Resize_SpaceInvaders_RM_ACT_ACPL" keywords="[Resize]" description="Resize with better auto centering.">
 			<setup>
 				<RunCode code="application.Reset()" />
-				<Pause timeout="{timeout}"/>
+				<WaitForLayoutManager/>
 			</setup>
 			<body>
-				<RunCode code="application.p_rm_act_acpl.play();" waitTarget="p_rm_act_acpl" waitEvent="effectEnd" />
+				<RunCode code="application.p_rm_act_acpl.play();" waitTarget="p_rm_act_acpl" waitEvent="effectEnd" timeout="{timeout}" />
 				<AssertPropertyValue target="invader1" propertyName="width" value="200"/>
 				<AssertPropertyValue target="invader1" propertyName="height" value="100"/>
 				<AssertMethodValue method="value=(application.invader1.x &gt; 249)" value="true"/>
@@ -87,10 +87,10 @@
 		<TestCase testID="Resize_SpaceInvaders_RMR" keywords="[Resize]" description="Resize with better auto centering.">
 			<setup>
 				<RunCode code="application.Reset()" />
-				<Pause timeout="{timeout}"/>
+				<WaitForLayoutManager/>
 			</setup>
 			<body>
-				<RunCode code="application.p_rmr.play();" waitTarget="p_rmr" waitEvent="effectEnd"  />
+				<RunCode code="application.p_rmr.play();" waitTarget="p_rmr" waitEvent="effectEnd" timeout="{timeout}"  />
 				<AssertPropertyValue target="invader1" propertyName="width" value="200"/>
 				<AssertPropertyValue target="invader1" propertyName="height" value="100"/>
 				<AssertMethodValue method="value=(application.invader1.x &lt; 251)" value="true"/>
@@ -103,10 +103,10 @@
 		<TestCase testID="Resize_SpaceInvaders_RMR_ACT" keywords="[Resize]" description="Resize with better auto centering.">
 			<setup>
 				<RunCode code="application.Reset()" />
-				<Pause timeout="{timeout}"/>
+				<WaitForLayoutManager/>
 			</setup>
 			<body>
-				<RunCode code="application.p_rmr_act.play();" waitTarget="p_rmr_act" waitEvent="effectEnd"  />
+				<RunCode code="application.p_rmr_act.play();" waitTarget="p_rmr_act" waitEvent="effectEnd" timeout="{timeout}"  />
 				<AssertPropertyValue target="invader1" propertyName="width" value="200"/>
 				<AssertPropertyValue target="invader1" propertyName="height" value="100"/>
 				<AssertPropertyValue target="invader1" propertyName="x" value="200"/>
@@ -117,10 +117,10 @@
 		<TestCase testID="Resize_SpaceInvaders_RMR_ACPL" keywords="[Resize]" description="Resize with better auto centering.">
 			<setup>
 				<RunCode code="application.Reset()" />
-				<Pause timeout="{timeout}"/>
+				<WaitForLayoutManager/>
 			</setup>
 			<body>
-				<RunCode code="application.p_rmr_acpl.play();" waitTarget="p_rmr_acpl" waitEvent="effectEnd"  />
+				<RunCode code="application.p_rmr_acpl.play();" waitTarget="p_rmr_acpl" waitEvent="effectEnd" timeout="{timeout}"  />
 				<AssertPropertyValue target="invader1" propertyName="width" value="200"/>
 				<AssertPropertyValue target="invader1" propertyName="height" value="100"/>
 				<AssertPropertyValue target="invader1" propertyName="x" value="250"/>
@@ -132,10 +132,10 @@
 		<TestCase testID="Resize_SpaceInvaders_RMR_ACT_ACPL" keywords="[Resize]" description="Resize with better auto centering.">
 			<setup>
 				<RunCode code="application.Reset()" />
-				<Pause timeout="{timeout}"/>
+				<WaitForLayoutManager/>
 			</setup>
 			<body>
-				<RunCode code="application.p_rmr_act_acpl.play();" waitTarget="p_rmr_act_acpl" waitEvent="effectEnd" />
+				<RunCode code="application.p_rmr_act_acpl.play();" waitTarget="p_rmr_act_acpl" waitEvent="effectEnd" timeout="{timeout}" />
 				<AssertPropertyValue target="invader1" propertyName="width" value="200"/>
 				<AssertPropertyValue target="invader1" propertyName="height" value="100"/>
 				<AssertMethodValue method="value=(application.invader1.y &lt; 1)" value="true"/>
@@ -143,21 +143,16 @@
 				<AssertMethodValue method="value=(application.invader1.postLayoutTransformOffsets.y &lt; 701)" value="true"/>
 			</body>
 		</TestCase>
-
-
-		
-		
-		
 		
 		<!-- Transition stuff -->
 		<TestCase testID="Resize_SpaceInvaders_Trans_RM" keywords="[Resize]" description="Resize with better auto centering.">
 			<setup>
 				<RunCode code="application.Reset()" />
 				<RunCode code="application.currentState='State1'" />
-				<Pause timeout="{timeout}"/>
+				<WaitForLayoutManager/>
 			</setup>
 			<body>
-				<RunCode code="application.PlayTransition(application.t_rm)" waitTarget="t_rm" waitEvent="effectEnd"  />
+				<RunCode code="application.PlayTransition(application.t_rm)" waitTarget="t_rm" waitEvent="effectEnd" timeout="{timeout}"  />
 				<AssertPropertyValue target="invader1" propertyName="width" value="200"/>
 				<AssertPropertyValue target="invader1" propertyName="height" value="100"/>
 				<AssertPropertyValue target="invader1" propertyName="x" value="250"/>
@@ -169,10 +164,10 @@
 			<setup>
 				<RunCode code="application.Reset()" />
 				<RunCode code="application.currentState='State1'" />
-				<Pause timeout="{timeout}"/>
+				<WaitForLayoutManager/>
 			</setup>
 			<body>
-				<RunCode code="application.PlayTransition(application.t_rm_act);" waitTarget="t_rm_act" waitEvent="effectEnd"  />
+				<RunCode code="application.PlayTransition(application.t_rm_act);" waitTarget="t_rm_act" waitEvent="effectEnd" timeout="{timeout}"  />
 				<AssertPropertyValue target="invader1" propertyName="width" value="200"/>
 				<AssertPropertyValue target="invader1" propertyName="height" value="100"/>
 				<AssertPropertyValue target="invader1" propertyName="x" value="250"/>
@@ -185,10 +180,10 @@
 			<setup>
 				<RunCode code="application.Reset()" />
 				<RunCode code="application.currentState='State1'" />
-				<Pause timeout="{timeout}"/>
+				<WaitForLayoutManager/>
 			</setup>
 			<body>
-				<RunCode code="application.PlayTransition(application.t_rmr);" waitTarget="t_rmr" waitEvent="effectEnd"  />
+				<RunCode code="application.PlayTransition(application.t_rmr);" waitTarget="t_rmr" waitEvent="effectEnd" timeout="{timeout}"  />
 				<AssertPropertyValue target="invader1" propertyName="width" value="200"/>
 				<AssertPropertyValue target="invader1" propertyName="height" value="100"/>
 				<AssertMethodValue method="value=(application.invader1.x &lt; 251)" value="true"/>
@@ -202,10 +197,10 @@
 			<setup>
 				<RunCode code="application.Reset()" />
 				<RunCode code="application.currentState='State1'" />
-				<Pause timeout="{timeout}"/>
+				<WaitForLayoutManager/>
 			</setup>
 			<body>
-				<RunCode code="application.PlayTransition(application.t_rmr_act);" waitTarget="t_rmr_act" waitEvent="effectEnd"  />
+				<RunCode code="application.PlayTransition(application.t_rmr_act);" waitTarget="t_rmr_act" waitEvent="effectEnd" timeout="{timeout}"  />
 				<AssertPropertyValue target="invader1" propertyName="width" value="200"/>
 				<AssertPropertyValue target="invader1" propertyName="height" value="100"/>
 				<AssertPropertyValue target="invader1" propertyName="x" value="250"/>