incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1369970 [16/16] - in /incubator/flex/trunk/mustella/tests/Managers: ./ CursorManager/ CursorManager/Methods/ CursorManager/Props/ CursorManager/SWFs/ CursorManager/SWFs/Assets/ DragManager/ DragManager/Events/ DragManager/Halo/ DragManager...
Date Mon, 06 Aug 2012 20:17:23 GMT
Propchange: incubator/flex/trunk/mustella/tests/Managers/StyleManager/Versioning/baselines/mp_typeSelector_png_trusted.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Properties/Baselines/customToolTip_disabled.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Properties/Baselines/customToolTip_disabled.png?rev=1369970&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Properties/Baselines/customToolTip_disabled.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Properties/Baselines/customToolTip_disabled_spark.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Properties/Baselines/customToolTip_disabled_spark.png?rev=1369970&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Properties/Baselines/customToolTip_disabled_spark.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Properties/Baselines/customToolTip_list.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Properties/Baselines/customToolTip_list.png?rev=1369970&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Properties/Baselines/customToolTip_list.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Properties/Baselines/customToolTip_list_spark.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Properties/Baselines/customToolTip_list_spark.png?rev=1369970&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Properties/Baselines/customToolTip_list_spark.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Properties/ToolTipManager_Properties.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Properties/ToolTipManager_Properties.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Properties/ToolTipManager_Properties.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Properties/ToolTipManager_Properties.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,130 @@
+<?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="Managers/ToolTipManager/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="ToolTipManager_Basic.mxml">
+
+    <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.controls.ToolTip;
+        import mx.managers.ToolTipManager;
+        import mx.core.IToolTip;
+        
+   
+    ]]>
+    </mx:Script>
+
+    <testCases>
+        <TestCase testID="ToolTipManager_property_customToolTip"  keywords="[ToolTipManager,property,ToolTip]">
+            <setup>
+	        <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+	        <RunCode code ="ToolTipManager.showDelay=1" />
+            </setup>
+            <body>
+            	<DispatchMouseEvent type="mouseOver" target="layout1.inputA" localX="20" localY="5" />
+            	<DispatchMouseEvent type="mouseDown" target="layout1.inputA" localX="20" localY="5" />
+            	<DispatchMouseEvent type="mouseUp"   target="layout1.inputA" localX="20" localY="5" />
+                <AssertPropertyValue target="layout1.tip" propertyName="text"  value="My Tip A" />
+                <AssertPropertyValue target="layout1.tip" propertyName="x"  value="170" />
+                <AssertPropertyValue target="layout1.tip" propertyName="y"  value="30" />
+               
+            </body>
+       </TestCase>
+       
+       <TestCase testID="ToolTipManager_property_customToolTipLocation"  keywords="[ToolTipManager,property,ToolTip]">
+            <setup>
+	        <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+	        <RunCode code ="ToolTipManager.showDelay=1" />
+              </setup>
+            <body>
+               <DispatchMouseClickEvent target="layout1.inputB" localX="20" localY="5" waitTarget="layout1.inputB" waitEvent="focusIn" />
+               <AssertPropertyValue target="layout1.tip" propertyName="text"  value="My Tip B" />
+               <AssertPropertyValue target="layout1.tip" propertyName="x"  value="340" />
+               <AssertPropertyValue target="layout1.tip" propertyName="y"  value="84" />
+               
+            </body>
+       </TestCase>
+       <TestCase testID="ToolTipManager_property_currentToolTip"  keywords="[ToolTipManager,property,currentToolTip]">
+            <setup>
+	        <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+              </setup>
+            <body>
+               <DispatchMouseEvent type="mouseOver" target="layout1.ti" localX="20" localY="5" waitTarget="layout1.ti" waitEvent="toolTipShown" />
+               <AssertPropertyValue target="layout1" propertyName="s"  value="This is a simple ToolTip" />
+            </body>   
+       </TestCase>
+
+       <TestCase testID="ToolTipManager_property_currentToolTip_CB"  keywords="[ToolTipManager,property,currentToolTip]">
+              <setup>
+       	        <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+       	        <RunCode code ="ToolTipManager.showDelay=1" />
+              </setup>
+              <body>
+                <DispatchMouseEvent type="mouseOver" target="layout1.cb" localX="10" localY="5" waitEvent="toolTipStart"/>
+                <DispatchMouseEvent type="mouseDown" target="layout1.cb" localX="10" localY="5" />
+            	<DispatchMouseEvent type="mouseUp"   target="layout1.cb" localX="10" localY="5" />
+                <AssertPropertyValue target="layout1" propertyName="s"  value="This is my string 1,This is my string 1122,This is my string 111222333" />
+              </body>
+       </TestCase>
+       
+	<TestCase testID="ToolTipManager_property_customToolTip_list"  keywords="[ToolTipManager,property,ToolTip]">
+              <setup>
+       	        <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+       	        <RunCode code ="ToolTipManager.showDelay=1" />
+              </setup>
+              <body>
+                <DispatchMouseEvent type="mouseOver" target="layout1.mylist" localX="10" localY="40" waitTarget="layout1.mylist" waitEvent="itemRollOver" />
+                <Pause timeout="100" />
+                
+                <CompareBitmap target="layout1.mybox" url="../Properties/Baselines/customToolTip_list.png"  />   
+       
+              </body>
+       </TestCase>     
+       <TestCase testID="ToolTipManager_property_ToolTip_list_disabled"  keywords="[ToolTipManager,property,ToolTip]">
+              <setup>
+       	        <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+       	        <RunCode code ="ToolTipManager.enabled=false" />
+       	        <Pause timeout="500" />
+              </setup>
+              <body>
+                <DispatchMouseEvent type="mouseOver" target="layout1.mylist" localX="10" localY="20" waitTarget="layout1.mylist" waitEvent="itemRollOver" />
+                <Pause timeout="100" />
+                <CompareBitmap target="layout1.mylist" url="../Properties/Baselines/customToolTip_disabled.png"  />   
+       		<RunCode code ="ToolTipManager.enabled=true" />
+              </body>
+       </TestCase>     
+       
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Properties/ToolTipManager_Properties_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Properties/ToolTipManager_Properties_spark.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Properties/ToolTipManager_Properties_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Properties/ToolTipManager_Properties_spark.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,130 @@
+<?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="Managers/ToolTipManager/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="ToolTipManager_Basic_spark.mxml">
+
+    <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.controls.ToolTip;
+        import mx.managers.ToolTipManager;
+        import mx.core.IToolTip;
+
+
+    ]]>
+    </mx:Script>
+
+    <testCases>
+        <TestCase testID="Spark_ToolTipManager_property_customToolTip"  keywords="[ToolTipManager,property,ToolTip]">
+            <setup>
+            <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+            <RunCode code ="ToolTipManager.showDelay=1" />
+            </setup>
+            <body>
+                <DispatchMouseEvent type="mouseOver" target="layout1.inputA" localX="20" localY="5" />
+                <DispatchMouseEvent type="mouseDown" target="layout1.inputA" localX="20" localY="5" />
+                <DispatchMouseEvent type="mouseUp"   target="layout1.inputA" localX="20" localY="5" />
+                <AssertPropertyValue target="layout1.tip" propertyName="text"  value="My Tip A" />
+                <AssertPropertyValue target="layout1.tip" propertyName="x"  value="170" />
+                <AssertPropertyValue target="layout1.tip" propertyName="y"  value="31" />
+
+            </body>
+       </TestCase>
+
+       <TestCase testID="Spark_ToolTipManager_property_customToolTipLocation"  keywords="[ToolTipManager,property,ToolTip]">
+            <setup>
+            <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+            <RunCode code ="ToolTipManager.showDelay=1" />
+              </setup>
+            <body>
+               <DispatchMouseClickEvent target="layout1.inputB" localX="20" localY="5" waitTarget="layout1.inputB" waitEvent="focusIn" />
+               <AssertPropertyValue target="layout1.tip" propertyName="text"  value="My Tip B" />
+               <AssertPropertyValue target="layout1.tip" propertyName="x"  value="340" />
+               <AssertPropertyValue target="layout1.tip" propertyName="y"  value="86" />
+
+            </body>
+       </TestCase>
+       <TestCase testID="Spark_ToolTipManager_property_currentToolTip"  keywords="[ToolTipManager,property,currentToolTip]">
+            <setup>
+            <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+              </setup>
+            <body>
+               <DispatchMouseEvent type="mouseOver" target="layout1.ti" localX="20" localY="5" waitTarget="layout1.ti" waitEvent="toolTipShown" />
+               <AssertPropertyValue target="layout1" propertyName="s"  value="This is a simple ToolTip" />
+            </body>
+       </TestCase>
+
+       <TestCase testID="Spark_ToolTipManager_property_currentToolTip_CB"  keywords="[ToolTipManager,property,currentToolTip]">
+              <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+                <RunCode code ="ToolTipManager.showDelay=1" />
+              </setup>
+              <body>
+                <DispatchMouseEvent type="mouseOver" target="layout1.cb" localX="10" localY="5" waitEvent="toolTipStart"/>
+                <DispatchMouseEvent type="mouseDown" target="layout1.cb" localX="10" localY="5" />
+                <DispatchMouseEvent type="mouseUp"   target="layout1.cb" localX="10" localY="5" />
+                <AssertPropertyValue target="layout1" propertyName="s"  value="This is my string 1,This is my string 1122,This is my string 111222333" />
+              </body>
+       </TestCase>
+
+    <TestCase testID="Spark_ToolTipManager_property_customToolTip_list"  keywords="[ToolTipManager,property,ToolTip]">
+              <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+                <RunCode code ="ToolTipManager.showDelay=1" />
+              </setup>
+              <body>
+                <DispatchMouseEvent type="mouseOver" target="layout1.mylist" localX="10" localY="40" waitTarget="layout1.mylist" waitEvent="itemRollOver" />
+                <Pause timeout="100" />
+
+                <CompareBitmap target="layout1.mybox" url="../Properties/Baselines/customToolTip_list_spark.png"  />
+
+              </body>
+       </TestCase>
+       <TestCase testID="Spark_ToolTipManager_property_ToolTip_list_disabled"  keywords="[ToolTipManager,property,ToolTip]">
+              <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+                <RunCode code ="ToolTipManager.enabled=false" />
+                <Pause timeout="500" />
+              </setup>
+              <body>
+                <DispatchMouseEvent type="mouseOver" target="layout1.mylist" localX="10" localY="20" waitTarget="layout1.mylist" waitEvent="itemRollOver" />
+                <Pause timeout="100" />
+                <CompareBitmap target="layout1.mylist" url="../Properties/Baselines/customToolTip_disabled_spark.png"  />
+            <RunCode code ="ToolTipManager.enabled=true" />
+              </body>
+       </TestCase>
+
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/Assets/ToolTipStyle.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/Assets/ToolTipStyle.css?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/Assets/ToolTipStyle.css (added)
+++ incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/Assets/ToolTipStyle.css Mon Aug  6 20:17:09 2012
@@ -0,0 +1,53 @@
+/*
+ *
+ * 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.
+ *
+ */
+@namespace "library://ns.adobe.com/flex/mx";
+	
+		@font-face{
+			src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: myVerdana;
+			embedAsCFF: false;
+		}
+		
+		@font-face{
+			src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: myVerdana;
+			embedAsCFF: false;
+		}
+		
+ToolTip{ 
+
+     font-family:            myVerdana; 
+
+     font-size:              14px; 
+
+     color:                  #000000; 
+
+     background-color:       #FF00FF; 
+
+     background-alpha:       0.85; 
+
+     cornerRadius:           10; 
+
+     borderSkin:             ClassReference("MyToolTip"); 
+
+ } 
+
+
+

