incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cframp...@apache.org
Subject svn commit: r1386826 - in /incubator/flex/sdk/branches/develop/mustella/tests/containers/tabnavigator/Events: TabNavigator_Events.mxml TabNavigator_Events_Spark.mxml
Date Mon, 17 Sep 2012 20:44:21 GMT
Author: cframpton
Date: Mon Sep 17 20:44:20 2012
New Revision: 1386826

URL: http://svn.apache.org/viewvc?rev=1386826&view=rev
Log:
For the hideToolTip tests, add call to decreaseHide(), which seems to be the standard through
so the WaitForEvent doesn't time out.

Modified:
    incubator/flex/sdk/branches/develop/mustella/tests/containers/tabnavigator/Events/TabNavigator_Events.mxml
    incubator/flex/sdk/branches/develop/mustella/tests/containers/tabnavigator/Events/TabNavigator_Events_Spark.mxml

Modified: incubator/flex/sdk/branches/develop/mustella/tests/containers/tabnavigator/Events/TabNavigator_Events.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/containers/tabnavigator/Events/TabNavigator_Events.mxml?rev=1386826&r1=1386825&r2=1386826&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/tests/containers/tabnavigator/Events/TabNavigator_Events.mxml
(original)
+++ incubator/flex/sdk/branches/develop/mustella/tests/containers/tabnavigator/Events/TabNavigator_Events.mxml
Mon Sep 17 20:44:20 2012
@@ -39,6 +39,7 @@
 
 	import mx.containers.* 
  	import mx.controls.*
+ 	import mx.managers.ToolTipManager;
 	public var comp:TNComp;
  	 
  	 
@@ -47,6 +48,12 @@
  		application.tn.tabn.width=300;
  		application.tn.tabn.height=300;
  	}
+ 	
+    public function decreaseHide():void
+	{
+		ToolTipManager.hideDelay = 2000;
+	}
+
  	]]>
 	</mx:Script>
 	<testCases>
@@ -104,6 +111,7 @@
 		<TestCase testID="TabNavigator_Event_hideToolTip" description="TabNavigator mouseDown
event." keywords="[event, hideToolTip, TabNavigator]">
 			<setup>
  				<ResetComponent target="tn" className="TNComp"  waitEvent="updateComplete" waitTarget="tn"/>
+ 				<RunCode code="decreaseHide()"/>
 				<SetProperty target="tn.tabn" propertyName="selectedIndex" value="2" waitTarget="tn.tabn"
waitEvent="updateComplete" />			    	
 				<SetProperty target="tn.tabn" propertyName="toolTip" value="I am a TabNavigator" />
 			    <WaitForEffectsToEnd />

Modified: incubator/flex/sdk/branches/develop/mustella/tests/containers/tabnavigator/Events/TabNavigator_Events_Spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/containers/tabnavigator/Events/TabNavigator_Events_Spark.mxml?rev=1386826&r1=1386825&r2=1386826&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/tests/containers/tabnavigator/Events/TabNavigator_Events_Spark.mxml
(original)
+++ incubator/flex/sdk/branches/develop/mustella/tests/containers/tabnavigator/Events/TabNavigator_Events_Spark.mxml
Mon Sep 17 20:44:20 2012
@@ -37,8 +37,9 @@
 	<mx:Script>
 	<![CDATA[
 
-	import mx.containers.* 
- 	import mx.controls.*
+	import mx.containers.*; 
+ 	import mx.controls.*;
+ 	import mx.managers.ToolTipManager;
 	public var comp:TNComp;
  	 
  	 
@@ -47,6 +48,12 @@
  		application.tn.tabn.width=300;
  		application.tn.tabn.height=300;
  	}
+ 	
+ 	public function decreaseHide():void
+	{
+		ToolTipManager.hideDelay = 2000;
+	}
+
  	]]>
 	</mx:Script>
 	<testCases>
@@ -104,8 +111,10 @@
 		<TestCase testID="TabNavigator_Event_hideToolTip" description="TabNavigator mouseDown
event." keywords="[event, hideToolTip, TabNavigator]">
 			<setup>
  				<ResetComponent target="tn" className="TNComp3"  waitEvent="updateComplete" waitTarget="tn"/>
-				<SetProperty target="tn.tabn" propertyName="selectedIndex" value="2" waitTarget="tn.tabn"
waitEvent="updateComplete" />			    	<SetProperty target="tn.tabn" propertyName="toolTip"
value="I am a TabNavigator" waitTarget="tn.tabn" waitEvent="updateComplete"/>
-			    	<WaitForEffectsToEnd />
+ 				<RunCode code="decreaseHide()"/>
+				<SetProperty target="tn.tabn" propertyName="selectedIndex" value="2" waitTarget="tn.tabn"
waitEvent="updateComplete" />			    	
+				<SetProperty target="tn.tabn" propertyName="toolTip" value="I am a TabNavigator" waitTarget="tn.tabn"
waitEvent="updateComplete"/>
+			    <WaitForEffectsToEnd />
 			</setup>
 			<body>
 				
@@ -119,8 +128,9 @@
 		<TestCase testID="TabNavigator_Event_showToolTip" description="TabNavigator mouseDown
event." keywords="[event, showToolTip, TabNavigator]">
 			<setup>
  				<ResetComponent target="tn" className="TNComp3"  waitEvent="updateComplete" waitTarget="tn"/>
