flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1369972 [6/13] - in /incubator/flex/trunk/mustella/tests/MarshallPlan: ./ Bugs/ Controls/ Controls/baselines/ Events/ ManagerTests/ ManagerTests/baselines/ RPC/ RSLs/ SWFs/ SWFs/assets/ SWFs/assets/assets/ SWFs/assets/bundles/ SWFs/assets/...
Date Mon, 06 Aug 2012 20:20:14 GMT
Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_ToolTipManager_Tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_ToolTipManager_Tests.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_ToolTipManager_Tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_ToolTipManager_Tests.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,308 @@
+<?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="MarshallPlan/ManagerTests/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="MP_Managers_Main.mxml">
+
+    <mx:Script>
+    <![CDATA[
+
+       import mx.managers.ToolTipManager;
+       import mx.controls.Alert;
+       import mx.containers.*;
+       import mx.core.IFlexDisplayObject;
+       import mx.events.FlexEvent;
+       import mx.core.UIComponent;
+       import flash.utils.*;
+       import mx.core.FlexSprite;
+       import CustomToolTip1;
+
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+
+
+    ]]>
+    </mx:Script>
+
+    <mx:Metadata>
+    <![CDATA[
+        [Mixin]
+    ]]>
+    </mx:Metadata>
+
+    <testCases>
+
+         <TestCase testID="MP_ToolTipManager_enabledFalse_trusted" description="Test the scenario when main app enables or disables ToolTips." keywords="[ToolTipManager, enabled, Marshall Plan]">
+             <setup>
+               <ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/simpleToolTip.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <RunCode code="application.changeToolTipEnabled(false)" />
+                <DispatchMouseEvent type="mouseOver" localX="14" localY="13" target="swf1.content.document.simpleButton" />
+                <WaitForEffectsToEnd />
+                <AssertPropertyValue target="mx.managers::ToolTipManager" valueExpression="value=null" propertyName="currentToolTip" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_ToolTipManager_enabledTrue_trusted" description="Test the scenario when main app enables or disables ToolTips." keywords="[ToolTipManager, enabled, Marshall Plan]">
+            <setup>
+               <ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/simpleToolTip.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <RunCode code="application.changeToolTipEnabled(true)" />
+                <DispatchMouseEvent type="mouseOver" localX="14" localY="13" target="swf1.content.document.simpleButton" waitEvent="toolTipShown"
+                    waitTarget="swf1.content.document.simpleButton" />
+                <WaitForEffectsToEnd />
+                <AssertPropertyValue target="mx.managers::ToolTipManager.currentToolTip" value="simple toolTip" propertyName="text" />
+                <Pause timeout="500" />
+                <CompareBitmap target="" url="../ManagerTests/baselines/ToolTip_main_trusted.png" timeout="2400" />
+            </body>
+         </TestCase>
+         <TestCase testID="MP_ToolTipManager_currentTarget_trusted" description="Test the scenario when main app enables or disables ToolTips." keywords="[ToolTipManager, enabled, Marshall Plan]">
+            <setup>
+               <ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/simpleToolTip.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <RunCode code="application.changeToolTipEnabled(true)" />
+                <DispatchMouseEvent type="mouseOver" localX="14" localY="13" target="swf1.content.document.simpleButton" waitEvent="toolTipShown"
+                    waitTarget="swf1.content.document.simpleButton" />
+                <WaitForEffectsToEnd />
+                <AssertPropertyValue target="mx.managers::ToolTipManager.currentTarget" value="submit" propertyName="label" />
+            </body>
+         </TestCase>
+         <TestCase testID="MP_ToolTipManager_enabledFalse_compatible" description="Test the scenario when main app enables or disables ToolTips." keywords="[ToolTipManager, enabled, Marshall Plan]">
+             <setup>
+               <ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/simpleToolTip.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+               <SetProperty propertyName="hideDelay" target="mx.managers::ToolTipManager" value="3000" />
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <RunCode code="application.changeToolTipEnabled(false)" />
+                <DispatchMouseEvent type="mouseOver" localX="14" localY="13" target="swf1.content.document.simpleButton" />
+                <AssertEvent eventName="toolTipShow" target="swf1.content.document.simpleButton" eventClass="mx.events::ToolTipEvent" timeout="3500" />
+                <AssertPropertyValue target="swf1.content.info().currentDomain.getDefinition(mx.managers::ToolTipManager).currentToolTip" value="simple toolTip" propertyName="text" />
+          </body>
+         </TestCase>
+         <TestCase testID="MP_ToolTipManager_enabledTrue_compatible" description="Test the scenario when main app enables or disables ToolTips." keywords="[ToolTipManager, enabled, Marshall Plan]">
+            <setup>
+               <Pause timeout="100" />
+               <ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <Pause timeout="50" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/simpleToolTip.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			   <DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+               <RunCode code="application.changeToolTipEnabled(true)" />
+               <DispatchMouseEvent type="mouseOver" localX="14" localY="13" target="swf1.content.document.simpleButton" />
+               <AssertEvent eventName="toolTipShow" target="swf1.content.document.simpleButton" eventClass="mx.events::ToolTipEvent" timeout="3500" />
+               <AssertPropertyValue target="swf1.content.info().currentDomain.getDefinition(mx.managers::ToolTipManager).currentToolTip" value="simple toolTip" propertyName="text" />
+          </body>
+         </TestCase>
+         <TestCase testID="MP_ToolTipManager_hideDelay_trusted" description="Test the scenario when main app enables or disables ToolTips." keywords="[ToolTipManager, enabled, Marshall Plan]">
+            <setup>
+               <ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/simpleToolTip.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <RunCode code="application.changeToolTipEnabled(true)" />
+                <SetProperty propertyName="hideDelay" target="mx.managers::ToolTipManager" value="1000" />
+                <DispatchMouseEvent type="mouseOver" localX="14" localY="13" target="swf1.content.document.simpleButton" />
+                <AssertEvent eventName="toolTipHide" target="swf1.content.document.simpleButton" eventClass="mx.events::ToolTipEvent" timeout="3500" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_ToolTipManager_showDelay_trusted" description="Test the scenario when main app enables or disables ToolTips." keywords="[ToolTipManager, enabled, Marshall Plan]">
+            <setup>
+               <ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/simpleToolTip.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <RunCode code="application.changeToolTipEnabled(true)" />
+                <SetProperty propertyName="showDelay" target="mx.managers::ToolTipManager" value="0" />
+                <DispatchMouseEvent type="mouseOver" localX="14" localY="13" target="swf1.content.document.simpleButton" />
+                <AssertEvent eventName="toolTipShow" target="swf1.content.document.simpleButton" eventClass="mx.events::ToolTipEvent" timeout="400" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_ToolTipManager_showDelay_comp" description="Test the scenario when main app enables or disables ToolTips." keywords="[ToolTipManager, enabled, Marshall Plan]">
+            <setup>
+               <ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2"
+                   waitEvent="updateComplete" />
+               <SetProperty propertyName="hideDelay" target="mx.managers::ToolTipManager" value="20000" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/simpleToolTip.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <RunCode code="application.changeToolTipEnabled(true)" />
+                <RunCode code="application.swf1.content.document.changeShowDelay(0)" />
+                <DispatchMouseEvent type="mouseOver" localX="14" localY="13" target="swf1.content.document.simpleButton" />
+                <AssertEvent eventName="toolTipShow" target="swf1.content.document.simpleButton" eventClass="mx.events::ToolTipEvent" timeout="400" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_ToolTipManager_currentTarget_comp" description="Test the scenario when main app enables or disables ToolTips." keywords="[ToolTipManager, enabled, Marshall Plan]">
+            <setup>
+               <ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/simpleToolTip.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <RunCode code="application.changeToolTipEnabled(true)" />
+                <DispatchMouseEvent type="mouseOver" localX="14" localY="13" target="swf1.content.document.simpleButton" waitEvent="toolTipShown"
+                    waitTarget="swf1.content.document.simpleButton" />
+                <WaitForEffectsToEnd />
+                <AssertPropertyValue target="swf1.content.info().currentDomain.getDefinition(mx.managers::ToolTipManager).currentTarget" value="submit" propertyName="label"  />
+            </body>
+         </TestCase>
+         <TestCase testID="MP_ToolTipManager_toolTipClass_trusted" description="ToolTipManager.toolTipClass on a main app should pass styles to trusted child." keywords="[ToolTipManager, enabled, Marshall Plan]">
+            <setup>
+               <ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/simpleToolTip.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <RunCode code="application.changeToolTipEnabled(true)" />
+                <SetProperty target="mx.managers::ToolTipManager" propertyName="toolTipClass" valueExpression="value=CustomToolTip1" />
+                <DispatchMouseEvent type="mouseOver" localX="14" localY="13" target="swf1.content.document.simpleButton" waitEvent="toolTipShown"
+                    waitTarget="swf1.content.document.simpleButton" />
+                <WaitForEffectsToEnd />
+                <CompareBitmap target="" url="../ManagerTests/baselines/ToolTip_main_trusted_toolTipClass.png" timeout="2400" />
+            </body>
+         </TestCase>
+         <TestCase testID="MP_ToolTipManager_toolTipClass_comp" description="ToolTipManager toolTipClass on the main application should not affect the child app's toolTips." keywords="[ToolTipManager, enabled, Marshall Plan]">
+            <setup>
+               <ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/simpleToolTip.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <RunCode code="application.changeToolTipEnabled(true)" />
+                <SetProperty target="mx.managers::ToolTipManager" propertyName="toolTipClass" valueExpression="value=CustomToolTip1" />
+                <DispatchMouseEvent type="mouseOver" localX="14" localY="13" target="swf1.content.document.simpleButton" waitEvent="toolTipShown"
+                    waitTarget="swf1.content.document.simpleButton" />
+                <WaitForEffectsToEnd />
+                <CompareBitmap target="" url="../ManagerTests/baselines/ToolTip_main_comp_toolTipClass.png" timeout="2400" />
+            </body>
+         </TestCase>
+         <TestCase testID="MP_ToolTipManager_hideDelay_comp" description="Test the scenario when main app enables or disables ToolTips." keywords="[ToolTipManager, enabled, Marshall Plan]">
+            <setup>
+               <ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2"
+                   waitEvent="updateComplete" />
+               <SetProperty propertyName="hideDelay" target="mx.managers::ToolTipManager" value="20000" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/simpleToolTip.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <RunCode code="application.changeToolTipEnabled(true)" />
+                <RunCode code="application.swf1.content.document.changeHideDelay(1000)" />
+                <DispatchMouseEvent type="mouseOver" localX="14" localY="13" target="swf1.content.document.simpleButton" />
+                <AssertEvent eventName="toolTipHide" target="swf1.content.document.simpleButton" eventClass="mx.events::ToolTipEvent" timeout="3500" />
+           </body>
+         </TestCase>
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_ToolTipManager_Tests.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_ToolTipManager_Tests.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_ToolTipManager_Tests.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_ToolTipManager_Tests.sh Mon Aug  6 20:20:08 2012
@@ -0,0 +1,22 @@
+#!/bin/sh
+################################################################################
+##
+##  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.
+##
+################################################################################
+cd ../SWFs/assets
+
+$SDK_DIR/bin/mxmlc -includes=mx.managers.systemClasses.MarshallingSupport -source-path=$MUSTELLA_DIR/as3/src/mustella -includes=UnitTester -theme=$SDK_DIR/frameworks/themes/Halo/halo.swc simpleToolTip.mxml
\ No newline at end of file

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_ToolTipManager_Tests.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/ToolTip_main_comp.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/ToolTip_main_comp.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/ToolTip_main_comp.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/ToolTip_main_comp_toolTipClass.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/ToolTip_main_comp_toolTipClass.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/ToolTip_main_comp_toolTipClass.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/ToolTip_main_trusted.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/ToolTip_main_trusted.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/ToolTip_main_trusted.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/ToolTip_main_trusted_toolTipClass.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/ToolTip_main_trusted_toolTipClass.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/ToolTip_main_trusted_toolTipClass.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/b_drag_trusted_popup.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/b_drag_trusted_popup.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/b_drag_trusted_popup.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/b_drag_trusted_popup_compatibilityMode.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/b_drag_trusted_popup_compatibilityMode.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/b_drag_trusted_popup_compatibilityMode.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/b_drag_untrusted_popup.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/b_drag_untrusted_popup.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/b_drag_untrusted_popup.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/b_drag_untrusted_popup_compatibilityMode.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/b_drag_untrusted_popup_compatibilityMode.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/b_drag_untrusted_popup_compatibilityMode.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/customCursor_untrusted.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/customCursor_untrusted.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/customCursor_untrusted.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/datagrid_cursor_local.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/datagrid_cursor_local.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/datagrid_cursor_local.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/dividedbox_cursor_compatibility.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/dividedbox_cursor_compatibility.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/dividedbox_cursor_compatibility.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/dividedbox_cursor_local.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/dividedbox_cursor_local.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/dividedbox_cursor_local.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/dividedbox_cursor_remote.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/dividedbox_cursor_remote.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/dividedbox_cursor_remote.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/drag_trusted_popup.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/drag_trusted_popup.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/drag_trusted_popup.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/drag_trusted_popup_compatibilityMode.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/drag_trusted_popup_compatibilityMode.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/drag_trusted_popup_compatibilityMode.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/drag_untrusted_popup.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/drag_untrusted_popup.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/drag_untrusted_popup.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/drag_untrusted_popup_compatibilityMode.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/drag_untrusted_popup_compatibilityMode.png?rev=1369972&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/baselines/drag_untrusted_popup_compatibilityMode.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_DragManager_Compatibility_Tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_DragManager_Compatibility_Tests.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_DragManager_Compatibility_Tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_DragManager_Compatibility_Tests.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,153 @@
+<?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="MarshallPlan/ManagerTests/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="assets/Bootstrap_DragManager_Child.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+	]]>
+	</mx:Script>
+
+	<testCases>
+		<TestCase testID="DragManager_DragMainToSubApp_Compatiblity" description="Test dragging from the main app to the loaded sub app"
+		  keywords="[Marshall Plan, DragManager, loadForCompatibility]">
+			<setup>
+		       <ResetComponent target="dg" className="comps.DGComp" waitEvent="updateComplete" waitTarget="dg" />
+		   	   <SetProperty target="swf2" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf2" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf2" waitEvent="updateComplete"/>
+			   <SetProperty target="swf2" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf2" propertyName="loadForCompatibility" value="true" />
+		   	   <SetProperty target="swf2" propertyName="source" value="MP_DragManager_Events.swf" />
+			   <SetProperty target="swf2" propertyName="autoLoad" value="true"
+					waitTarget="swf2" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf2.content" waitEvent="applicationComplete"/>
+			  	<Pause timeout="200" />
+			  	<DispatchMouseEvent target="dg" type="mouseMove" localX="20" localY="61" />
+				<DispatchMouseEvent target="dg" type="mouseDown" localX="20" localY="61" buttonDown="true" />
+ 				<DispatchMouseEvent target="dg" type="mouseMove" buttonDown="true" localX="12" localY="61"
+									waitTarget="dg" waitEvent="dragStart" />
+ 				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="150" stageY="250"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+ 				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="120" stageY="140"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="200" stageY="180"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="260" stageY="210"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="300" stageY="235"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="310" stageY="255"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="334" stageY="290"
+									waitTarget="swf2.content.document.secondList" waitEvent="dragEnter"/>
+ 				<DispatchMouseEvent target="stage" type="mouseUp" stageX="334" stageY="290"
+									waitTarget="swf2.content.document.secondList" waitEvent="dragDrop" />
+				<AssertEvent target="dg" eventName="dragComplete" eventClass="mx.events::DragEvent" />
+				<AssertPropertyValue target="dg.dataProvider" propertyName="length" value="4" />
+			</body>
+		</TestCase>
+		<TestCase testID="DragManager_DragWithinSubApp_compatibilityMode" description="Test dragging within a loaded sub app"
+		  keywords="[Marshall Plan, DragManager, loadForCompatibility]">
+			<setup>
+			   <ResetComponent target="dg" className="comps.DGComp" waitEvent="updateComplete" waitTarget="dg" />
+               <SetProperty target="swf2" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf2" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf2" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf2" propertyName="autoLoad" value="false" />
+			   <SetProperty target="swf2" propertyName="source" value="MP_DragManager_Events.swf" waitTarget="swf2" waitEvent="updateComplete"/>
+			   <SetProperty target="swf2" propertyName="autoLoad" value="true" waitTarget="swf2" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf2.content" waitEvent="applicationComplete"/>
+			  	<Pause timeout="100" />
+			    <DispatchMouseEvent target="swf2.content.document.firstList" type="mouseMove" localX="20" localY="61" />
+				<DispatchMouseEvent target="swf2.content.document.firstList" type="mouseDown" localX="20" localY="61" buttonDown="true" />
+		 		<DispatchMouseEvent target="swf2.content.document.firstList" type="mouseMove" buttonDown="true" localX="12" localY="61"
+		 		    waitTarget="swf2.content.document.firstList" waitEvent="dragStart" />
+		 		<DispatchMouseEvent target="swf2" type="mouseMove" buttonDown="true" localX="70" localY="85"
+					waitTarget="swf2.content.info().currentDomain.getDefinition(mx.managers::DragManager).mx_internal:dragProxy" waitEvent="move"/>
+		 		<DispatchMouseEvent target="swf2" type="mouseMove" buttonDown="true" localX="120" localY="90"
+					waitTarget="swf2.content.info().currentDomain.getDefinition(mx.managers::DragManager).mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="swf2" type="mouseMove" buttonDown="true" localX="200" localY="91"
+					waitTarget="swf2.content.info().currentDomain.getDefinition(mx.managers::DragManager).mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="swf2" type="mouseMove" buttonDown="true" localX="260" localY="92"
+					waitTarget="swf2.content.info().currentDomain.getDefinition(mx.managers::DragManager).mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="swf2" type="mouseMove" buttonDown="true" localX="300" localY="93"
+					waitTarget="swf2.content.info().currentDomain.getDefinition(mx.managers::DragManager).mx_internal:dragProxy" waitEvent="move"/>
+		 		<DispatchMouseEvent target="swf2" type="mouseMove" buttonDown="true" localX="314" localY="93"
+					waitTarget="swf2.content.info().currentDomain.getDefinition(mx.managers::DragManager).mx_internal:dragProxy" waitEvent="move"/>
+		 		<AssertEvent target="swf2.content.document.secondList" eventName="dragEnter" eventClass="mx.events::DragEvent" />
+		        <DispatchMouseEvent target="swf2" type="mouseUp" localX="314" localY="93"
+		            waitTarget="swf2.content.document.secondList" waitEvent="dragDrop" />
+				<AssertEvent target="swf2.content.document.firstList" eventName="dragComplete" eventClass="mx.events::DragEvent" />
+				<AssertPropertyValue target="swf2.content.document.secondList.dataProvider" propertyName="length" value="1" />
+			</body>
+		</TestCase>
+        <TestCase testID="DragManager_DragSubAppToMain" description="Test dragging from the sub app to the main app"
+		  keywords="[Marshall Plan, DragManager, loadForCompatibility]">
+			<setup>
+			   <ResetComponent target="dg" className="comps.DGComp" waitEvent="updateComplete" waitTarget="dg" />
+               <SetProperty target="swf2" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf2" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf2" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf2" propertyName="autoLoad" value="false" />
+			   <SetProperty target="swf2" propertyName="source" value="MP_DragManager_Events.swf" waitTarget="swf2" waitEvent="updateComplete"/>
+			   <SetProperty target="swf2" propertyName="autoLoad" value="true" waitTarget="swf2" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf2.content" waitEvent="applicationComplete"/>
+                <Pause timeout="100" />
+			    <DispatchMouseEvent target="swf2.content.document.firstList" type="mouseMove" localX="20" localY="61" />
+				<DispatchMouseEvent target="swf2.content.document.firstList" type="mouseDown" localX="20" localY="61" buttonDown="true" />
+ 				<DispatchMouseEvent target="swf2.content.document.firstList" type="mouseMove" buttonDown="true" localX="12" localY="61"
+									waitTarget="swf2.content.document.firstList" waitEvent="dragStart" />
+ 				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="110" stageY="250"
+									waitTarget="swf2.content.info().currentDomain.getDefinition(mx.managers::DragManager).mx_internal:dragProxy" waitEvent="move"/>
+ 				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="120" stageY="235"
+									waitTarget="swf2.content.info().currentDomain.getDefinition(mx.managers::DragManager).mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="125" stageY="214"
+									waitTarget="swf2.content.info().currentDomain.getDefinition(mx.managers::DragManager).mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="135" stageY="175"
+									waitTarget="swf2.content.info().currentDomain.getDefinition(mx.managers::DragManager).mx_internal:dragProxy" waitEvent="move"/>
+				<AssertEvent target="dg" eventName="dragEnter" eventClass="mx.events::DragEvent" />
+				<DispatchMouseEvent target="stage" type="mouseUp" stageX="135" stageY="175"
+									waitTarget="dg" waitEvent="dragDrop" />
+				<AssertEvent target="swf2.content.document.firstList" eventName="dragComplete" eventClass="mx.events::DragEvent" />
+				<AssertPropertyValue target="dg.dataProvider" propertyName="length" value="6" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_DragManager_Compatibility_Tests.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_DragManager_Compatibility_Tests.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_DragManager_Compatibility_Tests.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_DragManager_Compatibility_Tests.sh Mon Aug  6 20:20:08 2012
@@ -0,0 +1,33 @@
+#!/bin/sh
+################################################################################
+##
+##  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.
+##
+################################################################################
+echo "Compiling sub application SWFs..."
+if [ "$APOLLO_TRANSFORM" = "true" ]
+    then
+    $SDK_DIR/bin/mxmlc -static-link-runtime-shared-libraries=true ../SWFs/air_Bootstrap_DragManager.as
+else
+    $SDK_DIR/bin/mxmlc -static-link-runtime-shared-libraries=true ../SWFs/Bootstrap_DragManager.as
+fi
+
+cd ../SWFs/assets
+
+if (! [ -e MP_DragManager_Events.swf ])
+then
+   $SDK_DIR/bin/mxmlc -includes=mx.managers.systemClasses.MarshallingSupport -source-path=$MUSTELLA_DIR/as3/src/mustella -includes=UnitTester  -theme=$SDK_DIR/frameworks/themes/Halo/halo.swc MP_DragManager_Events.mxml
+fi

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_DragManager_Compatibility_Tests.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_FocusManager_Tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_FocusManager_Tests.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_FocusManager_Tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_FocusManager_Tests.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,407 @@
+<?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="MarshallPlan/ManagerTests/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="assets/Bootstrap_Managers_Child.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+	]]>
+	</mx:Script>
+    <!-- There are 100 ms pauses because even after an updateComplete or a complete event, the source doesn't seem to be consis-
+    tently fully loaded -->
+	<testCases>
+        <TestCase testID="MarshallPlan_FocusManager_Tab" description="Test tabbing through the main app and sub app"
+		    keywords="[Marshall Plan, FocusManager, TAB]">
+			<setup>
+			   <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+			   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+			   <SetProperty target="swf1" propertyName="source" value="simpleForms.swf" />
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true"
+					waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			    <DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
+					waitTarget="swf1.content" waitEvent="applicationComplete"/>
+				<DispatchMouseClickEvent target="control1" localX="10" localY="5" waitTarget="control1"
+				    waitEvent="focusIn" />
+				<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="control2" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol1" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol2" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol3" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol4" />
+                <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol5" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control1" />
+                <AssertEvent target="control1" eventName="focusIn" eventClass="flash.events::FocusEvent" />
+		    </body>
+		</TestCase>
+        <TestCase testID="MarshallPlan_FocusManager_ShiftTab" description="Test shift+tabbing through the main app and sub app"
+		    keywords="[Marshall Plan, FocusManager, TAB]">
+			<setup>
+			   <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+			   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+			   <SetProperty target="swf1" propertyName="source" value="simpleForms.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true"
+					waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			    <DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
+					waitTarget="swf1.content" waitEvent="applicationComplete"/>
+				<DispatchMouseClickEvent target="control1" localX="10" localY="5" waitTarget="control1"
+				    waitEvent="mouseUp" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol5" shiftKey="true"/>
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol4" shiftKey="true"/>
+                <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol3" shiftKey="true"/>
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol2" shiftKey="true"/>
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol1" shiftKey="true"/>
+				<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="control2" shiftKey="true"/>
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control1" shiftKey="true"/>
+                <AssertEvent target="control1" eventName="focusIn" eventClass="flash.events::FocusEvent" />
+		    </body>
+		</TestCase>
+        <TestCase testID="MarshallPlan_FocusManager_PopUps" description="Test focus after opening and closing popups"
+		    keywords="[Marshall Plan, FocusManager, TAB]">
+			<setup>
+			    <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
+                <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+				<SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+                <Pause timeout="100" />
+			    <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+			    <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+				<SetProperty target="swf1" propertyName="source" value="tabbs.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+				<SetProperty target="swf1" propertyName="autoLoad" value="true"
+					waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			    <DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
+					waitTarget="swf1.content" waitEvent="applicationComplete"/>
+				<DispatchMouseClickEvent target="swf1.content.document.btn1" localX="8" localY="10"
+				    waitTarget="swf1.content.document.myTitleWindow" waitEvent="updateComplete" />
+                <DispatchKeyEvent keys="[TAB, TAB, TAB]" waitTarget="swf1.content.document.myTitleWindow.buttonLogon"
+                    waitEvent="focusIn" />
+                <DispatchKeyEvent key="SPACE" waitTarget="swf1.content.document.myTitleWindow" waitEvent="removed" />
+                <DispatchKeyEvent key="TAB" waitTarget="swf1.content.document.text3" waitEvent="focusIn" />
+	            <AssertEvent target="swf1.content.document.text3" eventName="focusIn" eventClass="flash.events::FocusEvent" />
+		    </body>
+		</TestCase>
+       <TestCase testID="MarshallPlan_FocusManager_TabIndex" description="Test tabbing through the main app and sub app"
+		    keywords="[Marshall Plan, FocusManager, TAB]">
+			<setup>
+			   <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty propertyName="tabIndex" target="control1" value="2"/>
+			   <SetProperty propertyName="tabIndex" target="control2" value="1"/>
+			   <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+			   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+			   <SetProperty target="swf1" propertyName="source" value="simpleForms.swf" />
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true"
+			       waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			    <DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
+					waitTarget="swf1.content" waitEvent="applicationComplete"/>
+				<DispatchMouseClickEvent target="control1" localX="10" localY="5" waitTarget="control1"
+				    waitEvent="focusIn" />
+				<SetProperty propertyName="tabIndex" target="swf1.content.document.subcontrol1" value="4"/>
+				<SetProperty propertyName="tabIndex" target="swf1.content.document.subcontrol2" value="1"/>
+				<SetProperty propertyName="tabIndex" target="swf1.content.document.subcontrol3" value="3"/>
+				<SetProperty propertyName="tabIndex" target="swf1.content.document.subcontrol4" value="2"/>
+				<SetProperty propertyName="tabIndex" target="swf1.content.document.subcontrol5" value="5"/>
+				<DispatchKeyEvent key="TAB" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol3" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol1" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol5" />
+                <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control2" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol2" />
+                <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control1" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol4" />
+				<AssertEvent target="swf1.content.document.subcontrol4" eventName="focusIn" eventClass="flash.events::FocusEvent" numExpectedEvents="2"/>
+		    </body>
+		</TestCase>
+        <TestCase testID="MarshallPlan_FocusManager_Tab_fromLocalhost" description="Test tabbing through the main app and sub app"
+		    keywords="[Marshall Plan, FocusManager, TAB]">
+			<setup>
+			    <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
+			    <ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2" waitEvent="updateComplete" />
+			    <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+				<SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+                <Pause timeout="100" />
+			    <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+			    <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+				<SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/simpleForms.swf?153_13?153_13?153_13" />
+				<SetProperty target="swf1" propertyName="autoLoad" value="true"
+					waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			    <WaitForSandboxApp target="swf1" />
+			  	<DispatchMouseClickEvent target="control1" localX="10" localY="5" waitTarget="control1"
+				    waitEvent="focusIn" />
+				<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="control2" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol1" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol2" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol3" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol4" />
+                <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol5" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control1" />
+                <AssertEvent target="control1" eventName="focusIn" eventClass="flash.events::FocusEvent" />
+		    </body>
+		</TestCase>
+        <TestCase testID="MarshallPlan_FocusManager_ShiftTab_fromLocalhost" description="Test shift+tabbing through the main app and sub app"
+		    keywords="[Marshall Plan, FocusManager, TAB]">
+			<setup>
+                <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
+			    <ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2" waitEvent="updateComplete" />
+			    <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+				<SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+                <Pause timeout="100" />
+			    <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+			    <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+				<SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/simpleForms.swf?181_13?181_13?181_13" waitTarget="swf1" waitEvent="updateComplete"/>
+				<SetProperty target="swf1" propertyName="autoLoad" value="true"
+					waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			    <WaitForSandboxApp target="swf1" />
+			  	<DispatchMouseClickEvent target="control1" localX="10" localY="5" waitTarget="control1"
+				    waitEvent="mouseUp" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol5" shiftKey="true"/>
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol4" shiftKey="true"/>
+                <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol3" shiftKey="true"/>
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol2" shiftKey="true"/>
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol1" shiftKey="true"/>
+				<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="control2" shiftKey="true"/>
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control1" shiftKey="true"/>
+                <AssertEvent target="control1" eventName="focusIn" eventClass="flash.events::FocusEvent" />
+		    </body>
+		</TestCase>
+        <!--TestCase testID="MarshallPlan_FocusManager_PopUps_fromLocalhost" description="Test focus after opening and closing popups"
+		    keywords="[Marshall Plan, FocusManager, TAB]">
+			<setup>
+                <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+				<SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+                <Pause timeout="100" />
+			    <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+			    <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+				<SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/tabbs.swf?207_13?207_13?207_13" waitTarget="swf1" waitEvent="updateComplete"/>
+				<SetProperty target="swf1" propertyName="autoLoad" value="true"
+					waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			    <DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
+					waitTarget="swf1.content" waitEvent="applicationComplete"/>
+				<DispatchMouseClickEvent target="swf1.content.document.btn1" localX="8" localY="10"
+				    waitTarget="swf1.content.document.myTitleWindow" waitEvent="updateComplete" />
+                <DispatchKeyEvent keys="[TAB, TAB, TAB]" waitTarget="swf1.content.document.myTitleWindow.buttonLogon"
+                    waitEvent="focusIn" />
+                <DispatchKeyEvent key="SPACE" waitTarget="swf1.content.document.myTitleWindow" waitEvent="removed" />
+                <DispatchKeyEvent key="TAB" waitTarget="swf1.content.document.text3" waitEvent="focusIn" />
+	            <AssertEvent target="swf1.content.document.text3" eventName="focusIn" eventClass="flash.events::FocusEvent" />
+		    </body>
+		</TestCase-->
+		<TestCase testID="MarshallPlan_FocusManager_Tab_compatibilityMode" description="Test tabbing through the main app and sub app"
+		    keywords="[Marshall Plan, FocusManager, TAB]">
+			<setup>
+			    <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
+			    <ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2" waitEvent="updateComplete" />
+			    <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			    <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+                <Pause timeout="100" />
+				<SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+			    <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+				<SetProperty target="swf1" propertyName="source" value="simpleForms.swf" />
+				<SetProperty target="swf1" propertyName="autoLoad" value="true"
+					waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			    <DispatchMouseClickEvent target="control1" localX="12" localY="55"
+					waitTarget="swf1.content" waitEvent="applicationComplete"/>
+				<DispatchMouseClickEvent target="control1" localX="10" localY="5" waitTarget="control1"
+				    waitEvent="focusIn" />
+				<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="control2" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol1" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol2" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol3" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol4" />
+                <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol5" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control1" />
+                <AssertEvent target="control1" eventName="focusIn" eventClass="flash.events::FocusEvent" />
+		    </body>
+		</TestCase>
+        <TestCase testID="MarshallPlan_FocusManager_ShiftTab_compatibilityMode" description="Test shift+tabbing through the main app and sub app"
+		    keywords="[Marshall Plan, FocusManager, TAB]">
+			<setup>
+			    <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
+			    <ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2" waitEvent="updateComplete" />
+			    <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+				<SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+                <Pause timeout="100" />
+			    <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+			    <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+				<SetProperty target="swf1" propertyName="source" value="simpleForms.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+				<SetProperty target="swf1" propertyName="autoLoad" value="true"
+					waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			    <DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
+					waitTarget="swf1.content" waitEvent="applicationComplete"/>
+				<DispatchMouseClickEvent target="control1" localX="10" localY="5" waitTarget="control1"
+				    waitEvent="mouseUp" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol5" shiftKey="true"/>
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol4" shiftKey="true"/>
+                <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol3" shiftKey="true"/>
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol2" shiftKey="true"/>
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol1" shiftKey="true"/>
+				<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="control2" shiftKey="true"/>
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control1" shiftKey="true"/>
+                <AssertEvent target="control1" eventName="focusIn" eventClass="flash.events::FocusEvent" />
+		    </body>
+		</TestCase>
+        <!--TestCase testID="MarshallPlan_FocusManager_PopUps_compatibilityMode" description="Test focus after opening and closing popups"
+		    keywords="[Marshall Plan, FocusManager, TAB]">
+			<setup>
+			    <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
+			    <ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2" waitEvent="updateComplete" />
+			    <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+				<SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+                <Pause timeout="100" />
+			    <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+			    <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+				<SetProperty target="swf1" propertyName="source" value="tabbs.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+				<SetProperty target="swf1" propertyName="autoLoad" value="true"
+					waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			    <DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
+					waitTarget="swf1.content" waitEvent="applicationComplete"/>
+				<DispatchMouseClickEvent target="swf1.content.document.btn1" localX="8" localY="10"
+				    waitTarget="swf1.content.document.myTitleWindow" waitEvent="updateComplete" />
+                <DispatchKeyEvent keys="[TAB, TAB, TAB]" waitTarget="swf1.content.document.myTitleWindow.buttonLogon"
+                    waitEvent="focusIn" />
+                <DispatchKeyEvent key="SPACE" waitTarget="swf1.content.document.myTitleWindow" waitEvent="removed" />
+                <DispatchKeyEvent key="TAB" waitTarget="swf1.content.document.text3" waitEvent="focusIn" />
+	            <AssertEvent target="swf1.content.document.text3" eventName="focusIn" eventClass="flash.events::FocusEvent" />
+		    </body>
+		</TestCase-->
+        <TestCase testID="MarshallPlan_FocusManager_Tab_fromLocalhost_compatibilityMode" description="Test tabbing through the main app and sub app"
+		    keywords="[Marshall Plan, FocusManager, TAB]">
+			<setup>
+			    <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
+			    <ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2" waitEvent="updateComplete" />
+			    <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+				<SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+                <Pause timeout="100" />
+			    <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+			    <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	    <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/simpleForms.swf?317_13?317_13?317_13" />
+				<SetProperty target="swf1" propertyName="autoLoad" value="true"
+					waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			    <WaitForSandboxApp target="swf1" />
+			  	<DispatchMouseClickEvent target="control1" localX="10" localY="5" waitTarget="control1"
+				    waitEvent="focusIn" />
+				<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="control2" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol1" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol2" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol3" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol4" />
+                <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol5" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control1" />
+                <AssertEvent target="control1" eventName="focusIn" eventClass="flash.events::FocusEvent" />
+		    </body>
+		</TestCase>
+        <TestCase testID="MarshallPlan_FocusManager_ShiftTab_fromLocalhost_compatibilityMode" description="Test shift+tabbing through the main app and sub app"
+		    keywords="[Marshall Plan, FocusManager, TAB]">
+			<setup>
+                <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1" waitEvent="updateComplete" />
+			    <ResetComponent target="control2" className="mx.controls.Button" waitTarget="control2" waitEvent="updateComplete" />
+			    <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+				<SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+                <Pause timeout="100" />
+			    <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+			    <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+				<SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/simpleForms.swf?345_13?345_13?345_13" waitTarget="swf1" waitEvent="updateComplete"/>
+				<SetProperty target="swf1" propertyName="autoLoad" value="true"
+					waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			    <WaitForSandboxApp target="swf1" />
+			  	<DispatchMouseClickEvent target="control1" localX="10" localY="5" waitTarget="control1"
+				    waitEvent="mouseUp" />
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol5" shiftKey="true"/>
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol4" shiftKey="true"/>
+                <DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol3" shiftKey="true"/>
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol2" shiftKey="true"/>
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="swf1.content.document.subcontrol1" shiftKey="true"/>
+				<DispatchKeyEvent keys="TAB" waitEvent="focusIn" waitTarget="control2" shiftKey="true"/>
+				<DispatchKeyEvent key="TAB" waitEvent="focusIn" waitTarget="control1" shiftKey="true"/>
+                <AssertEvent target="control1" eventName="focusIn" eventClass="flash.events::FocusEvent" />
+		    </body>
+		</TestCase>
+        <!--TestCase testID="MarshallPlan_FocusManager_PopUps_fromLocalhost_compatibilityMode" description="Test focus after opening and closing popups"
+		    keywords="[Marshall Plan, FocusManager, TAB]">
+			<setup>
+                <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+				<SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+                <Pause timeout="100" />
+			    <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+			    <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+				<SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/tabbs.swf?371_13?371_13?371_13" waitTarget="swf1" waitEvent="updateComplete"/>
+				<SetProperty target="swf1" propertyName="autoLoad" value="true"
+					waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			    <DispatchMouseEvent target="control1" type="mouseMove" localX="12" localY="55"
+					waitTarget="swf1.content" waitEvent="applicationComplete"/>
+				<DispatchMouseClickEvent target="swf1.content.document.btn1" localX="8" localY="10"
+				    waitTarget="swf1.content.document.myTitleWindow" waitEvent="updateComplete" />
+                <DispatchKeyEvent keys="[TAB, TAB, TAB]" waitTarget="swf1.content.document.myTitleWindow.buttonLogon"
+                    waitEvent="focusIn" />
+                <DispatchKeyEvent key="SPACE" waitTarget="swf1.content.document.myTitleWindow" waitEvent="removed" />
+                <DispatchKeyEvent key="TAB" waitTarget="swf1.content.document.text3" waitEvent="focusIn" />
+	            <AssertEvent target="swf1.content.document.text3" eventName="focusIn" eventClass="flash.events::FocusEvent" />
+		    </body>
+		</TestCase-->
+
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_FocusManager_Tests.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_FocusManager_Tests.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_FocusManager_Tests.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_FocusManager_Tests.sh Mon Aug  6 20:20:08 2012
@@ -0,0 +1,26 @@
+#!/bin/sh
+################################################################################
+##
+##  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.
+##
+################################################################################
+echo "Compiling sub application SWFs..."
+if [ "$APOLLO_TRANSFORM" = "true" ]
+    then
+    $SDK_DIR/bin/mxmlc  -static-link-runtime-shared-libraries=true ../SWFs/air_Bootstrap_Managers.as
+else
+    $SDK_DIR/bin/mxmlc -static-link-runtime-shared-libraries=true ../SWFs/Bootstrap_Managers.as
+fi

Propchange: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_FocusManager_Tests.sh
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message