You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2012/09/15 01:05:38 UTC

svn commit: r1384973 - /incubator/flex/sdk/branches/develop/mustella/tests/containers/tabnavigator/Styles/TabNavigator_Styles_SkinStates_Spark.mxml

Author: aharui
Date: Fri Sep 14 23:05:38 2012
New Revision: 1384973

URL: http://svn.apache.org/viewvc?rev=1384973&view=rev
Log:
Hopefully fix flaky tabnav tests.  The mouseDown_selected test doesn't change the state so you have to grab the event earlier.  Note that it might be better to use currentSkin instead of getChildAt in the other tests as the ordering is a bit different earlier in the test.

Modified:
    incubator/flex/sdk/branches/develop/mustella/tests/containers/tabnavigator/Styles/TabNavigator_Styles_SkinStates_Spark.mxml

Modified: incubator/flex/sdk/branches/develop/mustella/tests/containers/tabnavigator/Styles/TabNavigator_Styles_SkinStates_Spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/containers/tabnavigator/Styles/TabNavigator_Styles_SkinStates_Spark.mxml?rev=1384973&r1=1384972&r2=1384973&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/tests/containers/tabnavigator/Styles/TabNavigator_Styles_SkinStates_Spark.mxml (original)
+++ incubator/flex/sdk/branches/develop/mustella/tests/containers/tabnavigator/Styles/TabNavigator_Styles_SkinStates_Spark.mxml Fri Sep 14 23:05:38 2012
@@ -424,7 +424,7 @@
             <setup>
                 <ResetComponent target="tn" className="TNComp"  waitEvent="updateComplete" waitTarget="tn"/>
                 <SetStyle target="tn.tabn" styleName="tabStyleName" value="myTabNavigatorSWFRunTime" waitEvent="updateComplete" waitTarget="tn.tabn" />
-                <DispatchMouseEvent type="rollOver" localX="10" localY="10" target="tn.tabn" waitEvent="rollOver"/>
+                <DispatchMouseEvent type="rollOver" localX="10" localY="10" target="tn.tabn"/>
                 <WaitForEvent eventName="complete" target="tn.tabn.rawChildren.getChildAt(2).getChildAt(0).getChildAt(0).selectedOverImage" /> 
                 <WaitForEffectsToEnd />
              </setup>
@@ -436,7 +436,7 @@
             <setup>
                 <ResetComponent target="tn" className="TNComp"  waitEvent="updateComplete" waitTarget="tn"/>
                 <SetStyle target="tn.tabn" styleName="tabStyleName" value="myTabNavigatorSWFRunTime" waitEvent="updateComplete" waitTarget="tn.tabn" /> 
-                <DispatchMouseEvent type="rollOver" localX="109" localY="10" target="tn.tabn" waitEvent="rollOver"/>
+                <DispatchMouseEvent type="rollOver" localX="109" localY="10" target="tn.tabn"/>
                 <WaitForEvent eventName="complete" target="tn.tabn.rawChildren.getChildAt(2).getChildAt(1).getChildAt(0).overImage" /> 
                 <WaitForEffectsToEnd />
             </setup>
@@ -448,11 +448,10 @@
         <TestCase testID="TabNavigator_Styles_SkinStates_runtime_SWF_mouseDown_selectedTab" keywords="[enabled, SkinStates,runtimeSWF, TabNavigator]" >
             <setup>
                 <ResetComponent target="tn" className="TNComp"  waitEvent="updateComplete" waitTarget="tn"/>
-                <SetStyle target="tn.tabn" styleName="tabStyleName" value="myTabNavigatorSWFRunTime" waitEvent="updateComplete" waitTarget="tn.tabn" /> 
+                <SetStyle target="tn.tabn" styleName="tabStyleName" value="myTabNavigatorSWFRunTime"/> 
+				<WaitForEvent eventName="complete" target="tn.tabn.rawChildren.getChildAt(2).getChildAt(0).currentSkin.selectedUpImage" /> 
                 <DispatchMouseEvent type="rollOver" localX="10" localY="10" target="tn.tabn" waitEvent="rollOver" waitTarget="tn.tabn" /> 
                 <DispatchMouseEvent type="mouseDown" localX="10" localY="10" target="tn.tabn" waitEvent="mouseDown"/>
-                <WaitForEvent eventName="complete" target="tn.tabn.rawChildren.getChildAt(2).getChildAt(0).getChildAt(0).selectedUpImage" /> 
-                <WaitForEffectsToEnd />
             </setup>
             <body>
                 <CompareBitmap target="tn.tabn" url="../Styles/baselines/spark/TabNavigator_Styles_SkinStates_runtime_SWF_mouseDown_selectedTab.png" timeout="5000" />