-				<SetProperty target="tn.tabn" propertyName="selectedIndex" value="2" waitTarget="tn.tabn"
waitEvent="updateComplete" />			    	<SetProperty target="tn.tabn" propertyName="toolTip"
value="I am a TabNavigator" />
-			    	<WaitForEffectsToEnd />
+				<SetProperty target="tn.tabn" propertyName="selectedIndex" value="2" waitTarget="tn.tabn"
waitEvent="updateComplete" />			    	
+				<SetProperty target="tn.tabn" propertyName="toolTip" value="I am a TabNavigator" />
+			    <WaitForEffectsToEnd />
 			</setup>
 			<body>
 				
@@ -136,8 +146,9 @@
 		<TestCase testID="TabNavigator_Event_focusOut" description="TabNavigator foucsOut event."
keywords="[event, focusOut, TabNavigator]">
 			<setup>
  				<ResetComponent target="tn" className="TNComp3"  waitEvent="updateComplete" waitTarget="tn"/>
-				<SetProperty target="tn.tabn" propertyName="selectedIndex" value="2" waitTarget="tn.tabn"
waitEvent="updateComplete" />			    	<SetProperty target="tn.tabn" propertyName="toolTip"
value="I am a TabNavigator" />
-			    	<WaitForEffectsToEnd />
+				<SetProperty target="tn.tabn" propertyName="selectedIndex" value="2" waitTarget="tn.tabn"
waitEvent="updateComplete" />			    	
+				<SetProperty target="tn.tabn" propertyName="toolTip" value="I am a TabNavigator" />
+			    <WaitForEffectsToEnd />
 			    	
 			</setup>
 			<body>
@@ -150,8 +161,9 @@
 		<TestCase testID="TabNavigator_Event_focusIn" description="TabNavigator foucsIn event."
keywords="[event, focusIn, TabNavigator]">
 			<setup>
  				<ResetComponent target="tn" className="TNComp3"  waitEvent="updateComplete" waitTarget="tn"/>
-				<SetProperty target="tn.tabn" propertyName="selectedIndex" value="2" waitTarget="tn.tabn"
waitEvent="updateComplete" />			    	<SetProperty target="tn.tabn" propertyName="toolTip"
value="I am a TabNavigator" />
-			    	<WaitForEffectsToEnd />
+				<SetProperty target="tn.tabn" propertyName="selectedIndex" value="2" waitTarget="tn.tabn"
waitEvent="updateComplete" />			    	
+				<SetProperty target="tn.tabn" propertyName="toolTip" value="I am a TabNavigator" />
+			    <WaitForEffectsToEnd />
 			    	
 			</setup>
 			<body>
@@ -162,8 +174,9 @@
 		<TestCase testID="TabNavigator_Event_keyDown" description="TabNavigator click event."
keywords="[event, keyDown, TabNavigator]">
 			<setup>
  				<ResetComponent target="tn" className="TNComp3"  waitEvent="updateComplete" waitTarget="tn"/>
-				<SetProperty target="tn.tabn" propertyName="selectedIndex" value="2" waitTarget="tn.tabn"
waitEvent="updateComplete" />			    	<SetProperty target="tn.tabn" propertyName="toolTip"
value="I am a TabNavigator" />
-			    	<WaitForEffectsToEnd />
+				<SetProperty target="tn.tabn" propertyName="selectedIndex" value="2" waitTarget="tn.tabn"
waitEvent="updateComplete" />			    	
+				<SetProperty target="tn.tabn" propertyName="toolTip" value="I am a TabNavigator" />
+			    <WaitForEffectsToEnd />
 			</setup>
 			<body>
 				<DispatchKeyEvent keys="[TAB,TAB, TAB, TAB, SPACE]"  />
@@ -174,8 +187,9 @@
 		<TestCase testID="TabNavigator_Event_move" description="TabNavigator move event." keywords="[event,
move, TabNavigator]">
 			<setup>
  				<ResetComponent target="tn" className="TNComp3"  waitEvent="updateComplete" waitTarget="tn"/>
-				<SetProperty target="tn.tabn" propertyName="selectedIndex" value="2" waitTarget="tn.tabn"
waitEvent="updateComplete" />			    	<SetProperty target="tn.tabn" propertyName="toolTip"
value="I am a TabNavigator" />
-			    	<WaitForEffectsToEnd />
+				<SetProperty target="tn.tabn" propertyName="selectedIndex" value="2" waitTarget="tn.tabn"
waitEvent="updateComplete" />			    	
+				<SetProperty target="tn.tabn" propertyName="toolTip" value="I am a TabNavigator" />
+			    <WaitForEffectsToEnd />
 			    	
 			</setup>
 			<body>
@@ -199,8 +213,9 @@
 		<TestCase testID="TabNavigator_Event_keyUp" description="TabNavigator click event."
keywords="[event, keyUp, TabNavigator]">
 			<setup>
  				<ResetComponent target="tn" className="TNComp3"  waitEvent="updateComplete" waitTarget="tn"/>
-				<SetProperty target="tn.tabn" propertyName="selectedIndex" value="2" waitTarget="tn.tabn"
waitEvent="updateComplete" />			    	<SetProperty target="tn.tabn" propertyName="toolTip"
value="I am a TabNavigator" />
-			    	<WaitForEffectsToEnd />
+				<SetProperty target="tn.tabn" propertyName="selectedIndex" value="2" waitTarget="tn.tabn"
waitEvent="updateComplete" />			    	
+				<SetProperty target="tn.tabn" propertyName="toolTip" value="I am a TabNavigator" />
+			    <WaitForEffectsToEnd />
 			</setup>
 			<body>
 				<DispatchKeyEvent keys="[TAB, TAB, TAB, TAB, SPACE]"  />



Mime
View raw message