incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1369972 [3/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_CursorManager_Tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_CursorManager_Tests.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_CursorManager_Tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_CursorManager_Tests.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,335 @@
+<UnitTester testDir="MarshallPlan/ManagerTests/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="MP_CursorManager_Main.mxml">
+    <!--Default Script-->
+    <mx:Script>
+        <![CDATA[
+        import mx.managers.CursorManagerPriority;
+
+        public static function init(o:DisplayObject):void{}
+    ]]>
+    </mx:Script>
+    <!--Default Metadata-->
+    <mx:Metadata><![CDATA[[Mixin]]]></mx:Metadata>
+    <!--Test Cases-->
+    <mx:Script>
+      <![CDATA[
+            import mx.managers.CursorManager;
+            import mx.managers.CursorManagerPriority;
+
+            public function ResetCursorManager():void
+            {
+               application.cursorManager.removeAllCursors();
+               application.cursorManager.showCursor();
+            }
+       ]]>
+    </mx:Script>
+    <testCases>
+
+        <!-- SetCursor -->
+        <TestCase testID="MP_CursorManager_SetCursor_EmbeddedImage" keywords="[MarshallPlan, Managers, CursorManager, SetCursor]" description="Set the cursor to a custom image.">
+            <setup>
+               <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" 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" />
+               <RunCode code="ResetCursorManager();" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+               <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+               <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.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.swf1.content.document.ResetCursorManager();" />
+                <DispatchMouseEvent type="mouseMove" target="swf1.content.document.testPanel" localX="25" localY="25" />
+                <RunCode code="application.cursorManager.setCursor(application.swf1.content.document.cursorPencil, CursorManagerPriority.HIGH, 0, 0);" />
+                <DispatchMouseEvent type="mouseMove" localX="0" localY="0" target="swf1.content.document.testPanel" waitTarget="swf1.content.document.testPanel" waitEvent="mouseMove" />
+                <Pause timeout="100" />
+                <AssertPixelValue target="swf1.content.document.testPanel" x="5" y="43" value="0x2A4A76" />
+            </body>
+        </TestCase>
+        <TestCase testID="MP_CursorManager_SetCursor_XOffset" keywords="[MarshallPlan, Managers, CursorManager, SetCursor]" description="Set the cursor to a custom image with an xOffset.">
+            <setup>
+               <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" 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" />
+               <RunCode code="ResetCursorManager();" />
+               <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+               <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+            </setup>
+            <body>
+                <DispatchMouseEvent target="swf1" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <RunCode code="application.swf1.content.document.ResetCursorManager();" />
+                <RunCode code="application.cursorManager.setCursor(application.swf1.content.document.cursorPencil, CursorManagerPriority.HIGH, 30, 0);" />
+                <DispatchMouseEvent type="mouseMove" localX="0" localY="0" target="swf1.content.document.testPanel" waitTarget="swf1.content.document.testPanel" waitEvent="mouseMove" />
+                <AssertPixelValue target="swf1.content.document.testPanel" x="35" y="43" value="0x2A4A76" />
+            </body>
+        </TestCase>
+        <TestCase testID="MP_CursorManager_SetCursor_YOffset" keywords="[MarshallPlan, Managers, CursorManager, SetCursor]" description="Set the cursor to a custom image with an yOffset.">
+            <setup>
+               <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" 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" />
+               <RunCode code="ResetCursorManager();" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+               <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+               <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+            </setup>
+            <body>
+                <DispatchMouseEvent target="swf1" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <RunCode code="application.swf1.content.document.ResetCursorManager();" />
+                <RunCode code="application.cursorManager.setCursor(application.swf1.content.document.cursorPencil, CursorManagerPriority.HIGH, 0, 30);" />
+                <DispatchMouseEvent type="mouseMove" localX="0" localY="0" target="swf1.content.document.testPanel" waitTarget="swf1.content.document.testPanel" waitEvent="mouseMove" />
+                <AssertPixelValue target="swf1.content.document.testPanel" x="5" y="73" value="0x2A4A76" />
+            </body>
+        </TestCase>
+        <TestCase testID="MP_CursorManager_HideCursor" keywords="[MarshallPlan, Managers, CursorManager, HideCursor]" description="Hide a custom cursor.">
+            <setup>
+               <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" 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" />
+               <RunCode code="ResetCursorManager();" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+               <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+               <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+            </setup>
+            <body>
+                <DispatchMouseEvent target="swf1" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <RunCode code="application.swf1.content.document.ResetCursorManager();" />
+                <DispatchMouseEvent type="mouseMove" target="swf1.content.document.testPanel" localX="25" localY="25" />
+                <RunCode code="application.cursorManager.setCursor(application.swf1.content.document.cursorPencil, CursorManagerPriority.HIGH, 0, 0);" />
+                <AssertPixelValue target="swf1.content.document.testPanel" x="30" y="67" value="2700398" />
+                <RunCode code="application.cursorManager.hideCursor();" />
+                <AssertPixelValue target="swf1.content.document.testPanel" x="30" y="67" value="16777215" />
+            </body>
+        </TestCase>
+        <TestCase testID="MP_CursorManager_ShowCursor" keywords="[MarshallPlan, Managers, CursorManager, ShowCursor]" description="Show a custom cursor.">
+            <setup>
+               <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" 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" />
+               <RunCode code="ResetCursorManager();" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+               <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+               <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+            </setup>
+            <body>
+                <DispatchMouseEvent target="swf1" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <RunCode code="application.swf1.content.document.ResetCursorManager();" />
+                <DispatchMouseEvent type="mouseMove" target="swf1.content.document.testPanel" localX="25" localY="25" />
+                <RunCode code="application.cursorManager.hideCursor();" />
+                <RunCode code="application.cursorManager.setCursor(application.swf1.content.document.cursorPencil, CursorManagerPriority.HIGH, 0, 0);" />
+                <AssertPixelValue target="swf1.content.document.testPanel" x="30" y="67" value="16777215" />
+                <RunCode code="application.cursorManager.showCursor();" />
+                <AssertPixelValue target="swf1.content.document.testPanel" x="30" y="67" value="2700398" />
+            </body>
+        </TestCase>
+        <TestCase testID="MP_CursorManager_RemoveAllCursors" keywords="[MarshallPlan, Managers, CursorManager, RemoveAllCursors]" description="Remove all custom cursors.">
+            <setup>
+               <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" 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" />
+               <RunCode code="ResetCursorManager();" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+               <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+               <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+            </setup>
+            <body>
+                <DispatchMouseEvent target="swf1" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <RunCode code="application.swf1.content.document.ResetCursorManager();" />
+                <DispatchMouseEvent type="mouseMove" target="swf1.content.document.testPanel" localX="25" localY="25" />
+                <RunCode code="application.cursorManager.setCursor(application.swf1.content.document.cursorPencil, CursorManagerPriority.HIGH, 0, 0);" />
+                <AssertPixelValue target="swf1.content.document.testPanel" x="30" y="67" value="2700398" />
+                <RunCode code="application.cursorManager.removeAllCursors();" />
+                <AssertPixelValue target="swf1.content.document.testPanel" x="30" y="67" value="16777215" />
+            </body>
+        </TestCase>
+        <TestCase testID="MP_CursorManager_RemoveCursor" keywords="[MarshallPlan, Managers, CursorManager, RemoveCursor]" description="Remove a custom cursor.">
+            <setup>
+               <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" 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" />
+               <RunCode code="ResetCursorManager();" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+               <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+               <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+            </setup>
+            <body>
+                <DispatchMouseEvent target="swf1" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <RunCode code="application.swf1.content.document.ResetCursorManager();" />
+                <DispatchMouseEvent type="mouseMove" target="swf1.content.document.testPanel" localX="25" localY="25" />
+                <RunCode code="application.cursorManager.setCursor(application.swf1.content.document.cursorPencil, CursorManagerPriority.HIGH, 0, 0);" />
+                <AssertPixelValue target="swf1.content.document.testPanel" x="30" y="67" value="2700398" />
+                <RunCode code="application.cursorManager.removeCursor(application.cursorManager.currentCursorID);" />
+                <AssertPixelValue target="swf1.content.document.testPanel" x="30" y="67" value="16777215" />
+            </body>
+        </TestCase>
+        <TestCase testID="MP_CursorManager_SetBusyCursor" keywords="[MarshallPlan, Managers, CursorManager, SetBusyCursor]" description="Activate the busy cursor.">
+            <setup>
+               <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" 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" />
+               <RunCode code="ResetCursorManager();" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+               <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+               <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+            </setup>
+            <body>
+                <DispatchMouseEvent target="swf1" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <RunCode code="application.swf1.content.document.ResetCursorManager();" />
+                <DispatchMouseEvent type="mouseMove" target="swf1.content.document.testPanel" localX="50" localY="50" />
+                <RunCode code="application.cursorManager.setBusyCursor();" />
+                <AssertPixelValue target="swf1.content.document.testPanel" x="50" y="50" value="4144959" />
+            </body>
+        </TestCase>
+        <TestCase testID="MP_CursorManager_RemoveBusyCursor" keywords="[MarshallPlan, Managers, CursorManager, RemoveBusyCursor]" description="Remove the busy cursor.">
+            <setup>
+               <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" 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" />
+               <RunCode code="ResetCursorManager();" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+               <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+               <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.swf" waitTarget="swf1" waitEvent="updateComplete"/>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+            </setup>
+            <body>
+                <DispatchMouseEvent target="swf1" type="mouseMove" localX="12" localY="55" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <RunCode code="application.swf1.content.document.ResetCursorManager();" />
+                <DispatchMouseEvent type="mouseMove" target="swf1.content.document.testPanel" localX="50" localY="50" />
+                <RunCode code="application.cursorManager.setBusyCursor();" />
+                <AssertPixelValue target="swf1.content.document.testPanel" x="50" y="50" value="4144959" />
+                <RunCode code="application.cursorManager.removeBusyCursor();" />
+                <AssertPixelValue target="swf1.content.document.testPanel" x="50" y="50" value="16777215" />
+            </body>
+        </TestCase>
+
+        <TestCase testID="MP_CursorManager_SetCursor_InSubApp" keywords="[MarshallPlan, Managers, CursorManager, SetCursor]" description="Set the cursor to a custom image.">
+            <setup>
+               <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" 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" />
+               <RunCode code="ResetCursorManager();" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+               <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+               <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.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.swf1.content.document.ResetCursorManager();" />
+                <DispatchMouseEvent type="mouseMove" target="swf1.content.document.testPanel" localX="25" localY="25" />
+                <RunCode code="application.swf1.content.document.cursorManager.setCursor(application.swf1.content.document.cursorPencil, CursorManagerPriority.HIGH, 0, 0);" />
+                <DispatchMouseEvent type="mouseMove" localX="0" localY="0" target="swf1.content.document.testPanel" waitTarget="swf1.content.document.testPanel" waitEvent="mouseMove" />
+                <AssertPixelValue target="swf1.content.document.testPanel" x="5" y="43" value="0x2A4A76" />
+                <DispatchMouseEvent type="mouseMove" localX="0" localY="0" target="" waitTarget="" waitEvent="mouseMove" />
+                <AssertPixelValue target="" x="5" y="43" value="0x2A4A76" />
+            </body>
+        </TestCase>
+      <TestCase testID="MP_CursorManager_SetCursor_InCompatibilitySubApp" keywords="[MarshallPlan, Managers, CursorManager, SetCursor]" description="Set the cursor to a custom image.">
+          <setup>
+              <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" 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" />
+              <RunCode code="ResetCursorManager();" />
+              <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+              <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+              <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child.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.swf1.content.document.ResetCursorManager();" />
+              <DispatchMouseEvent type="mouseMove" target="swf1.content.document.testPanel" localX="25" localY="25" />
+              <RunCode code="application.cursorManager.setCursor(application.swf1.content.document.cursorPencil, CursorManagerPriority.HIGH, 0, 0);" />
+              <DispatchMouseEvent type="mouseMove" localX="0" localY="0" target="swf1.content.document.testPanel" waitTarget="swf1.content.document.testPanel" waitEvent="mouseMove" />
+              <AssertPixelValue target="swf1.content.document.testPanel" x="5" y="43" value="0x2A4A76" />
+              <DispatchMouseEvent type="mouseMove" localX="0" localY="0" target="" waitTarget="" waitEvent="mouseMove" />
+              <AssertPixelValue target="" x="5" y="43" value="0x2A4A76" />
+          </body>
+      </TestCase>
+      <TestCase testID="MP_CursorManager_DividedBox_local" keywords="[DividedBox, MarshallPlan, Managers, CursorManager, SetCursor]" description="Set the cursor to a custom image.">
+            <setup>
+               <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" 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" />
+               <RunCode code="ResetCursorManager();" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+               <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+               <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child_WithControls.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.swf1.content.document.ResetCursorManager();" />
+                <DispatchMouseEvent type="mouseDown" target="swf1.content.document.container_dividedbox"
+                    localX="150" localY="28" waitTarget="swf1.content.document.container_dividedbox" waitEvent="dividerPress"/>
+                <DispatchMouseEvent type="mouseMove" target="swf1.content.document.container_dividedbox" localX="150" localY="28" buttonDown="true"/>
+                <DispatchMouseEvent type="mouseMove"  buttonDown="true" target="swf1.content.document.container_dividedbox" localX="150" localY="30" />
+                <Pause timeout="150" />
+                <CompareBitmap url="../ManagerTests/baselines/dividedbox_cursor_local.png" target="swf1.content.document.container_dividedbox" timeout="2500" />
+            </body>
+        </TestCase>
+        <TestCase testID="MP_CursorManager_DividedBox_remote" keywords="[DividedBox, MarshallPlan, Managers, CursorManager, SetCursor]" description="Set the cursor to a custom image.">
+            <setup>
+               <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" 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" />
+               <RunCode code="ResetCursorManager();" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+               <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+               <SetProperty target="swf1" propertyName="source" value="http://localhost/MarshallPlan/SWFs/assets/MP_CursorManager_Child_WithControls.swf?300_4?300_4?300_4" waitTarget="swf1" waitEvent="updateComplete"/>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+            </setup>
+            <body>
+                <WaitForSandboxApp target="swf1" />
+                <DispatchMouseClickEvent target="swf1.content.document.btn2" localX="2" localY="5" />
+                <DispatchMouseEvent type="mouseDown" target="swf1.content.document.container_dividedbox"
+                    localX="150" localY="28" waitTarget="swf1.content.document.container_dividedbox" waitEvent="dividerPress"/>
+                <DispatchMouseEvent type="mouseMove" target="swf1.content.document.container_dividedbox" localX="150" localY="37" buttonDown="true" waitTarget="swf1.content.document.container_dividedbox" waitEvent="dividerDrag"/>
+                <CompareBitmap url="../ManagerTests/baselines/dividedbox_cursor_remote.png" target="swf1.content.document.container_dividedbox" timeout="2500" />
+            </body>
+        </TestCase>
+        <TestCase testID="MP_CursorManager_DividedBox_compatibility" keywords="[DividedBox, MarshallPlan, Managers, CursorManager, SetCursor]" description="Set the cursor to a custom image.">
+            <setup>
+               <ResetComponent target="ta1" className="mx.controls.TextInput" waitTarget="ta1" 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" />
+               <RunCode code="ResetCursorManager();" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+               <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+               <SetProperty target="swf1" propertyName="source" value="assets/MP_CursorManager_Child_WithControls.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.swf1.content.document.ResetCursorManager();" />
+                <DispatchMouseEvent type="mouseDown" target="swf1.content.document.container_dividedbox"
+                    localX="150" localY="28" waitTarget="swf1.content.document.container_dividedbox" waitEvent="mouseDown"/>
+                <DispatchMouseEvent type="mouseMove" target="swf1.content.document.container_dividedbox" localX="152" localY="35" buttonDown="true"
+                    waitEvent="mouseMove" waitTarget="swf1.content.document.container_dividedbox" />
+                <CompareBitmap url="../ManagerTests/baselines/dividedbox_cursor_compatibility.png" target="swf1.content.document.container_dividedbox" timeout="2500" />
+            </body>
+        </TestCase>
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_CursorManager_Tests.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_CursorManager_Tests.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_CursorManager_Tests.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_CursorManager_Tests.sh Mon Aug  6 20:20:08 2012
@@ -0,0 +1,32 @@
+#!/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 CursorManager compatible sub application SWFs..."
+
+cd ../SWFs/assets
+
+if (! [ -e MP_CursorManager_Child.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_CursorManager_Child.mxml
+fi
+
+if (! [ -e MP_CursorManager_Child_WithControls.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_CursorManager_Child_WithControls.mxml
+fi

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

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_DragManager_Compatibility_Tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_DragManager_Compatibility_Tests.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_DragManager_Compatibility_Tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_DragManager_Compatibility_Tests.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,179 @@
+<?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_DragManager_Main2.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="assets/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="assets/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="200" />
+			  	<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="assets/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="200" />
+                <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>
+	    <TestCase testID="DragManager_CustomDrag_Compatible" description="Test calling doDrag in a compatible application."
+		  keywords="[Marshall Plan, DragManager, doDrag]">
+			<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="loadForCompatibility" value="true" />
+			   <SetProperty target="swf2" propertyName="source" value="assets/DragMXMLComp.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"/>
+                <DispatchMouseEvent target="swf2.content.document.comp" type="mouseMove" localX="20" localY="11" />
+				<DispatchMouseEvent target="swf2.content.document.comp" type="mouseDown" localX="20" localY="11" buttonDown="true" />
+ 				<DispatchMouseEvent target="swf2.content.document.comp" type="mouseMove" buttonDown="true" localX="32" localY="21"
+					waitTarget="swf2.content.document.v1" waitEvent="dragEnter" />
+ 				<DispatchMouseEvent target="swf2.content.document.comp" type="mouseMove" buttonDown="true" localX="45" localY="35"
+									waitTarget="swf2.content.info().currentDomain.getDefinition(mx.managers::DragManager).mx_internal:dragProxy" waitEvent="move"/>
+ 				<DispatchMouseEvent target="swf2.content.document.comp" type="mouseUp" localX="45" localY="35"
+				    waitEvent="dragDrop" waitTarget="swf2.content.document.v1"/>
+ 				<AssertPropertyValue target="swf2.content.document.comp" propertyName="x" value="26" />
+				<AssertPropertyValue target="swf2.content.document.comp" propertyName="y" value="25" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_DragManager_Compatibility_Tests.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_DragManager_Compatibility_Tests.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_DragManager_Compatibility_Tests.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_DragManager_Compatibility_Tests.sh Mon Aug  6 20:20:08 2012
@@ -0,0 +1,37 @@
+#!/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 DragManager compatible sub application SWFs..."
+
+cd ../SWFs/assets
+
+if (! [ -e DragMXMLComp_remote.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 DragMXMLComp.mxml
+fi
+
+if (! [ -e MP_DragManager_Remote.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
+
+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/MP_DragManager_Compatibility_Tests.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_DragManager_Tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_DragManager_Tests.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_DragManager_Tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_DragManager_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_DragManager_Main.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>
+<!-- Pauses necessary in this test because the dragProxy is no longer moving in an untrusted child scenario, so
+		   there are no events to listen to -->
+
+	<testCases>
+	    <TestCase testID="DragManager_DragWithinSubApp" description="Test dragging within a loaded sub app"
+		  keywords="[Marshall Plan, DragManager]">
+			<setup>
+			   <SetProperty target="swfLoader1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swfLoader1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swfLoader1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swfLoader1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swfLoader1" propertyName="source" value="assets/MP_DragManager_Events.swf" waitTarget="swfLoader1" waitEvent="updateComplete"/>
+			   <SetProperty target="swfLoader1" propertyName="autoLoad" value="true" waitTarget="swfLoader1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swfLoader1.content" waitEvent="applicationComplete"/>
+                <DispatchMouseEvent target="swfLoader1.content.document.firstList" type="mouseMove" localX="20" localY="61" />
+				<DispatchMouseEvent target="swfLoader1.content.document.firstList" type="mouseDown" localX="20" localY="61" buttonDown="true" />
+ 				<DispatchMouseEvent target="swfLoader1.content.document.firstList" type="mouseMove" buttonDown="true" localX="12" localY="61"
+									waitTarget="swfLoader1.content.document.firstList" waitEvent="dragStart" />
+ 				<DispatchMouseEvent target="swfLoader1" type="mouseMove" buttonDown="true" localX="70" localY="85"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+ 				<DispatchMouseEvent target="swfLoader1" type="mouseMove" buttonDown="true" localX="120" localY="90"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="swfLoader1" type="mouseMove" buttonDown="true" localX="200" localY="91"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="swfLoader1" type="mouseMove" buttonDown="true" localX="260" localY="92"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="swfLoader1" type="mouseMove" buttonDown="true" localX="300" localY="93"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+                <DispatchMouseEvent target="swfLoader1" type="mouseMove" buttonDown="true" localX="345" localY="95"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+ 				<AssertEvent target="swfLoader1.content.document.secondList" eventName="dragEnter" eventClass="mx.events::DragEvent" />
+				<DispatchMouseEvent target="swfLoader1" type="mouseUp" localX="345" localY="95"
+									waitTarget="swfLoader1.content.document.secondList" waitEvent="dragDrop" />
+				<AssertEvent target="swfLoader1.content.document.firstList" eventName="dragComplete" eventClass="mx.events::DragEvent" />
+				<AssertPropertyValue target="swfLoader1.content.document.secondList.dataProvider" propertyName="length" value="1" />
+			</body>
+		</TestCase>
+	    <TestCase testID="DragManager_DragMainToSubApp" description="Test dragging from the main app to the loaded sub app"
+		  keywords="[Marshall Plan, DragManager]">
+			<setup>
+			   <ResetComponent target="dg" className="comps.DGComp" waitEvent="updateComplete" waitTarget="dg" />
+               <SetProperty target="swfLoader1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swfLoader1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swfLoader1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swfLoader1" propertyName="autoLoad" value="false" />
+			   <SetProperty target="swfLoader1" propertyName="source" value="assets/MP_DragManager_Events.swf" waitTarget="swfLoader1" waitEvent="updateComplete"/>
+			   <SetProperty target="swfLoader1" propertyName="autoLoad" value="true" waitTarget="swfLoader1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swfLoader1.content" waitEvent="applicationComplete"/>
+                <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="225"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="370" stageY="240"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+ 				<AssertEvent target="swfLoader1.content.document.secondList" eventName="dragEnter" eventClass="mx.events::DragEvent" />
+				<DispatchMouseEvent target="stage" type="mouseUp" stageX="370" stageY="240"
+									waitTarget="swfLoader1.content.document.secondList" waitEvent="dragDrop" />
+				<AssertEvent target="dg" eventName="dragComplete" eventClass="mx.events::DragEvent" />
+				<AssertPropertyValue target="swfLoader1.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]">
+			<setup>
+			   <ResetComponent target="dg" className="comps.DGComp" waitEvent="updateComplete" waitTarget="dg" />
+               <SetProperty target="swfLoader1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swfLoader1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swfLoader1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swfLoader1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swfLoader1" propertyName="source" value="assets/MP_DragManager_Events.swf" waitTarget="swfLoader1" waitEvent="updateComplete"/>
+			   <SetProperty target="swfLoader1" propertyName="autoLoad" value="true" waitTarget="swfLoader1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swfLoader1.content" waitEvent="applicationComplete"/>
+                <DispatchMouseEvent target="swfLoader1.content.document.firstList" type="mouseMove" localX="20" localY="61" />
+				<DispatchMouseEvent target="swfLoader1.content.document.firstList" type="mouseDown" localX="20" localY="61" buttonDown="true" />
+ 				<DispatchMouseEvent target="swfLoader1.content.document.firstList" type="mouseMove" buttonDown="true" localX="12" localY="61"
+									waitTarget="swfLoader1.content.document.firstList" waitEvent="dragStart" />
+ 				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="110" stageY="250"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+ 				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="120" stageY="235"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="125" stageY="214"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="135" stageY="175"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<AssertEvent target="dg" eventName="dragEnter" eventClass="mx.events::DragEvent" />
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="148" stageY="145"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="152" stageY="120"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+ 				<DispatchMouseEvent target="stage" type="mouseUp" stageX="152" stageY="120"
+									waitTarget="dg" waitEvent="dragDrop" />
+				<AssertEvent target="swfLoader1.content.document.firstList" eventName="dragComplete" eventClass="mx.events::DragEvent" />
+				<AssertPropertyValue target="dg.dataProvider" propertyName="length" value="6" />
+			</body>
+		</TestCase>
+	    <TestCase testID="DragManager_CustomDrag_Trusted" description="Test calling doDrag in a trusted application."
+		  keywords="[Marshall Plan, DragManager, doDrag]">
+			<setup>
+			   <ResetComponent target="dg" className="comps.DGComp" waitEvent="updateComplete" waitTarget="dg" />
+               <SetProperty target="swfLoader1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swfLoader1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swfLoader1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swfLoader1" propertyName="autoLoad" value="false" />
+			   <SetProperty target="swfLoader1" propertyName="loadForCompatibility" value="false" />
+			   <SetProperty target="swfLoader1" propertyName="source" value="assets/DragMXMLComp.swf" waitTarget="swfLoader1" waitEvent="updateComplete"/>
+			   <SetProperty target="swfLoader1" propertyName="autoLoad" value="true" waitTarget="swfLoader1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swfLoader1.content" waitEvent="applicationComplete"/>
+                <DispatchMouseEvent target="swfLoader1.content.document.comp" type="mouseMove" localX="20" localY="11" />
+                <DispatchMouseEvent target="swfLoader1.content.document.comp" type="mouseDown" localX="20" localY="11" buttonDown="true" />
+ 				<DispatchMouseEvent target="swfLoader1.content.document.comp" type="mouseMove" buttonDown="true" localX="32" localY="21"
+					waitTarget="swfLoader1.content.document.v1" waitEvent="dragEnter" />
+				<DispatchMouseEvent target="swfLoader1.content.document.comp" type="mouseMove" buttonDown="true" localX="45" localY="35"
+									waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+ 				<DispatchMouseEvent target="swfLoader1.content.document.comp" type="mouseUp" localX="45" localY="35"
+				    waitEvent="dragDrop" waitTarget="swfLoader1.content.document.v1"/>
+ 				<AssertPropertyValue target="swfLoader1.content.document.comp" propertyName="x" value="26" />
+				<AssertPropertyValue target="swfLoader1.content.document.comp" propertyName="y" value="25" />
+			</body>
+		</TestCase>
+	    <TestCase testID="DragManager_DragWithinSubApp_remote" description="Test dragging within a loaded sub app when the subapp is untrusted"
+		  keywords="[Marshall Plan, DragManager]">
+			<setup>
+			   <SetProperty target="swfLoader1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swfLoader1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swfLoader1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swfLoader1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swfLoader1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_DragManager_Events.swf?167_6?167_6?167_6" waitTarget="swfLoader1" waitEvent="updateComplete"/>
+			   <SetProperty target="swfLoader1" propertyName="autoLoad" value="true" waitTarget="swfLoader1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swfLoader1" />
+			  	<DispatchMouseEvent target="swfLoader1.content.document.firstList" type="mouseMove" localX="20" localY="61" />
+				<DispatchMouseEvent target="swfLoader1.content.document.firstList" type="mouseDown" localX="20" localY="61" buttonDown="true" />
+ 				<DispatchMouseEvent target="swfLoader1.content.document.firstList" type="mouseMove" buttonDown="true" localX="12" localY="61"
+					waitTarget="swfLoader1.content.document.firstList" waitEvent="dragStart" />
+				<DispatchMouseEvent target="swfLoader1" type="mouseMove" buttonDown="true" localX="70" localY="85"
+					waitTarget="swfLoader1.content.info().currentDomain.getDefinition(mx.managers::DragManager).mx_internal:dragProxy" waitEvent="move" />
+				<DispatchMouseEvent target="swfLoader1" type="mouseMove" buttonDown="true" localX="120" localY="90"
+					waitTarget="swfLoader1.content.info().currentDomain.getDefinition(mx.managers::DragManager).mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="swfLoader1" type="mouseMove" buttonDown="true" localX="200" localY="91"
+					waitTarget="swfLoader1.content.info().currentDomain.getDefinition(mx.managers::DragManager).mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="swfLoader1" type="mouseMove" buttonDown="true" localX="260" localY="92"
+					waitTarget="swfLoader1.content.info().currentDomain.getDefinition(mx.managers::DragManager).mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="swfLoader1" type="mouseMove" buttonDown="true" localX="300" localY="93"
+					waitTarget="swfLoader1.content.info().currentDomain.getDefinition(mx.managers::DragManager).mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="swfLoader1" type="mouseMove" buttonDown="true" localX="345" localY="95"
+					waitTarget="swfLoader1.content.info().currentDomain.getDefinition(mx.managers::DragManager).mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="swfLoader1" type="mouseUp" localX="345" localY="95"
+					waitTarget="swfLoader1.content.document.secondList" waitEvent="dragDrop" />
+				<AssertEvent target="swfLoader1.content.document.firstList" eventName="dragComplete" eventClass="mx.events::DragEvent" />
+				<AssertPropertyValue target="swfLoader1.content.document.secondList.dataProvider" propertyName="length" value="1" />
+			</body>
+		</TestCase>
+	    <TestCase testID="DragManager_DragMainToSubApp_remote" description="Test dragging from the main app to the loaded sub app"
+		  keywords="[Marshall Plan, DragManager]">
+			<setup>
+			   <SetProperty target="swfLoader1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swfLoader1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swfLoader1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swfLoader1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swfLoader1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_DragManager_Events.swf?201_6?201_6?201_6" waitTarget="swfLoader1" waitEvent="updateComplete"/>
+			   <SetProperty target="swfLoader1" propertyName="autoLoad" value="true" waitTarget="swfLoader1" waitEvent="complete"/>
+			</setup>
+			<body>
+                <WaitForSandboxApp target="swfLoader1" />
+			  	<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="25" localY="61"
+					waitTarget="dg" waitEvent="dragStart" />
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="150" stageY="175"
+					waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move" />
+ 				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="160" stageY="189"
+					waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+ 				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="170" stageY="199"
+					waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+ 				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="180" stageY="210"
+					waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+ 				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="225" stageY="220"
+					waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="285" stageY="230"
+					waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="305" stageY="230"
+					waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="330" stageY="240"
+					waitTarget="mx.managers::DragManager.mx_internal:dragProxy" waitEvent="move"/>
+				<DispatchMouseEvent target="stage" type="mouseUp" stageX="370" stageY="240" />
+				<AssertPropertyValue target="swfLoader1.content.document.secondList.dataProvider" propertyName="length" value="0" />
+			</body>
+		</TestCase>
+		<TestCase testID="DragManager_DragSubAppToMain_remote" description="Test dragging from the sub app to the main app"
+		  keywords="[Marshall Plan, DragManager]">
+ 			<setup>
+			   <SetProperty target="swfLoader1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swfLoader1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swfLoader1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swfLoader1" propertyName="autoLoad" value="false" />
+			   <SetProperty target="swfLoader1" propertyName="loadForCompatibility" value="false" />
+		   	   <SetProperty target="swfLoader1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_DragManager_Events.swf?238_6?238_6?238_6" waitTarget="swfLoader1" waitEvent="updateComplete"/>
+			   <SetProperty target="swfLoader1" propertyName="autoLoad" value="true" waitTarget="swfLoader1" waitEvent="complete"/>
+			</setup>
+			<body>
+                <WaitForSandboxApp target="swfLoader1" />
+			  	<DispatchMouseEvent target="swfLoader1.content.document.firstList" type="mouseMove" localX="20" localY="61" />
+ 				<DispatchMouseEvent target="swfLoader1.content.document.firstList" type="mouseDown" localX="20" localY="61" buttonDown="true" />
+  				<DispatchMouseEvent target="swfLoader1.content.document.firstList" type="mouseMove" buttonDown="true" localX="12" localY="61"
+ 					waitTarget="swfLoader1.content.document.firstList" waitEvent="dragStart" />
+  				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="114" stageY="250"
+ 					waitTarget="swfLoader1.content.info().currentDomain.getDefinition(mx.managers::DragManager).mx_internal:dragProxy" waitEvent="move"/>
+  				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="120" stageY="235"
+ 					waitTarget="swfLoader1.content.info().currentDomain.getDefinition(mx.managers::DragManager).mx_internal:dragProxy" waitEvent="move"/>
+ 				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="125" stageY="214" />
+ 				<Pause timeout="100" />
+ 				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="135" stageY="175"/>
+ 				<Pause timeout="100" />
+ 				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="148" stageY="145" />
+ 				<Pause timeout="100" />
+ 				<DispatchMouseEvent target="stage" type="mouseMove" buttonDown="true" stageX="152" stageY="120" />
+ 				<Pause timeout="100" />
+ 				<DispatchMouseEvent target="stage" type="mouseUp" stageX="152" stageY="120" />
+ 				<AssertPropertyValue target="dg.dataProvider" propertyName="length" value="5" />
+ 			</body>
+		</TestCase>
+	    <TestCase testID="DragManager_CustomDrag_UnTrusted" description="Test calling doDrag in a untrusted application."
+		  keywords="[Marshall Plan, DragManager, doDrag]">
+			<setup>
+			   <ResetComponent target="dg" className="comps.DGComp" waitEvent="updateComplete" waitTarget="dg" />
+               <SetProperty target="swfLoader1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swfLoader1" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swfLoader1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swfLoader1" propertyName="autoLoad" value="false" />
+			   <SetProperty target="swfLoader1" propertyName="loadForCompatibility" value="false" />
+			   <SetProperty target="swfLoader1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/DragMXMLComp.swf?272_6?272_6?272_6" waitTarget="swfLoader1" waitEvent="updateComplete"/>
+			   <SetProperty target="swfLoader1" propertyName="autoLoad" value="true" waitTarget="swfLoader1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swfLoader1" />
+			  	<DispatchMouseEvent target="swfLoader1.content.document.comp" type="mouseMove" localX="20" localY="11" />
+				<DispatchMouseEvent target="swfLoader1.content.document.comp" type="mouseDown" localX="20" localY="11" buttonDown="true" />
+ 				<DispatchMouseEvent target="swfLoader1.content.document.comp" type="mouseMove" buttonDown="true" localX="32" localY="21"
+					waitTarget="swfLoader1.content.document.v1" waitEvent="dragEnter" />
+ 				<DispatchMouseEvent target="swfLoader1.content.document.comp" type="mouseMove" buttonDown="true" localX="45" localY="35"
+									waitTarget="swfLoader1.content.info().currentDomain.getDefinition(mx.managers::DragManager).mx_internal:dragProxy" waitEvent="move"/>
+ 				<DispatchMouseEvent target="swfLoader1.content.document.comp" type="mouseUp" localX="45" localY="35"
+				    waitEvent="dragDrop" waitTarget="swfLoader1.content.document.v1"/>
+ 				<AssertPropertyValue target="swfLoader1.content.document.comp" propertyName="x" value="26" />
+				<AssertPropertyValue target="swfLoader1.content.document.comp" propertyName="y" value="25" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_DragManager_Tests.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_DragManager_Tests.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_DragManager_Tests.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/MP_DragManager_Tests.sh Mon Aug  6 20:20:08 2012
@@ -0,0 +1,35 @@
+#!/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
+
+
+echo "Compiling DragManager sub application SWFs..."
+$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
+$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 DragMXMLComp.mxml
+
+if (! [ -e DragMXMLComp_remote.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 DragMXMLComp.mxml
+fi
+
+if (! [ -e MP_DragManager_Remote.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/MP_DragManager_Tests.sh
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message