Added: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/Assets/myStyles.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/Assets/myStyles.css?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/Assets/myStyles.css (added)
+++ incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/Assets/myStyles.css Mon Aug  6 20:17:09 2012
@@ -0,0 +1,52 @@
+/*
+ *
+ * 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.
+ *
+ */
+@font-face {
+	src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+	fontFamily: "MyVerdana";
+			embedAsCFF: false;
+}
+
+@font-face {
+	src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+	fontFamily: "MyVerdana";
+	fontWeight: bold;
+			embedAsCFF: false;
+}
+
+@font-face {
+	src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+	fontFamily: "MyVerdana";
+	fontStyle: italic;
+			embedAsCFF: false;
+}
+
+@font-face {
+	src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+	fontFamily: "MyVerdana";
+	fontWeight: bold;
+	fontStyle: italic;
+			embedAsCFF: false;
+}
+
+global {
+    fontFamily: "MyVerdana";
+    fontAntiAliasType: "normal";
+}
+
+

Added: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/MyLayout.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/MyLayout.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/MyLayout.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/MyLayout.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml">
+   <mx:Script> 
+        <![CDATA[
+            import mx.controls.ToolTip;
+            import mx.managers.ToolTipManager;
+            import mx.managers.SystemManager;
+ 	    import mx.core.IToolTip;
+ 	    
+ 	    import mx.controls.Alert;
+ 	    
+            public var tip:ToolTip;
+            public var s:String;
+            
+                        
+            public function getCurrentTip():void
+            {
+	   		s = ToolTipManager.currentToolTip.text;
+            } 
+            private function showTipA(event:Object):void {
+                s="My Tip A";
+                tip = ToolTipManager.createToolTip(s, 
+                    event.currentTarget.x + event.currentTarget.width + 10, 
+                    event.currentTarget.y
+                ) as ToolTip;
+            }
+
+            private function showTipB(event:Object):void {
+                s="My Tip B";
+                var pt:Point = new Point(
+                    event.currentTarget.x, 
+                    event.currentTarget.y);
+                
+                // Call this method to convert the object's
+                // coordinates inside its container to the stage's 
+                // global coordinates.
+                pt = event.currentTarget.contentToGlobal(pt);
+                
+                tip = ToolTipManager.createToolTip(s, 
+                    pt.x + event.currentTarget.width + 10, 
+                    pt.y
+                ) as ToolTip;
+            }
+
+            private function destroyTip(event:Object):void {
+                 ToolTipManager.destroyToolTip(tip);               
+            }            
+        ]]>
+    </mx:Script>
+    <mx:TextInput id="ti" text="TEST"
+       toolTip="This is a simple ToolTip"
+       toolTipShown="getCurrentTip();" 
+    />
+
+    <!-- A ToolTip at the top level. -->
+    <!-- The event handler for this ToolTip does not use any special 
+    logic to account for whether the ToolTip is inside a container. 
+    But this ToolTip is not inside a container so it positions itself 
+    normally. -->
+    <mx:TextInput id="inputA"
+        text="outside of container"
+        focusIn="showTipA(event)" 
+        focusOut="destroyTip(event)"
+    />
+
+    <mx:VBox >
+        <!-- A ToolTip inside a container. -->
+        <!-- The event handler for this ToolTip accounts for the control 
+        being inside a container and positions the ToolTip using the 
+        contentToGlobal() method. -->
+        <mx:TextInput id="inputB" 
+            text="in container"
+            focusIn="showTipB(event)" 
+            focusOut="destroyTip(event)"
+        />  
+    </mx:VBox>
+	<mx:Array id="test"> 
+	<mx:String>This is my string 1</mx:String> 
+	<mx:String>This is my string 1122</mx:String> 
+	<mx:String>This is my string 111222333</mx:String> 
+	</mx:Array> 
+
+	<mx:ComboBox id="cb" width="100" dataProvider="{test}" itemRenderer="mx.controls.Label" 
+	toolTip="{test}" toolTipShown="getCurrentTip();" />
+	<mx:VBox width="150" id="mybox">
+	<mx:List id="mylist" width="100" height="100" dataProvider="{test}" itemRenderer="mx.controls.Label" />
+	</mx:VBox>   
+
+
+</mx:VBox>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/MyToolTip.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/MyToolTip.as?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/MyToolTip.as (added)
+++ incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/MyToolTip.as Mon Aug  6 20:17:09 2012
@@ -0,0 +1,48 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.
+//
+////////////////////////////////////////////////////////////////////////////////
+package
+{ 
+  import mx.core.UITextField; 
+  import mx.skins.halo.ToolTipBorder; 
+  import mx.controls.ToolTip; 
+  public class MyToolTip extends ToolTipBorder 
+  { 
+
+
+   	override protected function updateDisplayList(unscaledWidth:Number, 
+ 	unscaledHeight:Number):void
+ 	{ 
+    	     var toolTip:ToolTip = (this.parent as ToolTip); 
+    	     var textField:UITextField = toolTip.getChildAt(1) as UITextField; 
+             textField.htmlText = textField.text; 
+             var calHeight:Number = textField.height; 
+             calHeight += textField.y*2; 
+             calHeight += textField.getStyle("paddingTop"); 
+             calHeight += textField.getStyle("paddingBottom"); 
+             var calWidth:Number = textField.textWidth; 
+             calWidth += textField.x*2; 
+             calWidth += textField.getStyle("paddingLeft"); 
+             calWidth += textField.getStyle("paddingRight"); 
+             super.updateDisplayList(calWidth, calHeight); 
+	} 
+
+   } 
+ } 
+
+

