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 [8/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/bootstrap_PopUpManager_Tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_PopUpManager_Tests.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_PopUpManager_Tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_PopUpManager_Tests.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,600 @@
+<?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_PopUpManager_Child.mxml">
+
+    <mx:Script>
+    <![CDATA[
+
+       import mx.managers.PopUpManager;
+       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;
+
+       public static function init(o:DisplayObject):void
+        {
+
+        }
+
+       public function closeAll():void
+       {
+          var temp:Number = application.parent.popUpChildren.numChildren;
+
+          if(application.parent.popUpChildren.numChildren > 1)
+          {
+               PopUpManager.removePopUp(UIComponent(application.parent.popUpChildren.getChildAt(1)));
+          }
+          else if(application.parent.popUpChildren.numChildren == 1)
+          {
+               PopUpManager.removePopUp(UIComponent(application.parent.popUpChildren.getChildAt(0)));
+          }
+       }
+
+    ]]>
+    </mx:Script>
+
+    <mx:Metadata>
+    <![CDATA[
+        [Mixin]
+    ]]>
+    </mx:Metadata>
+
+    <testCases>
+        <TestCase testID="MP_PopUpManager_centerPopUp_modal" description="Test the centerPopUp method for a modal popup" keywords="[centerPopUp, PopUpManager, Marshall Plan]">
+            <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" />
+               <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+               <SetProperty target="swf1" propertyName="source" value="MP_PopUpManager_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"/>
+                <ResetComponent target="swf1.content.document.modalCheckBox" className="mx.controls.CheckBox"
+                    waitEvent="updateComplete" waitTarget="swf1.content.document.modalCheckBox" />
+                <SetProperty propertyName="selected" value="true" target="swf1.content.document.modalCheckBox" waitEvent="updateComplete"
+                    waitTarget="swf1.content.document.modalCheckBox" />
+                <DispatchMouseClickEvent target="swf1.content.document.btn_openWindow4" localX="5" localY="5" waitTarget="swf1.content.document.iPopUp" waitEvent="updateComplete" />
+                <RunCode code="application.swf1.content.document.centerMyPopUp()" waitTarget="swf1.content.document.iPopUp" waitEvent="move" />
+                <AssertPropertyValue propertyName="x" target="swf1.content.document.iPopUp" value="150" />
+                <AssertPropertyValue propertyName="y" target="swf1.content.document.iPopUp" value="199" />
+            </body>
+        </TestCase>
+        <TestCase testID="MP_PopUpManager_centerPopUp_nonmodal" description="Test the centerPopUp method for a non-modal popup" keywords="[centerPopUp, PopUpManager, Marshall Plan]">
+            <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" />
+               <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+               <SetProperty target="swf1" propertyName="source" value="MP_PopUpManager_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"/>
+                <ResetComponent target="swf1.content.document.modalCheckBox" className="mx.controls.CheckBox"
+                    waitEvent="updateComplete" waitTarget="swf1.content.document.modalCheckBox" />
+                <DispatchMouseClickEvent target="swf1.content.document.btn_openWindow4" localX="5" localY="5" waitTarget="swf1.content.document.iPopUp" waitEvent="updateComplete" />
+                <DispatchMouseClickEvent target="swf1.content.document.btn_centerMyPopUp" localX="5" localY="5" waitTarget="swf1.content.document.iPopUp" waitEvent="move" />
+                <AssertPropertyValue propertyName="x" target="swf1.content.document.iPopUp" value="150" />
+                <AssertPropertyValue propertyName="y" target="swf1.content.document.iPopUp" value="199" />
+            </body>
+         </TestCase>
+         <TestCase testID="MP_PopUpManager_createPopUP_modal" description="Test the createPopUP method for a modal popup" keywords="[createPopUp, PopUpManager, Marshall Plan]">
+             <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" />
+               <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+               <SetProperty target="swf1" propertyName="source" value="MP_PopUpManager_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"/>
+                <ResetComponent target="swf1.content.document.modalCheckBox" className="mx.controls.CheckBox"
+                    waitEvent="updateComplete" waitTarget="swf1.content.document.modalCheckBox" />
+                <SetProperty propertyName="selected" value="true" target="swf1.content.document.modalCheckBox" waitEvent="updateComplete"
+                    waitTarget="swf1.content.document.modalCheckBox" />
+                <DispatchMouseClickEvent target="swf1.content.document.btn_openWindow4" localX="5" localY="5" waitTarget="swf1.content.document.iPopUp" waitEvent="updateComplete" />
+                <DispatchMouseClickEvent localX="400" localY="33" target="swf1" waitEvent="mouseDownOutside" waitTarget="swf1.content.document.iPopUp"/>
+                <DispatchKeyEvent char="Hello" />
+                <WaitForEffectsToEnd />
+                <AssertPropertyValue target="swf1.content.document.ta" propertyName="text" value="" />
+                <AssertPixelValue target="" x="2" y="2" value="0xFF0000" />
+                <AssertPixelValue target="" x="2" y="300" value="0x6E6E6E" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_PopUpManager_createPopUP_nonmodal" description="Test the createPopUP method for a nonmodal popup" keywords="[createPopUp, PopUpManager, Marshall Plan]">
+             <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" />
+               <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+               <SetProperty target="swf1" propertyName="source" value="MP_PopUpManager_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"/>
+                <ResetComponent target="swf1.content.document.modalCheckBox" className="mx.controls.CheckBox"
+                    waitEvent="updateComplete" waitTarget="swf1.content.document.modalCheckBox" />
+                <DispatchMouseClickEvent target="swf1.content.document.btn_openWindow4" localX="5" localY="5" waitTarget="swf1.content.document.iPopUp" waitEvent="updateComplete" />
+                <DispatchMouseClickEvent stageX="474" stageY="60" target="" waitEvent="focusIn" waitTarget="swf1.content.document.ta"/>
+                <DispatchKeyEvent char="Hello" />
+                <WaitForEffectsToEnd />
+                <AssertPropertyValue target="swf1.content.document.ta" propertyName="text" value="Hello" />
+                <AssertPixelValue target="" x="2" y="2" value="0xFF0000" />
+                <AssertPixelValue target="" x="2" y="300" value="0x000000" />
+             </body>
+          </TestCase>
+          <TestCase testID="MP_PopUpManager_addPopUp_modal" description="Test the addPopUp method for a modal popup" keywords="[addPopUp, PopUpManager, Marshall Plan]">
+              <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" />
+                 <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+                 <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+                 <SetProperty target="swf1" propertyName="source" value="MP_PopUpManager_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"/>
+                 <SetProperty propertyName="selected" value="true" target="swf1.content.document.modalCheckBox" waitEvent="updateComplete"
+                    waitTarget="swf1.content.document.modalCheckBox" />
+                 <DispatchMouseClickEvent target="swf1.content.document.btn_addWindow" localX="5" localY="5"
+                     waitTarget="swf1.content.document.iPanel" waitEvent="updateComplete" />
+                 <DispatchMouseClickEvent localX="400" localY="433" target="swf1" waitEvent="mouseDownOutside" waitTarget="swf1.content.document.iPanel"/>
+                 <DispatchKeyEvent char="Hello" />
+                 <WaitForEffectsToEnd />
+                 <AssertPropertyValue target="swf1.content.document.ta" propertyName="text" value="" />
+              </body>
+        </TestCase>
+        <TestCase testID="MP_PopUpManager_addPopUp_nonmodal" description="Test the addPopUp method for a non-modal popup" keywords="[addPopUp, PopUpManager, Marshall Plan]">
+              <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"/>
+                 <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+                 <Pause timeout="100" />
+                 <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+                 <SetProperty target="swf1" propertyName="source" value="MP_PopUpManager_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"/>
+                 <DispatchMouseClickEvent target="swf1.content.document.btn_addWindow" localX="5" localY="5"
+                     waitTarget="swf1.content.document.iPanel" waitEvent="updateComplete" />
+                 <DispatchMouseClickEvent stageX="474" stageY="60" target="" waitEvent="focusIn" waitTarget="swf1.content.document.ta"/>
+                 <DispatchKeyEvent char="Hello" waitTarget="swf1.content.document.ta" waitEvent="change" />
+                 <WaitForEffectsToEnd />
+                 <AssertPropertyValue target="swf1.content.document.ta" propertyName="text" value="Hello" />
+              </body>
+          </TestCase>
+          <TestCase testID="MP_PopUpManager_createPopUP_modal_remote" description="Test the createPopUP method for a modal popup" keywords="[createPopUp, PopUpManager, Marshall Plan]">
+             <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="complete"/>
+               <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+               <Pause timeout="100" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+               <SetProperty target="swf1" propertyName="source" value="http://localhost/MarshallPlan/SWFs/assets/MP_PopUpManager_Child.swf?191_15" waitTarget="swf1" waitEvent="updateComplete"  timeout="6000"/>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete" timeout="5000" />
+            </setup>
+            <body>
+                <WaitForSandboxApp target="swf1" />
+                <SetProperty propertyName="selected" value="true" target="swf1.content.document.modalCheckBox" waitEvent="updateComplete"
+                    waitTarget="swf1.content.document.modalCheckBox" />
+                <DispatchMouseClickEvent target="swf1.content.document.btn_openWindow4" localX="5" localY="5" waitTarget="swf1.content.document.iPopUp" waitEvent="updateComplete" />
+                <DispatchMouseClickEvent localX="400" localY="33" target="swf1" waitEvent="mouseDownOutside" waitTarget="swf1.content.document.iPopUp" timeout="4000"/>
+                <DispatchKeyEvent char="Hello" />
+                <WaitForEffectsToEnd />
+                <AssertPropertyValue target="swf1.content.document.ta" propertyName="text" value="" />
+                <AssertPixelValue target="swf1" y="10" x="50" value="0xFF0000" />
+                <AssertPixelValue target="" y="2" x="300" value="0x6E6E6E" />
+            </body>
+         </TestCase>
+         <TestCase testID="MP_PopUpManager_addPopUp_modal_remote" description="Test the addPopUp method for a modal popup" keywords="[addPopUp, PopUpManager, Marshall Plan]">
+              <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"/>
+                 <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+                 <Pause timeout="100" />
+                 <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+                 <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_PopUpManager_Child.swf?215_15?215_15?215_15" waitTarget="swf1" waitEvent="updateComplete"/>
+                 <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+              </setup>
+              <body>
+                 <WaitForSandboxApp target="swf1" />
+                 <SetProperty propertyName="selected" value="true" target="swf1.content.document.modalCheckBox" waitEvent="updateComplete"
+                    waitTarget="swf1.content.document.modalCheckBox" />
+                 <DispatchMouseClickEvent target="swf1.content.document.btn_addWindow" localX="5" localY="5"
+                     waitTarget="swf1.content.document.iPanel" waitEvent="updateComplete" />
+                 <DispatchMouseClickEvent localX="400" localY="33" target="swf1" waitEvent="mouseDownOutside" waitTarget="swf1.content.document.iPanel"/>
+                 <DispatchKeyEvent char="Hello" />
+                 <WaitForEffectsToEnd />
+                 <AssertPropertyValue target="swf1.content.document.ta" propertyName="text" value="" />
+              </body>
+        </TestCase>
+
+     <TestCase testID="MP_PopUpManager_createPopUP_nonmodal_remote" description="Test the createPopUP method for a modal popup" keywords="[createPopUp, PopUpManager, Marshall Plan]">
+             <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" />
+               <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/MP_PopUpManager_Child.swf?239_15?239_15?239_15" 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.btn_openWindow4" localX="5" localY="5" waitTarget="swf1.content.document.iPopUp" waitEvent="updateComplete" />
+                <DispatchMouseClickEvent stageX="474" stageY="60" target="" waitEvent="focusIn" waitTarget="swf1.content.document.ta"/>
+                <DispatchKeyEvent char="Hello" />
+                <WaitForEffectsToEnd />
+                <AssertPropertyValue target="swf1.content.document.ta" propertyName="text" value="Hello" />
+            </body>
+         </TestCase>
+        <TestCase testID="MP_PopUpManager_addPopUp_nonmodal_remote" description="Test the addPopUp method for a non-modal popup" keywords="[addPopUp, PopUpManager, Marshall Plan]">
+              <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" />
+                 <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/MP_PopUpManager_Child.swf?259_15?259_15?259_15" 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.btn_addWindow" localX="5" localY="5"
+                     waitTarget="swf1.content.document.iPanel" waitEvent="updateComplete" />
+                 <DispatchMouseClickEvent stageX="474" stageY="60" target="" waitEvent="focusIn" waitTarget="swf1.content.document.ta"/>
+                 <DispatchKeyEvent char="Hello" waitTarget="swf1.content.document.ta" waitEvent="change" />
+                 <WaitForEffectsToEnd />
+                 <AssertPropertyValue target="swf1.content.document.ta" propertyName="text" value="Hello" />
+              </body>
+          </TestCase>
+        <TestCase testID="MP_PopUpManager_centerPopUp_nonmodal_remote" description="Test the centerPopUp method for a non-modal popup" keywords="[centerPopUp, PopUpManager, Marshall Plan]">
+            <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" />
+               <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/MP_PopUpManager_Child.swf?280_15?280_15?280_15" 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.btn_addWindow" localX="5" localY="5" waitTarget="swf1.content.document.iPanel" waitEvent="updateComplete" />
+                <Pause timeout="200" />
+                <DispatchMouseClickEvent target="swf1.content.document.iPanel.getChildAt(1)" localX="8" localY="10"  waitTarget="swf1.content.document.iPanel" waitEvent="move" />
+                <DispatchMouseClickEvent localX="400" localY="33" target="swf1" />
+                <AssertPropertyValue propertyName="x" target="swf1.content.document.iPanel" value="290" />
+                <AssertPropertyValue propertyName="y" target="swf1.content.document.iPanel" value="225" />
+            </body>
+         </TestCase>
+          <TestCase testID="MP_PopUpManager_centerPopUp_modal_remote" description="Test the centerPopUp method for a modal popup" keywords="[centerPopUp, PopUpManager, Marshall Plan]">
+            <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" />
+               <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/MP_PopUpManager_Child.swf?301_15?301_15?301_15" waitTarget="swf1" waitEvent="updateComplete"/>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+            </setup>
+            <body>
+                <WaitForSandboxApp target="swf1" />
+                <SetProperty propertyName="selected" target="swf1.content.document.modalCheckBox" />
+                <DispatchMouseClickEvent target="swf1.content.document.btn_openWindow4" localX="5" localY="5" waitTarget="swf1.content.document.iPopUp" waitEvent="updateComplete" />
+                <Pause timeout="200" />
+                <DispatchMouseClickEvent target="swf1" localX="40" localY="210" waitTarget="swf1.content.document.iPopUp" waitEvent="move" />
+                <DispatchMouseClickEvent localX="400" localY="33" target="swf1" />
+                <AssertPropertyValue propertyName="x" target="swf1.content.document.iPopUp" value="200" />
+                <AssertPropertyValue propertyName="y" target="swf1.content.document.iPopUp" value="175" />
+            </body>
+        </TestCase>
+        <TestCase testID="MP_PopUpManager_createPopUP_modal_comp" description="Test the createPopUP method for a modal popup" keywords="[createPopUp, PopUpManager, Marshall Plan]">
+             <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" />
+               <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+               <SetProperty target="swf1" propertyName="source" value="MP_PopUpManager_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"/>
+                <ResetComponent target="swf1.content.document.modalCheckBox" className="mx.controls.CheckBox"
+                    waitEvent="updateComplete" waitTarget="swf1.content.document.modalCheckBox" />
+                <SetProperty propertyName="selected" value="true" target="swf1.content.document.modalCheckBox" waitEvent="updateComplete"
+                    waitTarget="swf1.content.document.modalCheckBox" />
+                <DispatchMouseClickEvent target="swf1.content.document.btn_openWindow3" localX="5" localY="5" waitTarget="swf1.content.document.iPopUp" waitEvent="updateComplete" />
+                <DispatchMouseClickEvent localX="400" localY="33" target="swf1" waitEvent="mouseDownOutside" waitTarget="swf1.content.document.iPopUp"/>
+                <DispatchKeyEvent char="Hello" />
+                <Pause timeout="200" />
+                <AssertPropertyValue target="swf1.content.document.ta" propertyName="text" value="" />
+                <AssertPixelValue target="" x="2" y="2" value="0xFF0000" />
+                <AssertPixelValue target="" x="2" y="300" value="0x6E6E6E" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_PopUpManager_createPopUP_nonmodal_comp" description="Test the createPopUP method for a nonmodal popup" keywords="[createPopUp, PopUpManager, Marshall Plan]">
+             <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"/>
+               <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+               <Pause timeout="100" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+               <SetProperty target="swf1" propertyName="source" value="MP_PopUpManager_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"/>
+                <ResetComponent target="swf1.content.document.modalCheckBox" className="mx.controls.CheckBox"
+                    waitEvent="updateComplete" waitTarget="swf1.content.document.modalCheckBox" />
+                <DispatchMouseClickEvent target="swf1.content.document.btn_openWindow3" localX="5" localY="5" waitTarget="swf1.content.document.iPopUp" waitEvent="updateComplete" />
+                <DispatchMouseClickEvent stageX="474" stageY="60" target="" waitEvent="focusIn" waitTarget="swf1.content.document.ta"/>
+                <DispatchKeyEvent char="Hello" />
+                <Pause timeout="200" />
+                <AssertPropertyValue target="swf1.content.document.ta" propertyName="text" value="Hello" />
+                <AssertPixelValue target="" x="2" y="2" value="0xFF0000" />
+                <AssertPixelValue target="" x="2" y="300" value="0x000000" />
+             </body>
+          </TestCase>
+          <TestCase testID="MP_PopUpManager_addPopUp_modal_comp" description="Test the addPopUp method for a modal popup" keywords="[addPopUp, PopUpManager, Marshall Plan]">
+              <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" />
+                 <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+                 <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+                 <SetProperty target="swf1" propertyName="source" value="MP_PopUpManager_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"/>
+                 <SetProperty propertyName="selected" value="true" target="swf1.content.document.modalCheckBox" waitEvent="updateComplete"
+                    waitTarget="swf1.content.document.modalCheckBox" />
+                 <DispatchMouseClickEvent target="swf1.content.document.btn_addWindow" localX="5" localY="5"
+                     waitTarget="swf1.content.document.iPanel" waitEvent="updateComplete" />
+                 <DispatchMouseClickEvent localX="400" localY="433" target="swf1" waitEvent="mouseDownOutside" waitTarget="swf1.content.document.iPanel"/>
+                 <DispatchKeyEvent char="Hello" />
+                 <WaitForEffectsToEnd />
+                 <AssertPropertyValue target="swf1.content.document.ta" propertyName="text" value="" />
+              </body>
+        </TestCase>
+        <TestCase testID="MP_PopUpManager_addPopUp_nonmodal_comp" description="Test the addPopUp method for a non-modal popup" keywords="[addPopUp, PopUpManager, Marshall Plan]">
+              <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" />
+                 <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+                 <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+                 <SetProperty target="swf1" propertyName="source" value="MP_PopUpManager_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"/>
+                 <DispatchMouseClickEvent target="swf1.content.document.btn_addWindow" localX="5" localY="5"
+                     waitTarget="swf1.content.document.iPanel" waitEvent="updateComplete" />
+                 <DispatchMouseClickEvent stageX="474" stageY="60" target="" waitEvent="focusIn" waitTarget="swf1.content.document.ta"/>
+                 <DispatchKeyEvent char="Hello" waitTarget="swf1.content.document.ta" waitEvent="change" />
+                 <WaitForEffectsToEnd />
+                 <AssertPropertyValue target="swf1.content.document.ta" propertyName="text" value="Hello" />
+              </body>
+          </TestCase>
+          <TestCase testID="MP_PopUpManager_addPopUp_modal_remote_comp" description="Test the addPopUp method for a modal popup" keywords="[addPopUp, PopUpManager, Marshall Plan]">
+              <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" />
+                 <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/MP_PopUpManager_Child.swf?417_15?417_15?417_15" waitTarget="swf1" waitEvent="updateComplete"/>
+                 <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+              </setup>
+              <body>
+                 <WaitForSandboxApp target="swf1" />
+                 <SetProperty propertyName="selected" value="true" target="swf1.content.document.modalCheckBox" waitEvent="updateComplete"
+                    waitTarget="swf1.content.document.modalCheckBox" />
+                 <DispatchMouseClickEvent target="swf1.content.document.btn_addWindow" localX="5" localY="5"
+                     waitTarget="swf1.content.document.iPanel" waitEvent="updateComplete" />
+                 <DispatchMouseClickEvent localX="400" localY="33" target="swf1" waitEvent="mouseDownOutside" waitTarget="swf1.content.document.iPanel"/>
+                 <DispatchKeyEvent char="Hello" />
+                 <WaitForEffectsToEnd />
+                 <AssertPropertyValue target="swf1.content.document.ta" propertyName="text" value="" />
+              </body>
+        </TestCase>
+        <TestCase testID="MP_PopUpManager_addPopUp_nonmodal_remote_comp" description="Test the addPopUp method for a non-modal popup" keywords="[addPopUp, PopUpManager, Marshall Plan]">
+              <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" />
+                 <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/MP_PopUpManager_Child.swf?440_15?440_15?440_15" 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.btn_addWindow" localX="5" localY="5"
+                     waitTarget="swf1.content.document.iPanel" waitEvent="updateComplete" />
+                 <DispatchMouseClickEvent stageX="474" stageY="60" target="" waitEvent="focusIn" waitTarget="swf1.content.document.ta"/>
+                 <DispatchKeyEvent char="Hello" waitTarget="swf1.content.document.ta" waitEvent="change" />
+                 <WaitForEffectsToEnd />
+                 <AssertPropertyValue target="swf1.content.document.ta" propertyName="text" value="Hello" />
+              </body>
+          </TestCase>
+        <TestCase testID="MP_PopUpManager_centerPopUp_nonmodal_remote_comp" description="Test the centerPopUp method for a non-modal popup" keywords="[centerPopUp, PopUpManager, Marshall Plan]">
+            <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" />
+               <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/MP_PopUpManager_Child.swf?461_15?461_15?461_15" 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.btn_addWindow" localX="5" localY="5" waitTarget="swf1.content.document.iPanel" waitEvent="updateComplete" />
+                <Pause timeout="200" />
+                <DispatchMouseClickEvent target="swf1.content.document.iPanel.getChildAt(1)" localX="8" localY="10"  waitTarget="swf1.content.document.iPanel" waitEvent="move" />
+                <DispatchMouseClickEvent localX="400" localY="33" target="swf1" />
+                <AssertPropertyValue propertyName="x" target="swf1.content.document.iPanel" value="290" />
+                <AssertPropertyValue propertyName="y" target="swf1.content.document.iPanel" value="225" />
+            </body>
+         </TestCase>
+          <TestCase testID="MP_PopUpManager_centerPopUp_modal_remote_comp" description="Test the centerPopUp method for a modal popup" keywords="[centerPopUp, PopUpManager, Marshall Plan]">
+            <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" />
+               <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/MP_PopUpManager_Child.swf?482_15?482_15?482_15" waitTarget="swf1" waitEvent="updateComplete"/>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+            </setup>
+            <body>
+                <WaitForSandboxApp target="swf1" />
+                <SetProperty propertyName="selected" target="swf1.content.document.modalCheckBox" />
+                <DispatchMouseClickEvent target="swf1.content.document.btn_openWindow4" localX="5" localY="5" waitTarget="swf1.content.document.iPopUp" waitEvent="updateComplete" />
+                <Pause timeout="200" />
+                <DispatchMouseClickEvent target="swf1" localX="40" localY="210" waitTarget="swf1.content.document.iPopUp" waitEvent="move" />
+                <DispatchMouseClickEvent localX="400" localY="33" target="swf1" />
+                <AssertPropertyValue propertyName="x" target="swf1.content.document.iPopUp" value="200" />
+                <AssertPropertyValue propertyName="y" target="swf1.content.document.iPopUp" value="175" />
+            </body>
+        </TestCase>
+        <TestCase testID="MP_PopUpManager_createPopUP_nonmodal_remote_comp" description="Test the createPopUP method for a modal popup" keywords="[createPopUp, PopUpManager, Marshall Plan]">
+             <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" />
+               <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/MP_PopUpManager_Child.swf?504_15?504_15?504_15" 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.btn_openWindow4" localX="5" localY="5" waitTarget="swf1.content.document.iPopUp" waitEvent="updateComplete" />
+                <DispatchMouseClickEvent stageX="474" stageY="60" target="" waitEvent="focusIn" waitTarget="swf1.content.document.ta"/>
+                <DispatchKeyEvent char="Hello" />
+                <WaitForEffectsToEnd />
+                <AssertPropertyValue target="swf1.content.document.ta" propertyName="text" value="Hello" />
+            </body>
+         </TestCase>
+          <TestCase testID="MP_PopUpManager_dragTrustedPopUp" description="Test that you can drag a trusted sub app anywhere" keywords="[Drag, PopUpManager, Marshall Plan]">
+              <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" />
+                 <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+                 <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+                 <SetProperty target="swf1" propertyName="source" value="MP_PopUpManager_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"/>
+                 <DispatchMouseClickEvent target="swf1.content.document.btn_addWindow" localX="5" localY="5"
+                     waitTarget="swf1.content.document.iPanel" waitEvent="updateComplete" />
+                 <WaitForEffectsToEnd />
+                 <Pause timeout="500" />
+                 <DispatchMouseEvent target="swf1.content.document.iPanel" type="mouseMove" localX="10" localY="8" />
+                 <DispatchMouseEvent target="swf1.content.document.iPanel" type="mouseDown" localX="10" localY="8" buttonDown="true" />
+                 <DispatchMouseEvent target="swf1.content.document.iPanel" type="mouseMove" buttonDown="true" stageX="50" stageY="100"
+                     waitTarget="swf1.content.document.iPanel" waitEvent="move" />
+                 <DispatchMouseEvent target="swf1.content.document.iPanel" type="mouseMove" buttonDown="true" stageX="40" stageY="100"
+                     waitTarget="swf1.content.document.iPanel" waitEvent="move" />
+                 <DispatchMouseEvent target="swf1.content.document.iPanel" type="mouseMove" buttonDown="true" stageX="35" stageY="102"
+                     waitTarget="swf1.content.document.iPanel" waitEvent="move" />
+                 <DispatchMouseEvent target="swf1.content.document.iPanel" type="mouseMove" buttonDown="true" stageX="30" stageY="105"
+                     waitTarget="swf1.content.document.iPanel" waitEvent="move" />
+                 <DispatchMouseEvent target="swf1.content.document.iPanel" type="mouseMove" buttonDown="true" stageX="25" stageY="110"
+                     waitTarget="swf1.content.document.iPanel" waitEvent="move" />
+                 <CompareBitmap url="../../ManagerTests/baselines/b_drag_trusted_popup.png" target="swf1.content.document.iPanel" timeout="2500" />
+              </body>
+          </TestCase>
+          <TestCase testID="MP_PopUpManager_dragUnTrustedPopUp" description="Test that you can drag a trusted sub app anywhere" keywords="[Drag, PopUpManager, Marshall Plan]">
+              <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" />
+                 <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/MP_PopUpManager_Child.swf?556_15?556_15?556_15" 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.btn_addWindow" localX="5" localY="5"
+                     waitTarget="swf1.content.document.iPanel" waitEvent="updateComplete" />
+                 <WaitForEffectsToEnd />
+                 <Pause timeout="500" />
+                 <DispatchMouseEvent target="swf1.content.document.iPanel" type="mouseMove" localX="100" localY="8" />
+                 <DispatchMouseEvent target="swf1.content.document.iPanel" type="mouseDown" localX="100" localY="8" buttonDown="true" />
+                 <DispatchMouseEvent target="swf1.content.document.iPanel" type="mouseMove" buttonDown="true" stageX="150" stageY="100"
+                     waitTarget="swf1.content.document.iPanel" waitEvent="move" />
+                 <DispatchMouseEvent target="swf1.content.document.iPanel" type="mouseMove" buttonDown="true" stageX="140" stageY="100"
+                     waitTarget="swf1.content.document.iPanel" waitEvent="move" />
+                 <DispatchMouseEvent target="swf1.content.document.iPanel" type="mouseMove" buttonDown="true" stageX="135" stageY="102"
+                     waitTarget="swf1.content.document.iPanel" waitEvent="move" />
+                 <DispatchMouseEvent target="swf1.content.document.iPanel" type="mouseMove" buttonDown="true" stageX="130" stageY="105"
+                     waitTarget="swf1.content.document.iPanel" waitEvent="move" />
+                 <DispatchMouseEvent target="swf1.content.document.iPanel" type="mouseMove" buttonDown="true" stageX="125" stageY="110"
+                     waitTarget="swf1.content.document.iPanel" waitEvent="move" />
+                 <CompareBitmap url="../../ManagerTests/baselines/b_drag_untrusted_popup.png" target="swf1.content.document.iPanel" timeout="2500" />
+              </body>
+          </TestCase>
+        
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_PopUpManager_Tests.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_PopUpManager_Tests.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_PopUpManager_Tests.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/bootstrap_PopUpManager_Tests.sh Mon Aug  6 20:20:08 2012
@@ -0,0 +1,38 @@
+#!/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_PopUpManager.as
+else
+    $SDK_DIR/bin/mxmlc -static-link-runtime-shared-libraries=true ../SWFs/Bootstrap_PopUpManager.as
+fi
+
+cd ../SWFs/assets/
+
+if (! [ -e MP_PopUpManager_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_PopUpManager_Child.mxml
+fi
+
+if (! [ -e Bootstrap_PopUpManager_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 Bootstrap_PopUpManager_Child.mxml
+fi

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

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetArraySQLTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetArraySQLTest.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetArraySQLTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetArraySQLTest.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,147 @@
+<?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/RPC/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Bootstrap_RPC_Child.mxml">
+    <mx:Script>
+	<![CDATA[
+
+       import mx.managers.PopUpManager;
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+    <mx:Script>
+        <![CDATA[
+            import mx.utils.ObjectUtil;
+            import mx.rpc.events.FaultEvent;
+            import mx.rpc.events.ResultEvent;
+            import mx.rpc.soap.LoadEvent;
+            import mx.rpc.soap.Operation;
+            import mx.rpc.AsyncToken;
+            import mx.collections.ArrayCollection;
+            import mx.rpc.soap.WebService;
+
+            private var rowsLength:int = 0;
+            private var nwCL:WebService = new WebService();
+            private var res:String = "";
+            private var tbl:Object;
+
+            public function exec(op:Operation):void
+            {
+                op.resultFormat="object";
+                op.send();
+            }
+            public function initApplication():void
+            {
+                nwCL.wsdl = "http://flexqa01.labs.corp.adobe.com/FlexWS/CustomerList.asmx?WSDL";
+                nwCL.addEventListener(ResultEvent.RESULT,onResult);
+                nwCL.addEventListener(FaultEvent.FAULT,onFault);
+                nwCL.addEventListener(LoadEvent.LOAD,onLoad);
+                nwCL.useProxy = false;
+                nwCL.loadWSDL();
+            }
+            private function onLoad(event:LoadEvent):void
+            {
+                //dump(event);
+            }
+            private function onResult(event:ResultEvent):void
+            {
+                var ds:Object = {};
+                for (var i:int=0;i<event.result.length;i++)
+                {
+                    ds[i] = event.result[i];
+                    for each (var tbl:Object in ds[i].Tables)
+                    {
+                        displayTable(tbl);
+                        rowsLength = tbl["Rows"].length;
+                        dump("Number of rows: " + tbl["Rows"].length);
+                    }
+                }
+            }
+
+            private function displayTable(tbl:Object):void
+            {
+                application.swf22.content.document.dg.dataProvider = tbl.Rows;
+            }
+
+            private function onFault(event:FaultEvent):void
+            {
+                dump(event.fault);
+            }
+
+            private function dump(obj:Object):void
+            {
+                //txt.text += "----------------------------------------\n";
+                application.swf22.content.document.txt.text += ObjectUtil.toString(obj);
+            }
+
+        ]]>
+    </mx:Script>
+
+	<testCases>
+        <TestCase testID="getDataSetArray" description="test that value = 25, 25 and 25 rows" keywords="[rpc]">
+            <setup>
+               <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf22" propertyName="loadForCompatibility" value="false" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="source" value="assets/MP_RPC_dataSetMain.swf" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<RunCode code="initApplication()" />
+                <RunCode code="exec(nwCL.getDataSetArray)"   waitEvent="updateComplete" waitTarget="swf22.content.document.dg" />
+			     <AssertPropertyValue propertyName="text" target="swf22.content.document.txt" value='"Number of rows: 25""Number of rows: 25""Number of rows: 25"' />
+			</body>
+		</TestCase>
+        <TestCase testID="getDataSetArray_compatible" description="test that value = 25, 25 and 25 rows" keywords="[rpc]">
+            <setup>
+               <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf22" propertyName="loadForCompatibility" value="true" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="source" value="assets/MP_RPC_dataSetMain.swf" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<RunCode code="initApplication()" />
+                <RunCode code="exec(nwCL.getDataSetArray)"   waitEvent="updateComplete" waitTarget="swf22.content.document.dg" />
+			     <AssertPropertyValue propertyName="text" target="swf22.content.document.txt" value='"Number of rows: 25""Number of rows: 25""Number of rows: 25"' />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetArraySQLTest.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetArraySQLTest.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetArraySQLTest.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetArraySQLTest.sh Mon Aug  6 20:20:08 2012
@@ -0,0 +1,28 @@
+#!/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
+
+
+
+echo "GOT THIS FOR APOLLO: ${USE_APOLLO}"
+
+$SDK_DIR/bin/mxmlc -includes=mx.managers.systemClasses.MarshallingSupport  assets/MP_RPC_dataSetMain.mxml
+
+

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

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetComplexSQLTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetComplexSQLTest.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetComplexSQLTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetComplexSQLTest.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,154 @@
+<?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/RPC/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Bootstrap_RPC_Child.mxml">
+    <mx:Script>
+	<![CDATA[
+
+       import mx.managers.PopUpManager;
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+    <mx:Script>
+        <![CDATA[
+            import mx.utils.ObjectUtil;
+            import mx.rpc.events.FaultEvent;
+            import mx.rpc.events.ResultEvent;
+            import mx.rpc.soap.LoadEvent;
+            import mx.rpc.soap.Operation;
+            import mx.rpc.AsyncToken;
+            import mx.collections.ArrayCollection;
+            import mx.rpc.soap.WebService;
+
+            private var rowsLength:int = 0;
+            private var nwCL:WebService = new WebService();
+            private var res:String = "";
+            private var tbl:Object;
+
+            public function exec(op:Operation):void
+            {
+                op.resultFormat="object";
+                op.send();
+            }
+            public function initApplication():void
+            {
+                nwCL.wsdl = "http://flexqa01.labs.corp.adobe.com/FlexWS/CustomerList.asmx?WSDL";
+                nwCL.addEventListener(ResultEvent.RESULT,onResult);
+                nwCL.addEventListener(FaultEvent.FAULT,onFault);
+                nwCL.addEventListener(LoadEvent.LOAD,onLoad);
+                nwCL.useProxy = false;
+                nwCL.loadWSDL();
+            }
+            private function onLoad(event:LoadEvent):void
+            {
+                //dump(event);
+            }
+
+            private function onResult(event:ResultEvent):void
+            {
+                var ds:Object = event.result;
+                if (event.result is ArrayCollection)
+                {
+                    ds = event.result[0];
+                }
+                //dump(ds.Tables);
+                var done:Boolean = false;
+                for each (var tbl:Object in ds.Tables)
+                {
+                    //dump(tbl);
+                    if (!done)
+                        displayTable(tbl);
+                    done = true;
+                    rowsLength = tbl["Rows"].length;
+                    dump("Number of rows: " + tbl["Rows"].length);
+                }
+
+            }
+            private function displayTable(tbl:Object):void
+            {
+                application.swf22.content.document.dg.dataProvider = tbl.Rows;
+            }
+
+            private function onFault(event:FaultEvent):void
+            {
+                dump(event.fault);
+            }
+
+            private function dump(obj:Object):void
+            {
+                //txt.text += "----------------------------------------\n";
+                application.swf22.content.document.txt.text += ObjectUtil.toString(obj);
+            }
+
+        ]]>
+    </mx:Script>
+
+	<testCases>
+        <TestCase testID="getCustomersAsComplexDS" description='test that value = "Number of rows: 91""Number of rows: 91"' keywords="[rpc]">
+            <setup>
+		       <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf22" propertyName="loadForCompatibility" value="false" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="source" value="assets/MP_RPC_dataSetMain.swf" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<RunCode code="initApplication()" />
+                <RunCode code="exec(nwCL.getCustomersAsComplexDS)"   waitEvent="updateComplete" waitTarget="swf22.content.document.dg" />
+			     <AssertPropertyValue propertyName="text" target="swf22.content.document.txt" value='"Number of rows: 50"' />
+			</body>
+		</TestCase>
+        <TestCase testID="getCustomersAsComplexDS_compatible" description='test that value = "Number of rows: 91""Number of rows: 91"' keywords="[rpc]">
+            <setup>
+		       <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf22" propertyName="loadForCompatibility" value="true" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="source" value="assets/MP_RPC_dataSetMain.swf" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<RunCode code="initApplication()" />
+                <RunCode code="exec(nwCL.getCustomersAsComplexDS)"   waitEvent="updateComplete" waitTarget="swf22.content.document.dg" />
+			     <AssertPropertyValue propertyName="text" target="swf22.content.document.txt" value='"Number of rows: 50"' />
+			</body>
+		</TestCase>
+	</testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetComplexSQLTest.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetComplexSQLTest.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetComplexSQLTest.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetComplexSQLTest.sh Mon Aug  6 20:20:08 2012
@@ -0,0 +1,23 @@
+#!/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
+
+$SDK_DIR/bin/mxmlc -includes=mx.managers.systemClasses.MarshallingSupport  assets/MP_RPC_dataSetMain.mxml
+

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

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetEmptySQLTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetEmptySQLTest.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetEmptySQLTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetEmptySQLTest.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,152 @@
+<?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/RPC/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Bootstrap_RPC_Child.mxml">
+    <mx:Script>
+	<![CDATA[
+
+       import mx.managers.PopUpManager;
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+    <mx:Script>
+        <![CDATA[
+            import mx.utils.ObjectUtil;
+            import mx.rpc.events.FaultEvent;
+            import mx.rpc.events.ResultEvent;
+            import mx.rpc.soap.LoadEvent;
+            import mx.rpc.soap.Operation;
+            import mx.rpc.AsyncToken;
+            import mx.collections.ArrayCollection;
+            import mx.rpc.soap.WebService;
+
+            private var rowsLength:int = 0;
+            private var nwCL:WebService = new WebService();
+            private var res:String = "";
+            private var tbl:Object;
+
+            public function exec(op:Operation):void
+            {
+                op.resultFormat="object";
+                op.send();
+            }
+            public function initApplication():void
+            {
+                nwCL.wsdl = "http://flexqa01.labs.corp.adobe.com/FlexWS/CustomerList.asmx?WSDL";
+                nwCL.addEventListener(ResultEvent.RESULT,onResult);
+                nwCL.addEventListener(FaultEvent.FAULT,onFault);
+                nwCL.addEventListener(LoadEvent.LOAD,onLoad);
+                nwCL.useProxy = false;
+                nwCL.loadWSDL();
+            }
+            private function onLoad(event:LoadEvent):void
+            {
+                //dump(event);
+            }
+
+            private function onResult(event:ResultEvent):void
+            {
+                var ds:Object = event.result;
+                if (event.result is ArrayCollection)
+                {
+                    ds = event.result[0];
+                }
+                //dump(ds.Tables);
+                var done:Boolean = false;
+                for each (var tbl:Object in ds.Tables)
+                {
+                    //dump(tbl);
+                    if (!done)
+                        displayTable(tbl);
+                    done = true;
+                    rowsLength = tbl["Rows"].length;
+                    dump("Number of rows: " + tbl["Rows"].length);
+                }
+
+            }
+            private function displayTable(tbl:Object):void
+            {
+                application.swf22.content.document.dg.dataProvider = tbl.Rows;
+            }
+
+            private function onFault(event:FaultEvent):void
+            {
+                dump(event.fault);
+            }
+
+            private function dump(obj:Object):void
+            {
+                //txt.text += "----------------------------------------\n";
+                application.swf22.content.document.txt.text += ObjectUtil.toString(obj);
+            }
+
+        ]]>
+    </mx:Script>
+	<testCases>
+        <TestCase testID="getEmptyDS" description="test that value = 10 rows" keywords="[rpc]">
+            <setup>
+		       <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf22" propertyName="loadForCompatibility" value="false" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="source" value="assets/MP_RPC_dataSetMain.swf" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<RunCode code="initApplication()" />
+                <RunCode code="exec(nwCL.getEmptyDS)"   waitEvent="updateComplete" waitTarget="swf22.content.document.dg" />
+			    <AssertPropertyValue propertyName="text" target="swf22.content.document.txt" value='"Number of rows: 0"' />
+			</body>
+		</TestCase>
+        <TestCase testID="getEmptyDS_compatible" description="test that value = 10 rows" keywords="[rpc]">
+            <setup>
+		       <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf22" propertyName="loadForCompatibility" value="true" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="source" value="assets/MP_RPC_dataSetMain.swf" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<RunCode code="initApplication()" />
+                <RunCode code="exec(nwCL.getEmptyDS)"   waitEvent="updateComplete" waitTarget="swf22.content.document.dg" />
+			    <AssertPropertyValue propertyName="text" target="swf22.content.document.txt" value='"Number of rows: 0"' />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetEmptySQLTest.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetEmptySQLTest.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetEmptySQLTest.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetEmptySQLTest.sh Mon Aug  6 20:20:08 2012
@@ -0,0 +1,24 @@
+#!/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
+
+$SDK_DIR/bin/mxmlc -includes=mx.managers.systemClasses.MarshallingSupport  assets/MP_RPC_dataSetMain.mxml
+
+

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

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetSingleSQLTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetSingleSQLTest.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetSingleSQLTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/RPC/MP_DataSetSingleSQLTest.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,152 @@
+<?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/RPC/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Bootstrap_RPC_Child.mxml">
+    <mx:Script>
+	<![CDATA[
+
+       import mx.managers.PopUpManager;
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+    <mx:Script>
+        <![CDATA[
+            import mx.utils.ObjectUtil;
+            import mx.rpc.events.FaultEvent;
+            import mx.rpc.events.ResultEvent;
+            import mx.rpc.soap.LoadEvent;
+            import mx.rpc.soap.Operation;
+            import mx.rpc.AsyncToken;
+            import mx.collections.ArrayCollection;
+            import mx.rpc.soap.WebService;
+
+            private var rowsLength:int = 0;
+            private var nwCL:WebService = new WebService();
+            private var res:String = "";
+            private var tbl:Object;
+
+            public function exec(op:Operation):void
+            {
+                op.resultFormat="object";
+                op.send();
+            }
+            public function initApplication():void
+            {
+                nwCL.wsdl = "http://flexqa01.labs.corp.adobe.com/FlexWS/CustomerList.asmx?WSDL";
+                nwCL.addEventListener(ResultEvent.RESULT,onResult);
+                nwCL.addEventListener(FaultEvent.FAULT,onFault);
+                nwCL.addEventListener(LoadEvent.LOAD,onLoad);
+                nwCL.useProxy = false;
+                nwCL.loadWSDL();
+            }
+            private function onLoad(event:LoadEvent):void
+            {
+                //dump(event);
+            }
+
+            private function onResult(event:ResultEvent):void
+            {
+                var ds:Object = event.result;
+                if (event.result is ArrayCollection)
+                {
+                    ds = event.result[0];
+                }
+                //dump(ds.Tables);
+                var done:Boolean = false;
+                for each (var tbl:Object in ds.Tables)
+                {
+                    //dump(tbl);
+                    if (!done)
+                        displayTable(tbl);
+                    done = true;
+                    rowsLength = tbl["Rows"].length;
+                    dump("Number of rows: " + tbl["Rows"].length);
+                }
+
+            }
+            private function displayTable(tbl:Object):void
+            {
+                application.swf22.content.document.dg.dataProvider = tbl.Rows;
+            }
+
+            private function onFault(event:FaultEvent):void
+            {
+                dump(event.fault);
+            }
+
+            private function dump(obj:Object):void
+            {
+                //txt.text += "----------------------------------------\n";
+                application.swf22.content.document.txt.text += ObjectUtil.toString(obj);
+            }
+
+        ]]>
+    </mx:Script>
+	<testCases>
+        <TestCase testID="getCustomersAsDS" description="test that value = 10 rows" keywords="[rpc]">
+            <setup>
+		       <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf22" propertyName="loadForCompatibility" value="false" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="source" value="assets/MP_RPC_dataSetMain.swf" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<RunCode code="initApplication()" />
+                <RunCode code="exec(nwCL.getCustomersAsDS)"   waitEvent="updateComplete" waitTarget="swf22.content.document.dg" />
+			     <AssertPropertyValue propertyName="text" target="swf22.content.document.txt" value='"Number of rows: 10"' />
+			</body>
+		</TestCase>
+        <TestCase testID="getCustomersAsDS_compatible" description="test that value = 10 rows" keywords="[rpc]">
+            <setup>
+		       <ResetComponent target="btn1" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="btn1" />
+		   	   <SetProperty target="swf22" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf22" propertyName="source" value="../../../Assets/Images/redrect.jpg" waitTarget="swf22" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf22" propertyName="loadForCompatibility" value="true" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf22" propertyName="source" value="assets/MP_RPC_dataSetMain.swf" />
+			   <SetProperty target="swf22" propertyName="autoLoad" value="true"
+					waitTarget="swf22" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<DispatchMouseEvent target="" type="mouseMove" localX="12" localY="55" waitTarget="swf22.content" waitEvent="applicationComplete"/>
+			  	<RunCode code="initApplication()" />
+                <RunCode code="exec(nwCL.getCustomersAsDS)"   waitEvent="updateComplete" waitTarget="swf22.content.document.dg" />
+			     <AssertPropertyValue propertyName="text" target="swf22.content.document.txt" value='"Number of rows: 10"' />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>



Mime
View raw message