Added: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/ToolTipManager_Basic.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/ToolTipManager_Basic.compile?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/ToolTipManager_Basic.compile (added)
+++ incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/ToolTipManager_Basic.compile Mon Aug  6 20:17:09 2012
@@ -0,0 +1 @@
+ -theme=${flexlib}/themes/Halo/halo.swc

Added: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/ToolTipManager_Basic.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/ToolTipManager_Basic.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/ToolTipManager_Basic.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/ToolTipManager_Basic.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,32 @@
+<?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="375" width="500" xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="0xFFFFFF" backgroundImage=""
+     xmlns="*">
+<mx:Script>
+        <![CDATA[
+
+         ]]>
+</mx:Script>
+<mx:Style source="Assets/myStyles.css" />
+<MyLayout id="layout1" />
+
+</mx:Application>
+
+

Added: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/ToolTipManager_Basic_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/ToolTipManager_Basic_spark.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/ToolTipManager_Basic_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/ToolTipManager_Basic_spark.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,32 @@
+<?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="375" width="500" xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="0xFFFFFF" 
+     xmlns="*">
+<mx:Script>
+        <![CDATA[
+
+         ]]>
+</mx:Script>
+<mx:Style source="Assets/myStyles.css" />
+<MyLayout id="layout1" />
+
+</mx:Application>
+
+

Added: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/ToolTipManager_Style.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/ToolTipManager_Style.compile?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/ToolTipManager_Style.compile (added)
+++ incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/ToolTipManager_Style.compile Mon Aug  6 20:17:09 2012
@@ -0,0 +1 @@
+ -theme=${flexlib}/themes/Halo/halo.swc

Added: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/ToolTipManager_Style.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/ToolTipManager_Style.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/ToolTipManager_Style.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/SWFs/ToolTipManager_Style.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,32 @@
+<?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 xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="0xFFFFFF">
+ <mx:Script> 
+     <![CDATA[ 
+         [Bindable] 
+         private var myToolTipText:String = "<b>This is a bold toolTip</b>" ; 
+     ]]> 
+ </mx:Script> 
+  <mx:Style source="Assets/ToolTipStyle.css"/>
+
+    <mx:Button id="btn" toolTip="{myToolTipText}" 
+ 	width="200" height="100" /> 
+ </mx:Application> 
+

Added: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Styles/Baselines/customToolTip_btn.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Styles/Baselines/customToolTip_btn.png?rev=1369970&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Styles/Baselines/customToolTip_btn.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Styles/Baselines/customToolTip_btn_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Styles/Baselines/customToolTip_btn_mac.png?rev=1369970&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Styles/Baselines/customToolTip_btn_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Styles/ToolTipManager_Styles.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Styles/ToolTipManager_Styles.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Styles/ToolTipManager_Styles.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/ToolTipManager/Styles/ToolTipManager_Styles.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,59 @@
+<?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="Managers/ToolTipManager/Styles/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="ToolTipManager_Style.mxml">
+
+    <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.controls.ToolTip;
+        import mx.managers.ToolTipManager;
+        import mx.core.IToolTip;
+
+
+    ]]>
+    </mx:Script>
+    <mx:Style source="Assets/ToolTipStyle.css" />
+    <testCases>
+ 	<TestCase testID="ToolTipManager_style_currentToolTip"  keywords="[ToolTipManager,style,currentToolTip]">
+        <body>
+            <DispatchMouseEvent type="mouseOver" target="btn" localX="5" localY="1"  waitEvent="toolTipShown" />
+ 		    <Pause timeout="100" />
+            <CompareBitmap target="btn" url="../Styles/Baselines/customToolTip_btn.png"  />
+        </body>
+    </TestCase>
+ 	
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Managers/focusManager/Integration/FocusManager_Integration.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/focusManager/Integration/FocusManager_Integration.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/focusManager/Integration/FocusManager_Integration.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/focusManager/Integration/FocusManager_Integration.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,203 @@
+<?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="Managers/focusManager/Integration/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="FocusManager_Basic.mxml">
+
+    <mx:Script>
+    <![CDATA[
+    
+        import mx.managers.FocusManager;
+        
+    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.styles.StyleManager;
+    import mx.managers.SystemManager;
+    import mx.controls.DateChooser;
+    import mx.controls.DataGrid;
+    
+    public var newDC:DateChooser;
+    public var dp:Array = [
+       {label: "Joan", feature: "Menus"},
+       {label: "Joann", feature: "AIR"},
+       {label: "Rob", feature: "DataGrid"}
+       ];
+    
+    public function addDataGrid():void
+    {
+        var newDG:DataGrid = new DataGrid();
+        newDG.dataProvider = dp;
+        newDG.editable=true;
+        application.layout1.addChildAt(newDG, 1);
+    }
+
+    ]]>
+    </mx:Script>
+
+    <testCases>
+        <TestCase testID="focusManager_multipleTabLoops" description="Ensure that multiple tab loops in an Application works" keywords="[FocusManager, TAB, getFocus]">
+            <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchKeyEvent keys="[TAB, TAB, TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.button2"/>
+                <DispatchKeyEvent keys="[TAB, TAB, TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.button2"/>
+                <DispatchKeyEvent keys="[TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.ti2"/>
+                <AssertMethodValue value="true" method="value=String(application.focusManager.getFocus()).indexOf('ti2') != -1" />  
+            </body>
+       </TestCase>
+        <TestCase testID="focusManager_multipleTabLoops_and_mouseClicks" description="Ensure that tab order is still correct after tabbing and mouse clicks" keywords="[FocusManager, TAB, getFocus]">
+            <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchKeyEvent keys="[TAB, TAB, TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.button2"/>
+                <DispatchMouseClickEvent target="layout1.ti2" localX="15" localY="5" waitEvent="focusIn" waitTarget="layout1.ti2"/>
+                <DispatchKeyEvent keys="[TAB, TAB, TAB, TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.button1"/>
+                <AssertMethodValue value="true" method="value=String(application.focusManager.getFocus()).indexOf('button1') != -1" />  
+            </body>
+       </TestCase>
+        <TestCase testID="focusManager_tabLoop_afterNewchild" description="Ensure tab order remains correct after a new child is added" keywords="[FocusManager, setFocus]">
+            <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchKeyEvent keys="[TAB, TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.button1"/>
+                <RunCode code="newDC = new DateChooser()" />
+                <RunCode code="newDC.id = 'newDC'" />
+                <RunCode code="application.layout1.addChild(newDC)" waitEvent="updateComplete" waitTarget="layout1" />
+                <DispatchKeyEvent keys="[TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.getChildAt(4)"/>
+                <DispatchKeyEvent keys="[RIGHT, RIGHT, ENTER]" waitEvent="change" waitTarget="layout1.getChildAt(4)"/>
+                <DispatchKeyEvent keys="[TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.ti2"/>
+                <AssertMethodValue value="true" method="value=String(application.focusManager.getFocus()).indexOf('ti2') != -1" />  
+            </body>
+       </TestCase>        
+       <TestCase testID="focusManager_tabLoop_afterRemovechild" description="Ensure tab order remains correct after a remove child is added" keywords="[FocusManager, setFocus]">
+            <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchKeyEvent keys="[TAB, TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.button1"/>
+                <RunCode code="application.layout1.removeChildAt(0)" waitEvent="updateComplete" waitTarget="layout1" />
+                <DispatchKeyEvent keys="[TAB, TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.button1"/>
+                <DispatchKeyEvent keys="[TAB, TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.button1"/>
+                <AssertMethodValue value="true" method="value=String(application.focusManager.getFocus()).indexOf('button1') != -1" />  
+            </body>
+       </TestCase>
+        <TestCase testID="focusManager_multipleTabLoops_withTabIndex" description="Ensure that multiple tab loops in an Application works" keywords="[FocusManager, TAB, getFocus]">
+            <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+                <SetProperty propertyName="tabIndex" target="layout1.ti1" value="3" />
+                <SetProperty propertyName="tabIndex" target="layout1.ti2" value="2" />
+                <SetProperty propertyName="tabIndex" target="layout1.button1" value="4" />
+                <SetProperty propertyName="tabIndex" target="layout1.button2" value="1" />
+            </setup>
+            <body>
+                <DispatchKeyEvent keys="[TAB, TAB, TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.button1"/>
+                <DispatchKeyEvent keys="[TAB, TAB, TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.button1"/>
+                <DispatchKeyEvent keys="[TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.ti2"/>
+                <AssertMethodValue value="true" method="value=String(application.focusManager.getFocus()).indexOf('ti2') != -1" />  
+            </body>
+       </TestCase>
+       <TestCase testID="focusManager_tabAndMouse_withTabIndex" description="Ensure that multiple tab loops in an Application works" keywords="[FocusManager, TAB, getFocus]">
+            <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+                <SetProperty propertyName="tabIndex" target="layout1.ti1" value="3" />
+                <SetProperty propertyName="tabIndex" target="layout1.ti2" value="2" />
+                <SetProperty propertyName="tabIndex" target="layout1.button1" value="4" />
+                <SetProperty propertyName="tabIndex" target="layout1.button2" value="1" />
+            </setup>
+            <body>
+                <DispatchKeyEvent keys="[TAB, TAB, TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.button1"/>
+                <DispatchMouseClickEvent target="layout1.ti2" localX="15" localY="5" waitEvent="focusIn" waitTarget="layout1.ti2"/>
+                <DispatchKeyEvent keys="[TAB, TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.button2"/>
+                <DispatchKeyEvent keys="[TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.ti1"/>
+                <AssertMethodValue value="true" method="value=String(application.focusManager.getFocus()).indexOf('ti1') != -1" />  
+            </body>
+       </TestCase>    
+       <TestCase testID="focusManager_shiftKey_basic" description="Ensure that using shift key when tabbing works correctly" keywords="[FocusManager, TAB, SHIFT]">
+            <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="layout1.ti1" localX="10" localY="8" waitEvent="focusIn" waitTarget="layout1.ti1" />
+                <DispatchKeyEvent keys="[TAB, TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.button2"/>
+                <DispatchKeyEvent keys="[TAB, TAB, TAB]" shiftKey="true" waitEvent="focusIn" waitTarget="layout1.ti1"/>
+                <DispatchKeyEvent keys="[TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.button1"/>
+                <AssertMethodValue value="true" method="value=String(application.focusManager.getFocus()).indexOf('button1') != -1" />  
+            </body>
+       </TestCase>
+       <TestCase testID="focusManager_shiftKey_tabIndex" description="Ensure that shift+tab works when tabIndexes are specified" keywords="[FocusManager, TAB, tabIndex, SHIFT]">
+            <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+                <SetProperty propertyName="tabIndex" target="layout1.ti1" value="3" />
+                <SetProperty propertyName="tabIndex" target="layout1.ti2" value="2" />
+                <SetProperty propertyName="tabIndex" target="layout1.button1" value="4" />
+                <SetProperty propertyName="tabIndex" target="layout1.button2" value="1" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="layout1.button2" localX="10" localY="8" waitEvent="focusIn" waitTarget="layout1.button2" />
+                <DispatchKeyEvent keys="[TAB, TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.button1"/>
+                <DispatchKeyEvent keys="[TAB, TAB]" shiftKey="true" waitEvent="focusIn" waitTarget="layout1.ti2"/>
+                <AssertMethodValue value="true" method="value=String(application.focusManager.getFocus()).indexOf('ti2') != -1" />  
+            </body>
+       </TestCase> 
+       <TestCase testID="focusManager_shiftKey_withDataGrid" description="Ensure that bug SDK-12588 is working correctly" keywords="[FocusManager, TAB, DataGrid, SHIFT]">
+            <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+                <RunCode code="addDataGrid()" waitEvent="updateComplete" waitTarget="layout1" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="layout1.ti1" localX="10" localY="8" waitEvent="focusIn" waitTarget="layout1.ti1" />
+                <DispatchKeyEvent key="TAB" waitEvent="itemFocusIn" waitTarget="layout1.getChildAt(1)" />
+                <DispatchKeyEvent key="TAB" waitEvent="itemFocusIn" waitTarget="layout1.getChildAt(1)" />
+                <DispatchKeyEvent key="TAB" waitEvent="itemFocusIn" waitTarget="layout1.getChildAt(1)" />
+                <DispatchKeyEvent key="TAB" waitEvent="itemFocusIn" waitTarget="layout1.getChildAt(1)" />
+                <DispatchKeyEvent key="TAB" waitEvent="itemFocusIn" waitTarget="layout1.getChildAt(1)" />
+                <DispatchKeyEvent key="TAB" waitEvent="itemFocusIn" waitTarget="layout1.getChildAt(1)" />
+                <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="layout1.ti2"/>
+                <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="layout1.button1"/>
+                <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="layout1.button2"/>
+                <DispatchKeyEvent key="TAB" shiftKey="true" waitEvent="focusIn" waitTarget="layout1.button1"/>
+                <DispatchKeyEvent key="TAB" shiftKey="true" waitEvent="focusIn" waitTarget="layout1.ti2"/>
+                <DispatchKeyEvent key="TAB" shiftKey="true" waitEvent="itemFocusIn" waitTarget="layout1.getChildAt(1)" />
+                <DispatchKeyEvent key="TAB" shiftKey="true" waitEvent="itemFocusIn" waitTarget="layout1.getChildAt(1)" />
+                <DispatchKeyEvent key="TAB" shiftKey="true" waitEvent="itemFocusIn" waitTarget="layout1.getChildAt(1)" />
+                <DispatchKeyEvent key="TAB" shiftKey="true" waitEvent="itemFocusIn" waitTarget="layout1.getChildAt(1)" />
+                <DispatchKeyEvent key="TAB" shiftKey="true" waitEvent="itemFocusIn" waitTarget="layout1.getChildAt(1)" />
+                <DispatchKeyEvent key="TAB" shiftKey="true" waitEvent="itemFocusIn" waitTarget="layout1.getChildAt(1)" />
+                <DispatchKeyEvent key="TAB" shiftKey="true" waitEvent="focusIn" waitTarget="layout1.ti1" />
+                <AssertMethodValue value="true" method="value=String(application.focusManager.getFocus()).indexOf('ti1') != -1" />  
+            </body>
+       </TestCase>
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Managers/focusManager/Integration/bug188854.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/focusManager/Integration/bug188854.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/focusManager/Integration/bug188854.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/focusManager/Integration/bug188854.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="Managers/focusManager/Integration/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="TabbingTest.mxml">
+
+    <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.styles.StyleManager;
+    import mx.managers.SystemManager;
+
+    ]]>
+    </mx:Script>
+
+    <testCases>
+        <TestCase testID="tabbing_WithTabIndex" description="Ensure that you tabIndex works correctly for comps added at runtime" keywords="[FocusManager, TabIndex]">
+            <body>
+                <DispatchKeyEvent keys="[TAB, TAB,TAB, TAB, TAB, TAB, TAB, TAB,TAB, TAB, TAB, TAB]" waitEvent="focusIn" waitTarget="link5010" />
+                <AssertEvent target="link5010" eventName="focusIn" eventClass="flash.events::FocusEvent" />
+            </body>
+       </TestCase>
+        <TestCase testID="tabbing_AfterChangingTabIndex" description="Ensure that you tabIndex works correctly for comps added at runtime" keywords="[FocusManager, TabIndex]">
+            <setup>
+                <SetProperty target="link5010" propertyName="tabIndex" value="8000" />
+                <RunCode code="application.entryTextInput.setFocus()" waitEvent="focusIn"
+                    waitTarget="entryTextInput" />
+            </setup>
+            <body>
+                <DispatchKeyEvent keys="[TAB, TAB, TAB, TAB, TAB, TAB, TAB, TAB, TAB, TAB, TAB]" waitEvent="focusIn" waitTarget="link5020" />
+                <AssertEvent target="link5020" eventName="focusIn" eventClass="flash.events::FocusEvent" />
+            </body>
+       </TestCase>
+        <TestCase testID="tabbing_addedComponentsWithTabIndex" description="Ensure that you tabIndex works correctly for comps added at runtime" keywords="[FocusManager, TabIndex]">
+           <setup>
+                <RunCode code="application.entryTextInput.setFocus()" waitEvent="focusIn"
+                    waitTarget="entryTextInput" />
+           </setup>
+           <body>
+                <RunCode code="application.modify()" waitTarget="toggleable" waitEvent="updateComplete" />
+                <DispatchKeyEvent keys="[TAB,TAB, TAB, TAB, TAB, TAB, TAB]" waitEvent="focusIn" waitTarget="toggleable" />
+                <AssertEvent target="toggleable" eventName="focusIn" eventClass="flash.events::FocusEvent" />
+            </body>
+       </TestCase>
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Managers/focusManager/Integration/bug19577.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/focusManager/Integration/bug19577.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/focusManager/Integration/bug19577.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/focusManager/Integration/bug19577.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,59 @@
+<?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="Managers/focusManager/Integration/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="TabFocusEnabledTest.mxml">
+
+    <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.styles.StyleManager;
+    import mx.managers.SystemManager;
+
+    ]]>
+    </mx:Script>
+
+    <testCases>
+        <TestCase testID="changeTabFocusEnabled_atRuntime" description="Ensure that you can change tabEnabled at runtime" keywords="[FocusManager, tabFocusEnabled]">
+            <!--bugs>
+               <Bug bugID="SDK-19577" />
+            </bugs-->
+            <body>
+            	<SetProperty propertyName="tabFocusEnabled" target="checkTextInput1" value="false" />
+            	<SetProperty propertyName="tabFocusEnabled" target="checkTextInput2" value="true" />
+                <DispatchKeyEvent keys="[TAB, TAB,TAB]" waitEvent="focusIn" waitTarget="checkTextInput2" />
+                <AssertEvent target="checkTextInput2" eventName="focusIn" eventClass="flash.events::FocusEvent" />
+            </body>
+       </TestCase>
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Managers/focusManager/Methods/FocusManager_Methods.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/focusManager/Methods/FocusManager_Methods.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/focusManager/Methods/FocusManager_Methods.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/focusManager/Methods/FocusManager_Methods.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,99 @@
+<?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="Managers/focusManager/Methods/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="FocusManager_Basic.mxml">
+
+    <mx:Script>
+    <![CDATA[
+    
+        import mx.managers.FocusManager;
+        
+    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.styles.StyleManager;
+    import mx.managers.SystemManager;
+    import mx.core.UIComponent;
+
+    ]]>
+    </mx:Script>
+
+    <testCases>
+        <TestCase testID="focusManager_methods_getFocus_button" description="Call getFocus() after a few Tabs and focus is on a Button" keywords="[FocusManager, getFocus]">
+            <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchKeyEvent keys="[TAB, TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.button1"/>
+                <AssertMethodValue value="true" method="value=String(application.focusManager.getFocus()).indexOf('button1') != -1" />  
+            </body>
+       </TestCase>
+        <TestCase testID="focusManager_methods_getFocus_clickIntextInput" description="Call getFocus() after a mouse click in a TextInput" keywords="[FocusManager, getFocus]">
+            <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="layout1.ti2" localX="15" localY="5" waitEvent="focusIn" waitTarget="layout1.ti2"/>
+                <AssertMethodValue value="true" method="value=String(application.focusManager.getFocus()).indexOf('ti2') != -1" />  
+            </body>
+       </TestCase>
+        <TestCase testID="focusManager_methods_setFocus_aftertab" description="Call setFocus() after a few Tabs" keywords="[FocusManager, setFocus]">
+            <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchKeyEvent keys="[TAB, TAB, TAB]" waitEvent="focusIn" waitTarget="layout1.button1"/>
+                <RunCode code="application.focusManager.setFocus(application.layout1.ti2)" waitEvent="focusIn" waitTarget="layout1.ti2" />
+                <AssertMethodValue value="true" method="value=String(application.focusManager.getFocus()).indexOf('ti2') != -1" />  
+            </body>
+       </TestCase>        
+       <TestCase testID="focusManager_methods_setFocus_button" description="Call setFocus() on a button" keywords="[FocusManager, setFocus]">
+            <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <RunCode code="application.focusManager.setFocus(application.layout1.button2)" waitEvent="focusIn" waitTarget="layout1.button2" />
+                <AssertMethodValue value="true" method="value=String(application.focusManager.getFocus()).indexOf('button2') != -1" />  
+            </body>
+       </TestCase>        
+       <TestCase testID="focusManager_methods_getNextFocusManagerComponent" description="Call getNextFocusManagerComponent() on FocusManager" 
+           keywords="[FocusManager, getNextFocusManagerComponent]">
+            <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <RunCode code="application.focusManager.setFocus(application.layout1.button2)" waitEvent="focusIn" waitTarget="layout1.button2" />
+                <AssertMethodValue value="ti1" method="value=(application.focusManager.getNextFocusManagerComponent() as UIComponent).id" />  
+            </body>
+       </TestCase>
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Managers/focusManager/Properties/FocusManager_Properties.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/focusManager/Properties/FocusManager_Properties.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/focusManager/Properties/FocusManager_Properties.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/focusManager/Properties/FocusManager_Properties.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,115 @@
+<?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="Managers/focusManager/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="FocusManager_Basic.mxml">
+
+    <mx:Script>
+    <![CDATA[
+    
+        import mx.managers.FocusManager;
+        
+    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.styles.StyleManager;
+    import mx.managers.SystemManager;
+
+    ]]>
+    </mx:Script>
+
+    <testCases>
+        <TestCase testID="defaultButton_default_null" description="Ensure nothing happens when you press enter and no defaultButton is set" keywords="[FocusManager, defaultButton]">
+            <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="layout1.ti1" localX="5" localY="5" waitTarget="layout1.ti1" waitEvent="focusIn" />
+                <DispatchKeyEvent key="ENTER" waitEvent="keyUp" waitTarget=""/>
+                <AssertPropertyValue target="layout1.ti1" value="" propertyName="text" />  
+            </body>
+       </TestCase>
+       <TestCase testID="defaultButton_setInAS_onContainer" description="Ensure that the click handler of the defaultButton triggers when defaultButton is set on the container" keywords="[FocusManager, defaultButton]">
+            <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+                <SetProperty propertyName="defaultButton" valueExpression="value=application.layout1.button2" target="layout1" />
+            </setup>
+            <body>
+                <DispatchMouseClickEvent target="layout1.ti1" localX="5" localY="5" waitTarget="layout1.ti1" waitEvent="focusIn" />
+                <DispatchKeyEvent key="ENTER" waitEvent="keyUp" waitTarget=""/>
+               	<Pause timeout="1000"/>
+               	<AssertPropertyValue target="layout1.ti1" value="button pressed" propertyName="text" />  
+            </body>
+       </TestCase>
+       <TestCase testID="defaultButtonEnabled_setInAS_false" description="Ensure nothing happens when you press enter and defaultButtonEnabled is false" keywords="[FocusManager, defaultButtonEnabled]">
+            <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+                <SetProperty propertyName="defaultButton" valueExpression="value=application.layout1.button2" target="layout1" />
+                <SetProperty propertyName="defaultButtonEnabled" value="false" target="focusManager" />
+           </setup>
+            <body>
+                <DispatchMouseClickEvent target="layout1.ti1" localX="5" localY="5" waitTarget="layout1.ti1" waitEvent="focusIn" />
+                <DispatchKeyEvent key="ENTER" waitEvent="keyUp" waitTarget=""/>
+                <AssertPropertyValue target="layout1.ti1" value="" propertyName="text" />  
+            </body>
+       </TestCase>
+       <TestCase testID="nextTabIndex_default" description="The default nexttabIndex is 1 when no tabIndexes are set." keywords="[FocusManager, nextTabIndex]">
+            <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+           </setup>
+            <body>
+                <AssertPropertyValue target="focusManager" value="1" propertyName="nextTabIndex" />  
+            </body>
+       </TestCase>
+       <TestCase testID="nextTabIndex_allTabIndexesSet" description="the nextTabIndex is always 1 more than the last tabIndex found" keywords="[FocusManager, nextTabIndex]">
+            <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+                <SetProperty propertyName="tabIndex" target="layout1.ti1" value="3" /> 
+                <SetProperty propertyName="tabIndex" target="layout1.ti2" value="2" /> 
+                <SetProperty propertyName="tabIndex" target="layout1.button1" value="1" /> 
+                <SetProperty propertyName="tabIndex" target="layout1.button2" value="4" />             
+           </setup>
+            <body>
+                <AssertPropertyValue target="focusManager" value="5" propertyName="nextTabIndex" />  
+            </body>
+       </TestCase>
+       <TestCase testID="nextTabIndex_someTabIndexesSet" description="the nextTabIndex is always 1 more than the last tabIndex found" keywords="[FocusManager, nextTabIndex]">
+            <setup>
+                <ResetComponent target="layout1" className="MyLayout" waitTarget="layout1" waitEvent="updateComplete" />
+                <SetProperty propertyName="tabIndex" target="layout1.ti1" value="1" /> 
+                <SetProperty propertyName="tabIndex" target="layout1.ti2" value="2" />           
+           </setup>
+            <body>
+                <AssertPropertyValue target="focusManager" value="3" propertyName="nextTabIndex" />  
+            </body>
+       </TestCase>
+    </testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Managers/focusManager/SWFs/Assets/myStyles.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/focusManager/SWFs/Assets/myStyles.css?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/focusManager/SWFs/Assets/myStyles.css (added)
+++ incubator/flex/trunk/mustella/tests/Managers/focusManager/SWFs/Assets/myStyles.css Mon Aug  6 20:17:09 2012
@@ -0,0 +1,52 @@
+/*
+ *
+ * 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.
+ *
+ */
+@font-face {
+	src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+	fontFamily: "MyVerdana";
+			embedAsCFF: false;
+}
+
+@font-face {
+	src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+	fontFamily: "MyVerdana";
+	fontWeight: bold;
+			embedAsCFF: false;
+}
+
+@font-face {
+	src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+	fontFamily: "MyVerdana";
+	fontStyle: italic;
+			embedAsCFF: false;
+}
+
+@font-face {
+	src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+	fontFamily: "MyVerdana";
+	fontWeight: bold;
+	fontStyle: italic;
+			embedAsCFF: false;
+}
+
+global {
+    fontFamily: "MyVerdana";
+    fontAntiAliasType: "normal";
+}
+
+

Added: incubator/flex/trunk/mustella/tests/Managers/focusManager/SWFs/FocusManager_Basic.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/focusManager/SWFs/FocusManager_Basic.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/focusManager/SWFs/FocusManager_Basic.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/focusManager/SWFs/FocusManager_Basic.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,35 @@
+<?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 backgroundColor="0xFFFFFF" height="375" width="500" xmlns:mx="http://www.adobe.com/2006/mxml"
+    horizontalAlign="left" xmlns="*">
+
+     <mx:Script>
+        <![CDATA[
+            
+              import mx.managers.FocusManager;
+              
+        ]]>
+     </mx:Script>
+
+<mx:Style source="Assets/myStyles.css" />
+
+<MyLayout id="layout1" />
+
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/Managers/focusManager/SWFs/MyLayout.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/focusManager/SWFs/MyLayout.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/focusManager/SWFs/MyLayout.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/focusManager/SWFs/MyLayout.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:VBox height="575" width="700" xmlns:mx="http://www.adobe.com/2006/mxml">
+<mx:Script>
+<![CDATA[
+
+    private function clickHandler(event:MouseEvent):void
+    {
+       ti1.text = "button pressed";
+    }
+]]>
+</mx:Script>
+<mx:TextInput id="ti1" />
+<mx:TextInput id="ti2" />
+<mx:Button label="submit" id="button1" click="clickHandler(event)" />
+<mx:Button label="clear" id="button2" click="clickHandler(event)" />
+
+</mx:VBox>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Managers/focusManager/SWFs/TabFocusEnabledTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/focusManager/SWFs/TabFocusEnabledTest.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/focusManager/SWFs/TabFocusEnabledTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/focusManager/SWFs/TabFocusEnabledTest.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,80 @@
+<?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 xmlns:mx="http://www.adobe.com/2006/mxml" width="800" layout="absolute" creationComplete="showInitialStatus()">
+	<mx:Script>
+	<![CDATA[
+		private function changetabFocusEnabled():void{
+			checkTextInput1.tabFocusEnabled = !checkTextInput1.tabFocusEnabled;
+			checkTextInput2.tabFocusEnabled = !checkTextInput2.tabFocusEnabled;
+			checkTextInput3.tabFocusEnabled = !checkTextInput3.tabFocusEnabled;
+			checkTextInput4.tabFocusEnabled = !checkTextInput4.tabFocusEnabled;
+			displaytabFocusEnabled1.text = checkTextInput1.tabFocusEnabled.toString();
+			displaytabFocusEnabled2.text = checkTextInput2.tabFocusEnabled.toString();
+			displaytabFocusEnabled3.text = checkTextInput3.tabFocusEnabled.toString();
+			displaytabFocusEnabled4.text = checkTextInput4.tabFocusEnabled.toString();
+		}
+
+		private function changeFocusEnabled():void{
+			checkTextInput1.focusEnabled = !checkTextInput1.focusEnabled;
+			checkTextInput2.focusEnabled = !checkTextInput2.focusEnabled;
+			checkTextInput3.focusEnabled = !checkTextInput3.focusEnabled;
+			checkTextInput4.focusEnabled = !checkTextInput4.focusEnabled;
+			displayFocusEnabled1.text = checkTextInput1.focusEnabled.toString();
+			displayFocusEnabled2.text = checkTextInput2.focusEnabled.toString();
+			displayFocusEnabled3.text = checkTextInput3.focusEnabled.toString();
+			displayFocusEnabled4.text = checkTextInput4.focusEnabled.toString();
+		}
+
+		private function showInitialStatus():void{
+			displaytabFocusEnabled1.text = checkTextInput1.tabFocusEnabled.toString();
+			displaytabFocusEnabled2.text = checkTextInput2.tabFocusEnabled.toString();
+			displaytabFocusEnabled3.text = checkTextInput3.tabFocusEnabled.toString();
+			displaytabFocusEnabled4.text = checkTextInput4.tabFocusEnabled.toString();
+			displayFocusEnabled1.text = checkTextInput1.focusEnabled.toString();
+			displayFocusEnabled2.text = checkTextInput2.focusEnabled.toString();
+			displayFocusEnabled3.text = checkTextInput3.focusEnabled.toString();
+			displayFocusEnabled4.text = checkTextInput4.focusEnabled.toString();
+		}
+	]]>
+	</mx:Script>
+	<mx:Button label="change focusEnabled" click="changeFocusEnabled()" x="98" y="54"/>
+	<mx:Button label="change tabFocusEnabled" click="changetabFocusEnabled()" x="324" y="54"/>
+	<mx:TextInput id="checkTextInput1" x="60" y="107" tabFocusEnabled="true" focusEnabled="true" height="22"/>
+	<mx:TextInput id="checkTextInput2" x="60" y="154" tabFocusEnabled="false" focusEnabled="true" height="22"/>
+	<mx:TextInput id="checkTextInput3" x="60" y="196" tabFocusEnabled="true" focusEnabled="false" height="22"/>
+	<mx:TextInput id="checkTextInput4" x="60" y="245" tabFocusEnabled="false" focusEnabled="false" height="22"/>
+
+	<mx:Text text="focusEnabled=" x="228" y="107"/>
+	<mx:Text x="312" y="107" id="displayFocusEnabled1"/>
+	<mx:Text x="396" y="107" text="tabFocusEnabled="/>
+	<mx:Text x="559" y="107" id="displaytabFocusEnabled1"/>
+	<mx:Text text="focusEnabled=" x="228" y="156"/>
+	<mx:Text x="312" y="156" id="displayFocusEnabled2"/>
+	<mx:Text x="396" y="156" text="tabFocusEnabled="/>
+	<mx:Text x="559" y="156" id="displaytabFocusEnabled2"/>
+	<mx:Text text="focusEnabled=" x="228" y="198"/>
+	<mx:Text x="312" y="198" id="displayFocusEnabled3"/>
+	<mx:Text x="396" y="198" text="tabFocusEnabled="/>
+	<mx:Text x="559" y="198" id="displaytabFocusEnabled3"/>
+	<mx:Text text="focusEnabled=" x="228" y="245"/>
+	<mx:Text x="312" y="245" id="displayFocusEnabled4"/>
+	<mx:Text x="396" y="245" text="tabFocusEnabled="/>
+	<mx:Text x="559" y="245" id="displaytabFocusEnabled4"/>
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/Managers/focusManager/SWFs/TabbingTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/focusManager/SWFs/TabbingTest.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/focusManager/SWFs/TabbingTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/focusManager/SWFs/TabbingTest.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,128 @@
+<?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 backgroundColor="0xFFFFFF" height="375" width="500" xmlns:mx="http://www.adobe.com/2006/mxml"
+	horizontalAlign="left" >
+
+	 <mx:Script>
+	 	<![CDATA[
+	 		public function modify():void {
+	 			if (!toggleable.visible) {
+	 				toggleable.visible = true;
+	 				toggleable.tabIndex = 3025;
+	 				toggleable.text = "My tabIndex is 3025";
+	 			}
+	 			else {
+	 				toggleable.visible = false;
+	 			}
+
+	 		}
+
+	 	]]>
+	 </mx:Script>
+
+	<mx:Canvas
+	    id="rootCanvas">
+
+        <mx:TextInput
+            id="entryTextInput"
+            width="100%"
+            text="press Enter now to enter forms mode for easier navigation."
+            tabIndex="1"/>
+
+         <mx:Button id="toggle" y="50" click="modify();" label="I am a button" tabIndex="10"/>
+		 <mx:TextInput id="toggleable" y="75" visible="false" text="I am invisible to screenreaders"/>
+
+            <mx:Grid y="100" id="tabGrid" borderStyle="solid" borderColor="0x000000">
+                <mx:GridRow>
+                    <mx:GridItem>
+                        <mx:LinkButton
+                		    id="link2010"
+                		    label="Link 2010"
+                            tabIndex="2010"/>
+                    </mx:GridItem>
+                    <mx:GridItem>
+                        <mx:LinkButton
+                		    id="link3010"
+                		    label="Link 3010"
+                            tabIndex="3010"/>
+                    </mx:GridItem>
+                    <mx:GridItem>
+                		<mx:LinkButton
+                		    id="link4010"
+                		    label="Link 4010"
+                            tabIndex="4010"/>
+                    </mx:GridItem>
+                </mx:GridRow>
+                <mx:GridRow>
+                    <mx:GridItem>
+                		<mx:LinkButton
+                		    id="link2020"
+                		    label="Link 2020"
+                            tabIndex="2020"/>
+  			  </mx:GridItem>
+                    <mx:GridItem>
+                		<mx:LinkButton
+                		    id="link3020"
+                		    label="Link 3020"
+                            tabIndex="3020"/>
+                    </mx:GridItem>
+                    <mx:GridItem>
+                		<mx:LinkButton
+                		    id="link4020"
+                		    label="Link 4020"
+                            tabIndex="4020"/>
+                    </mx:GridItem>
+                </mx:GridRow>
+                <mx:GridRow>
+                    <mx:GridItem>
+                		<mx:LinkButton
+                		    id="link2030"
+                		    label="Link 2030"
+                            tabIndex="2030"/>
+                    </mx:GridItem>
+                    <mx:GridItem>
+                		<mx:LinkButton
+                		    id="link3030"
+                		    label="Link 3030"
+                            tabIndex="3030"/>
+                    </mx:GridItem>
+                    <mx:GridItem>
+                		<mx:LinkButton
+                		    id="link4030"
+                		    label="Link 4030"
+                            tabIndex="4030"/>
+                    </mx:GridItem>
+                </mx:GridRow>
+            </mx:Grid>
+
+		<mx:Canvas y="200" width="500">
+       		<mx:LinkButton y="100" id="link5010" label="Link 5010" tabIndex="5010"/>
+       		<mx:LinkButton y="80" id="link5020" label="Link 5020" tabIndex="5020"/>
+       		<mx:LinkButton y="60" id="link5030" label="Link 5030" tabIndex="5030"/>
+       		<mx:LinkButton y="40" id="link5040" label="Link 5040" tabIndex="5040"/>
+       		<mx:LinkButton y="20" id="link5050" label="Link 5050" tabIndex="5050"/>
+       		<mx:LinkButton y="0" id="link5060" label="Link 5060" tabIndex="5060"/>
+		</mx:Canvas>
+       		<mx:LinkButton y="69" x="365" label="link with no tabindex"/>
+
+
+    	   </mx:Canvas>
+
+</mx:Application>



Mime
View raw message