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 [2/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/Controls/MP_Controls_Tests2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/Controls/MP_Controls_Tests2.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/Controls/MP_Controls_Tests2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/Controls/MP_Controls_Tests2.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,708 @@
+<?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/Controls/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="MP_Controls_Main2.mxml">
+
+    <mx:Script>
+    <![CDATA[
+
+       import mx.core.IFlexDisplayObject;
+       import mx.events.FlexEvent;
+       import flash.utils.*;
+       import mx.core.FlexSprite;
+
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+
+
+    ]]>
+    </mx:Script>
+
+    <mx:Metadata>
+    <![CDATA[
+        [Mixin]
+    ]]>
+    </mx:Metadata>
+
+    <testCases>
+         <TestCase testID="MP_ComboBox_dropdown_trusted" description="Test that the location of the ComboBox's dropdown." keywords="[ComboBox, Marshall Plan, dropdown]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/MP_Controls_Child2.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"/>
+                <Pause timeout="100" />
+                <DispatchMouseClickEvent localX="14" localY="8" target="swf1.content.document.comboBox1"
+                    waitEvent="open" waitTarget="swf1.content.document.comboBox1"/>
+                <WaitForEffectsToEnd />
+                <AssertPropertyValue target="swf1.content.document.comboBox1.dropdown" value="30" propertyName="x" />
+                <AssertPropertyValue target="swf1.content.document.comboBox1.dropdown" value="230" propertyName="y" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_ComboBox_dropdown_compatible" description="Test that the location of the ComboBox's dropdown." keywords="[ComboBox, Marshall Plan, dropdown]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/MP_Controls_Child2.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 localX="14" localY="8" target="swf1.content.document.comboBox1"
+                    waitEvent="open" waitTarget="swf1.content.document.comboBox1"/>
+                <WaitForEffectsToEnd />
+                <AssertPropertyValue target="swf1.content.document.comboBox1.dropdown" value="30" propertyName="x" />
+                <AssertPropertyValue target="swf1.content.document.comboBox1.dropdown" value="230" propertyName="y" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_ComboBox_dropdown_untrusted" description="Test that the location of the ComboBox's dropdown." keywords="[ComboBox, Marshall Plan, dropdown]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.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_Controls_Child2.swf?81_2?81_2?81_2" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			  	<DispatchMouseClickEvent localX="14" localY="8" target="swf1.content.document.comboBox1"
+                    waitEvent="open" waitTarget="swf1.content.document.comboBox1"/>
+                <WaitForEffectsToEnd />
+                <AssertPropertyValue target="swf1.content.document.comboBox1.dropdown" value="20" propertyName="x" />
+                <AssertPropertyValue target="swf1.content.document.comboBox1.dropdown" value="51" propertyName="y" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_ComboBox_closeOnMouseDown_trusted" description="Test that the location of the ComboBox's dropdown." keywords="[ComboBox, Marshall Plan, dropdown]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/MP_Controls_Child2.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"/>
+                <Pause timeout="100" />
+                <DispatchMouseClickEvent localX="14" localY="8" target="swf1.content.document.comboBox1"
+                    waitEvent="open" waitTarget="swf1.content.document.comboBox1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent localX="14" localY="8" target="swf1"/>
+                <AssertEvent eventName="close" eventClass="mx.events::DropdownEvent" target="swf1.content.document.comboBox1"/>
+             </body>
+         </TestCase>
+         <TestCase testID="MP_ComboBox_closeOnMouseDown_compatible" description="Test that the location of the ComboBox's dropdown." keywords="[ComboBox, Marshall Plan, dropdown]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/MP_Controls_Child2.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 localX="14" localY="8" target="swf1.content.document.comboBox1"
+                    waitEvent="open" waitTarget="swf1.content.document.comboBox1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent localX="14" localY="8" target="swf1"/>
+                <AssertEvent eventName="close" eventClass="mx.events::DropdownEvent" target="swf1.content.document.comboBox1"/>
+           </body>
+         </TestCase>
+         <TestCase testID="MP_ComboBox_closeOnMouseDown_untrusted" description="Test that the location of the ComboBox's dropdown." keywords="[ComboBox, Marshall Plan, dropdown]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.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_Controls_Child2.swf?145_2?145_2?145_2" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			  	<DispatchMouseClickEvent localX="14" localY="8" target="swf1.content.document.comboBox1"
+                    waitEvent="open" waitTarget="swf1.content.document.comboBox1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent localX="14" localY="8" target="swf1"/>
+                <AssertEvent eventName="close" eventClass="mx.events::DropdownEvent" target="swf1.content.document.comboBox1"/>
+           </body>
+         </TestCase>
+         <TestCase testID="MP_ComboBox_closeOnMouseDownOutside_trusted" description="Test that the location of the ComboBox's dropdown." keywords="[ComboBox, Marshall Plan, dropdown]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/MP_Controls_Child2.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"/>
+                <Pause timeout="100" />
+                <DispatchMouseClickEvent localX="14" localY="8" target="swf1.content.document.comboBox1"
+                    waitEvent="open" waitTarget="swf1.content.document.comboBox1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent localX="14" localY="8" target=""/>
+                <AssertEvent eventName="close" eventClass="mx.events::DropdownEvent" target="swf1.content.document.comboBox1"/>
+           </body>
+         </TestCase>
+         <TestCase testID="MP_ComboBox_closeOnMouseDownOutside_compatible" description="Test that the location of the ComboBox's dropdown." keywords="[ComboBox, Marshall Plan, dropdown]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/MP_Controls_Child2.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 localX="14" localY="8" target="swf1.content.document.comboBox1"
+                    waitEvent="open" waitTarget="swf1.content.document.comboBox1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent localX="14" localY="8" target=""/>
+                <AssertEvent eventName="close" eventClass="mx.events::DropdownEvent" target="swf1.content.document.comboBox1"/>
+           </body>
+         </TestCase>
+         <TestCase testID="MP_ComboBox_closeOnMouseDownOutside_untrusted" description="Test that the location of the ComboBox's dropdown." keywords="[ComboBox, Marshall Plan, dropdown]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.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_Controls_Child2.swf?209_2?209_2?209_2" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			  	<DispatchMouseClickEvent localX="14" localY="8" target="swf1.content.document.comboBox1"
+                    waitEvent="open" waitTarget="swf1.content.document.comboBox1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent localX="14" localY="8" target=""/>
+                <AssertEvent eventName="close" eventClass="mx.events::DropdownEvent" target="swf1.content.document.comboBox1"/>
+           </body>
+         </TestCase>
+         <TestCase testID="MP_PopUpMenuButton_dropdown_trusted" description="Test that the location of the PopUpMenuButtons's dropdown." keywords="[PopUpMenuButton, Marshall Plan, popUp]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/MP_Controls_Child2.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="58" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <DispatchMouseClickEvent localX="58" localY="8" target="swf1.content.document.popUpMenuButton1"
+                    waitEvent="open" waitTarget="swf1.content.document.popUpMenuButton1"/>
+                <WaitForEffectsToEnd />
+                <AssertPropertyValue target="swf1.content.document.popUpMenuButton1.popUp" value="390" propertyName="x" />
+                <AssertPropertyValue target="swf1.content.document.popUpMenuButton1.popUp" value="225" propertyName="y" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_PopUpMenuButton_dropdown_compatible" description="Test that the location of the PopUpMenuButtons's dropdown." keywords="[PopUpMenuButton, Marshall Plan, popUp]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/MP_Controls_Child2.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="58" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <DispatchMouseClickEvent localX="58" localY="8" target="swf1.content.document.popUpMenuButton1"
+                    waitEvent="open" waitTarget="swf1.content.document.popUpMenuButton1"/>
+                <WaitForEffectsToEnd />
+                <AssertPropertyValue target="swf1.content.document.popUpMenuButton1.popUp" value="390" propertyName="x" />
+                <AssertPropertyValue target="swf1.content.document.popUpMenuButton1.popUp" value="225" propertyName="y" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_PopUpMenuButton_dropdown_untrusted" description="Test that the location of the PopUpMenuButtons's dropdown." keywords="[PopUpMenuButton, Marshall Plan, popUp]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Controls_Child2.swf?271_2?271_2?271_2" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			  	<DispatchMouseClickEvent localX="58" localY="8" target="swf1.content.document.popUpMenuButton1"
+                    waitEvent="open" waitTarget="swf1.content.document.popUpMenuButton1"/>
+                <WaitForEffectsToEnd />
+                <AssertMethodValue method="value=Math.round(application.swf1.content.document.popUpMenuButton1.popUp.x)" value="372" />
+                <AssertPropertyValue target="swf1.content.document.popUpMenuButton1.popUp" value="23" propertyName="y" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_PopUpMenuButton_closeOnMouseDown_trusted" description="Test that the location of the PopUpMenuButtons's dropdown." keywords="[PopUpMenuButton, Marshall Plan, popUp]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/MP_Controls_Child2.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="58" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <DispatchMouseClickEvent localX="58" localY="8" target="swf1.content.document.popUpMenuButton1"
+                    waitEvent="open" waitTarget="swf1.content.document.popUpMenuButton1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent localX="14" localY="8" target="swf1"/>
+                <AssertEvent eventName="close" eventClass="mx.events::DropdownEvent" target="swf1.content.document.popUpMenuButton1"/>
+           </body>
+         </TestCase>
+         <TestCase testID="MP_PopUpMenuButton_closeOnMouseDown_compatible" description="Test that the location of the PopUpMenuButtons's dropdown." keywords="[PopUpMenuButton, Marshall Plan, popUp]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/MP_Controls_Child2.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="58" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <DispatchMouseClickEvent localX="58" localY="8" target="swf1.content.document.popUpMenuButton1"
+                    waitEvent="open" waitTarget="swf1.content.document.popUpMenuButton1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent localX="14" localY="8" target="swf1"/>
+                <AssertEvent eventName="close" eventClass="mx.events::DropdownEvent" target="swf1.content.document.popUpMenuButton1"/>
+           </body>
+         </TestCase>
+         <TestCase testID="MP_PopUpMenuButton_closeOnMouseDown_untrusted" description="Test that the location of the PopUpMenuButtons's dropdown." keywords="[PopUpMenuButton, Marshall Plan, popUp]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Controls_Child2.swf?333_2?333_2?333_2" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			  	<DispatchMouseClickEvent localX="58" localY="8" target="swf1.content.document.popUpMenuButton1"
+                    waitEvent="open" waitTarget="swf1.content.document.popUpMenuButton1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent localX="14" localY="8" target="swf1"/>
+                <AssertEvent eventName="close" eventClass="mx.events::DropdownEvent" target="swf1.content.document.popUpMenuButton1"/>
+           </body>
+         </TestCase>
+
+         <TestCase testID="MP_PopUpMenuButton_closeOnMouseDownOutside_trusted" description="Test that the location of the PopUpMenuButtons's dropdown." keywords="[PopUpMenuButton, Marshall Plan, popUp]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/MP_Controls_Child2.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="58" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <DispatchMouseClickEvent localX="58" localY="8" target="swf1.content.document.popUpMenuButton1"
+                    waitEvent="open" waitTarget="swf1.content.document.popUpMenuButton1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent localX="14" localY="8" target=""/>
+                <AssertEvent eventName="close" eventClass="mx.events::DropdownEvent" target="swf1.content.document.popUpMenuButton1"/>
+           </body>
+         </TestCase>
+         <TestCase testID="MP_PopUpMenuButton_closeOnMouseDownOutside_compatible" description="Test that the location of the PopUpMenuButtons's dropdown." keywords="[PopUpMenuButton, Marshall Plan, popUp]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/MP_Controls_Child2.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="58" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <DispatchMouseClickEvent localX="58" localY="8" target="swf1.content.document.popUpMenuButton1"
+                    waitEvent="open" waitTarget="swf1.content.document.popUpMenuButton1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent localX="14" localY="8" target=""/>
+                <AssertEvent eventName="close" eventClass="mx.events::DropdownEvent" target="swf1.content.document.popUpMenuButton1"/>
+           </body>
+         </TestCase>
+         <TestCase testID="MP_PopUpMenuButton_closeOnMouseDownOutside_untrusted" description="Test that the location of the PopUpMenuButtons's dropdown." keywords="[PopUpMenuButton, Marshall Plan, popUp]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Controls_Child2.swf?396_2?396_2?396_2" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			  	<DispatchMouseClickEvent localX="58" localY="8" target="swf1.content.document.popUpMenuButton1"
+                    waitEvent="open" waitTarget="swf1.content.document.popUpMenuButton1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent localX="14" localY="8" target=""/>
+                <AssertEvent eventName="close" eventClass="mx.events::DropdownEvent" target="swf1.content.document.popUpMenuButton1"/>
+           </body>
+         </TestCase>
+         <TestCase testID="MP_MenuBar_submenus_trusted" description="Test that the location of the MenuBar submenus." keywords="[MenuBar, Marshall Plan, Menu]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/MP_Controls_Child2.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="58" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <Pause timeout="100" />
+                <DispatchMouseClickEvent localX="18" localY="8" target="swf1.content.document.menuBar1.getChildAt(1)"
+                    waitEvent="menuShow" waitTarget="swf1.content.document.menuBar1"/>
+                <WaitForEffectsToEnd />
+                <AssertPropertyValue target="swf1.content.document.menuBar1.menus.0" value="160" propertyName="x" />
+                <AssertPropertyValue target="swf1.content.document.menuBar1.menus.0" value="226" propertyName="y" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_MenuBar_submenus_compatibility" description="Test that the location of the MenuBar submenus." keywords="[MenuBar, Marshall Plan, Menu]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/MP_Controls_Child2.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="58" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <Pause timeout="100" />
+                <DispatchMouseClickEvent localX="18" localY="8" target="swf1.content.document.menuBar1.getChildAt(1)"
+                    waitEvent="menuShow" waitTarget="swf1.content.document.menuBar1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent target="swf1" localX="52" localY="50" waitTarget="swf1.content.document.menuBar1"
+                    waitEvent="menuHide"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent target="control1" waitEvent="focusIn" waitTarget="control1" localX="10" localY="5" />
+                <DispatchKeyEvent keys="[TAB, TAB, RIGHT]" waitEvent="menuShow" waitTarget="swf1.content.document.menuBar1"/>
+                <WaitForEffectsToEnd />
+                <AssertPropertyValue target="swf1.content.document.menuBar1.menus.0" value="160" propertyName="x" />
+                <AssertPropertyValue target="swf1.content.document.menuBar1.menus.0" value="226" propertyName="y" />
+           </body>
+         </TestCase>
+         <!--TestCase testID="MP_MenuBar_submenus_untrusted" description="Test that the location of the MenuBar submenus." keywords="[MenuBar, Marshall Plan, Menu]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Controls_Child2.swf?466_2?466_2?466_2" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			  	<DispatchMouseClickEvent localX="18" localY="8" target="swf1.content.document.menuBar1.getChildAt(1)"
+                    waitEvent="menuShow" waitTarget="swf1.content.document.menuBar1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent target="swf1" localX="52" localY="58" waitTarget="swf1.content.document.menuBar1"
+                    waitEvent="menuHide"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent target="control1" waitEvent="focusIn" waitTarget="control1" localX="10" localY="5" />
+                <DispatchKeyEvent keys="[TAB, TAB, RIGHT]" waitEvent="menuShow" waitTarget="swf1.content.document.menuBar1"/>
+                <WaitForEffectsToEnd />
+                <AssertPropertyValue target="swf1.content.document.menuBar1.menus.0" value="150" propertyName="x" />
+                <AssertPropertyValue target="swf1.content.document.menuBar1.menus.0" value="111" propertyName="y" />
+           </body>
+         </TestCase-->
+         <TestCase testID="MP_MenuBar_closeOnMouseDown_trusted" description="Test that the location of the MenuBar submenus." keywords="[MenuBar, Marshall Plan, Menu]">
+             <setup>
+			   <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/MP_Controls_Child2.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="58" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <Pause timeout="100" />
+			    <DispatchMouseClickEvent localX="18" localY="8" target="swf1.content.document.menuBar1.getChildAt(1)"
+                    waitEvent="menuShow" waitTarget="swf1.content.document.menuBar1"/>
+                <WaitForEffectsToEnd />
+			    <DispatchMouseClickEvent localX="14" localY="8" target="swf1"/>
+                <AssertEvent eventName="menuHide" eventClass="mx.events::MenuEvent"  target="swf1.content.document.menuBar1"/>
+           </body>
+         </TestCase>
+         <TestCase testID="MP_MenuBar_closeOnMouseDown_compatibility" description="Test that the location of the MenuBar submenus." keywords="[MenuBar, Marshall Plan, Menu]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/MP_Controls_Child2.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="58" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <Pause timeout="100" />
+                <DispatchMouseClickEvent localX="18" localY="8" target="swf1.content.document.menuBar1.getChildAt(1)"
+                    waitEvent="menuShow" waitTarget="swf1.content.document.menuBar1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent target="swf1" localX="52" localY="50" waitTarget="swf1.content.document.menuBar1"
+                    waitEvent="menuHide"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent target="control1" waitEvent="focusIn" waitTarget="control1" localX="10" localY="5" />
+                <DispatchKeyEvent keys="[TAB, TAB, RIGHT]" waitEvent="menuShow" waitTarget="swf1.content.document.menuBar1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent localX="14" localY="8" target="swf1"/>
+                <AssertEvent eventName="menuHide" eventClass="mx.events::MenuEvent"  target="swf1.content.document.menuBar1"/>
+           </body>
+         </TestCase>
+         <!--TestCase testID="MP_MenuBar_closeOnMouseDown_untrusted" description="Test that the location of the MenuBar submenus." keywords="[MenuBar, Marshall Plan, Menu]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Controls_Child2.swf?542_2?542_2?542_2" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			  	<DispatchMouseClickEvent localX="18" localY="8" target="swf1.content.document.menuBar1.getChildAt(1)"
+                    waitEvent="menuShow" waitTarget="swf1.content.document.menuBar1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent target="swf1" localX="52" localY="58" waitTarget="swf1.content.document.menuBar1"
+                    waitEvent="menuHide"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent target="control1" waitEvent="focusIn" waitTarget="control1" localX="10" localY="5" />
+                <DispatchKeyEvent keys="[TAB, TAB, RIGHT]" waitEvent="menuShow" waitTarget="swf1.content.document.menuBar1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent localX="14" localY="8" target="swf1"/>
+                <AssertEvent eventName="menuHide" eventClass="mx.events::MenuEvent"  target="swf1.content.document.menuBar1"/>
+           </body>
+         </TestCase-->
+         <TestCase testID="MP_MenuBar_closeOnMouseDownOutside_trusted" description="Test that the location of the MenuBar submenus." keywords="[MenuBar, Marshall Plan, Menu]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="loadForCompatibility" value="false" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/MP_Controls_Child2.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="58" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <Pause timeout="100" />
+                <DispatchMouseClickEvent localX="18" localY="8" target="swf1.content.document.menuBar1.getChildAt(1)"
+                    waitEvent="menuShow" waitTarget="swf1.content.document.menuBar1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent localX="14" localY="8" target=""/>
+                <AssertEvent eventName="menuHide" eventClass="mx.events::MenuEvent"  target="swf1.content.document.menuBar1"/>
+           </body>
+         </TestCase>
+         <TestCase testID="MP_MenuBar_closeOnMouseDownOutside_compatibility" description="Test that the location of the MenuBar submenus." keywords="[MenuBar, Marshall Plan, Menu]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/MP_Controls_Child2.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="58" waitTarget="swf1.content" waitEvent="applicationComplete"/>
+                <Pause timeout="100" />
+                <DispatchMouseClickEvent localX="18" localY="8" target="swf1.content.document.menuBar1.getChildAt(1)"
+                    waitEvent="menuShow" waitTarget="swf1.content.document.menuBar1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent target="swf1" localX="52" localY="50" waitTarget="swf1.content.document.menuBar1"
+                    waitEvent="menuHide"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent target="control1" waitEvent="focusIn" waitTarget="control1" localX="10" localY="5" />
+                <DispatchKeyEvent keys="[TAB, TAB, RIGHT]" waitEvent="menuShow" waitTarget="swf1.content.document.menuBar1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent localX="14" localY="8" target=""/>
+                <AssertEvent eventName="menuHide" eventClass="mx.events::MenuEvent"  target="swf1.content.document.menuBar1"/>
+           </body>
+         </TestCase>
+         <!--TestCase testID="MP_MenuBar_closeOnMouseDownOutside_untrusted" description="Test that the location of the MenuBar submenus." keywords="[MenuBar, Marshall Plan, Menu]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Controls_Child2.swf?618_2?618_2?618_2" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			  	<DispatchMouseClickEvent localX="18" localY="8" target="swf1.content.document.menuBar1.getChildAt(1)"
+                    waitEvent="menuShow" waitTarget="swf1.content.document.menuBar1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent target="swf1" localX="52" localY="58" waitTarget="swf1.content.document.menuBar1"
+                    waitEvent="menuHide"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent target="control1" waitEvent="focusIn" waitTarget="control1" localX="10" localY="5" />
+                <DispatchKeyEvent keys="[TAB, TAB, RIGHT]" waitEvent="menuShow" waitTarget="swf1.content.document.menuBar1"/>
+                <WaitForEffectsToEnd />
+                <DispatchMouseClickEvent localX="14" localY="8" target=""/>
+                <AssertEvent eventName="menuHide" eventClass="mx.events::MenuEvent" target="swf1.content.document.menuBar1"/>
+           </body>
+         </TestCase-->
+         <TestCase testID="MP_EditableDataGrid_errorString_compatible" description="Test that an error tooltip shows up correctily in a compatible child." keywords="[DataGrid, Marshall Plan, errorString]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+			   <SetProperty target="swf1" propertyName="loadForCompatibility" value="true" />
+		   	   <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="assets/MP_Controls_Child2.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 localX="14" localY="8" target="swf1.content.document.myGrid.mx_internal:rendererArray.1.2"
+                    waitEvent="itemEditBegin" waitTarget="swf1.content.document.myGrid"/>
+			    <DispatchKeyEvent char="20" waitEvent="change" waitTarget="swf1.content.document.myGrid.itemEditorInstance" />
+                <Pause timeout="100" />
+                <DispatchKeyEvent key="TAB" waitEvent="itemEditEnd" waitTarget="swf1.content.document.myGrid" />
+                <RunCode code="application.swf1.content.document.myGrid.itemEditorInstance.setSelection(0,1)" />
+			    <DispatchMouseEvent type="mouseOver" target="swf1.content.document.myGrid.itemEditorInstance" localX="20" localY="8"
+			       waitEvent="toolTipShown" waitTarget="swf1.content.document.myGrid.itemEditorInstance" />
+                <WaitForEffectsToEnd />
+                <Pause timeout="200" />
+			    <CompareBitmap url="../Controls/baselines/mp_errorString_trusted.png" target="swf1" timeout="2500" numColorVariances="20" ignoreMaxColorVariance="true"/>
+			</body>
+         </TestCase>
+         <TestCase testID="MP_EditableDataGrid_errorString_untrusted" description="Test that an error tooltip shows up correctily in an untrusted child." keywords="[DataGrid, Marshall Plan, errorString]">
+             <setup>
+               <ResetComponent target="control1" className="mx.controls.TextInput" waitTarget="control1"
+                   waitEvent="updateComplete" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.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_Controls_Child2.swf?672_2?672_2?672_2" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			  	<DispatchMouseClickEvent localX="14" localY="8" target="swf1.content.document.myGrid.mx_internal:rendererArray.1.2"
+                    waitEvent="itemEditBegin" waitTarget="swf1.content.document.myGrid"/>
+			    <DispatchKeyEvent char="20" waitEvent="change" waitTarget="swf1.content.document.myGrid.itemEditorInstance" />
+                <Pause timeout="100" />
+                <DispatchKeyEvent key="TAB" waitEvent="itemEditEnd" waitTarget="swf1.content.document.myGrid" />
+                <RunCode code="application.swf1.content.document.myGrid.itemEditorInstance.setSelection(0,1)" />
+			    <DispatchMouseEvent type="mouseOver" target="swf1.content.document.myGrid.itemEditorInstance" localX="20" localY="8"
+			       waitEvent="toolTipShown" waitTarget="swf1.content.document.myGrid.itemEditorInstance" />
+                <WaitForEffectsToEnd />
+			    <CompareBitmap url="../Controls/baselines/mp_errorString_untrusted.png" target="swf1" timeout="2500" />
+			</body>
+         </TestCase>
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/Controls/MP_Controls_Tests2.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/Controls/MP_Controls_Tests2.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/Controls/MP_Controls_Tests2.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/Controls/MP_Controls_Tests2.sh Mon Aug  6 20:20:08 2012
@@ -0,0 +1,22 @@
+#!/bin/sh
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+cd ../SWFs/assets
+
+$SDK_DIR/bin/mxmlc -includes=mx.managers.systemClasses.MarshallingSupport -source-path=$MUSTELLA_DIR/as3/src/mustella -includes=UnitTester -theme=$SDK_DIR/frameworks/themes/Halo/halo.swc MP_Controls_Child2.mxml
\ No newline at end of file

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

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

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

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

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

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

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

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/Events/MP_Events_Tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/Events/MP_Events_Tests.mxml?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/Events/MP_Events_Tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/Events/MP_Events_Tests.mxml Mon Aug  6 20:20:08 2012
@@ -0,0 +1,304 @@
+<?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/Events/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="MP_simpleLoader.mxml">
+
+    <mx:Script>
+    <![CDATA[
+
+       import mx.core.IFlexDisplayObject;
+       import mx.events.FlexEvent;
+       import flash.utils.*;
+       import mx.core.FlexSprite;
+
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+
+
+    ]]>
+    </mx:Script>
+
+    <mx:Metadata>
+    <![CDATA[
+        [Mixin]
+    ]]>
+    </mx:Metadata>
+
+    <testCases>
+         <TestCase testID="MP_SandboxRootMouseEvent_click" description="Test that the mouseClick event is triggered." keywords="[SandboxRootMouseEvent, click, Marshall Plan]">
+             <setup>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Simple_Child.swf?35_3?35_3?35_3" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			  	<DispatchMouseClickEvent localX="14" localY="8" target="" waitEvent="mouseUp" waitTarget=""/>
+                <AssertPropertyValue target="swf1.content.document.subcontrol1" value="event.type: clickSomewhere, event.altKey: false, event.buttonDown: false, event.ctrlKey: false, event.shiftKey: false" propertyName="text" />
+
+           </body>
+         </TestCase>
+         <TestCase testID="MP_SandboxRootMouseEvent_mouseDown" description="Test that the mouseDown event is triggered." keywords="[SandboxRootMouseEvent, mouseDown, Marshall Plan]">
+             <setup>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Simple_Child.swf?51_3?51_3?51_3" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			    <DispatchMouseEvent type="mouseDown" localX="10" localY="20" target="" waitTarget="" waitEvent="mouseDown"/>
+                <AssertPropertyValue target="swf1.content.document.subcontrol1" value="event.type: mouseDownSomewhere, event.altKey: false, event.buttonDown: true, event.ctrlKey: false, event.shiftKey: false" propertyName="text" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_SandboxRootMouseEvent_mouseUp" description="Test that the mouseUp event is triggered." keywords="[SandboxRootMouseEvent, mouseUp, Marshall Plan]">
+             <setup>
+               <DispatchMouseEvent type="mouseUp" localX="10" localY="20" target="" waitTarget="" waitEvent="mouseUp"/>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Simple_Child.swf?67_3?67_3?67_3" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			    <DispatchMouseEvent type="mouseDown" localX="10" localY="20" target="" waitTarget="" waitEvent="mouseDown"/>
+                <DispatchMouseEvent type="mouseUp" localX="10" localY="20" target="" waitTarget="swf1.content.document.subcontrol1" waitEvent="updateComplete"/>
+                <AssertPropertyValue target="swf1.content.document.subcontrol1" value="event.type: mouseUpSomewhere, event.altKey: false, event.buttonDown: false, event.ctrlKey: false, event.shiftKey: false" propertyName="text" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_SandboxRootMouseEvent_mouseMove" description="Test that the mouseUp event is triggered." keywords="[SandboxRootMouseEvent, mouseUp, Marshall Plan]">
+             <setup>
+               <DispatchMouseEvent type="mouseUp" localX="10" localY="20" target="" waitTarget="" waitEvent="mouseUp"/>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Simple_Child.swf?84_3?84_3?84_3" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			    <DispatchMouseClickEvent localX="10" localY="20" target="" waitTarget="" waitEvent="mouseUp"/>
+                <DispatchMouseEvent type="mouseMove" localX="15" localY="20" target="" waitTarget="swf1.content.document.subcontrol1" waitEvent="updateComplete"/>
+                <AssertPropertyValue target="swf1.content.document.subcontrol1" value="event.type: mouseMoveSomewhere, event.altKey: false, event.buttonDown: false, event.ctrlKey: false, event.shiftKey: false" propertyName="text" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_SandboxRootMouseEvent_click_shiftKey" description="Test that the mouseClick event is triggered." keywords="[SandboxRootMouseEvent, click, Marshall Plan]">
+             <setup>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Simple_Child.swf?100_3?100_3?100_3" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			    <DispatchMouseClickEvent localX="14" localY="8" target="" waitEvent="mouseUp" waitTarget="" shiftKey="true"/>
+                <AssertPropertyValue target="swf1.content.document.subcontrol1" value="event.type: clickSomewhere, event.altKey: false, event.buttonDown: false, event.ctrlKey: false, event.shiftKey: true" propertyName="text" />
+
+           </body>
+         </TestCase>
+         <TestCase testID="MP_SandboxRootMouseEvent_mouseDown_shiftKey" description="Test that the mouseDown event is triggered." keywords="[SandboxRootMouseEvent, mouseDown, Marshall Plan]">
+             <setup>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Simple_Child.swf?116_3?116_3?116_3" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			    <DispatchMouseEvent type="mouseDown" localX="10" localY="20" target="" waitTarget="" waitEvent="mouseDown" shiftKey="true"/>
+                <AssertPropertyValue target="swf1.content.document.subcontrol1" value="event.type: mouseDownSomewhere, event.altKey: false, event.buttonDown: true, event.ctrlKey: false, event.shiftKey: true" propertyName="text" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_SandboxRootMouseEvent_mouseUp_shiftKey" description="Test that the mouseUp event is triggered." keywords="[SandboxRootMouseEvent, mouseUp, Marshall Plan]">
+             <setup>
+               <DispatchMouseEvent type="mouseUp" localX="10" localY="20" target="" waitTarget="" waitEvent="mouseUp"/>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Simple_Child.swf?132_3?132_3?132_3" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			    <DispatchMouseEvent type="mouseDown" localX="10" localY="20" target="" waitTarget="" waitEvent="mouseDown"/>
+                <DispatchMouseEvent type="mouseUp" localX="10" localY="20" target="" waitTarget="swf1.content.document.subcontrol1" waitEvent="updateComplete" shiftKey="true"/>
+                <AssertPropertyValue target="swf1.content.document.subcontrol1" value="event.type: mouseUpSomewhere, event.altKey: false, event.buttonDown: false, event.ctrlKey: false, event.shiftKey: true" propertyName="text" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_SandboxRootMouseEvent_mouseMove_shiftKey" description="Test that the mouseUp event is triggered." keywords="[SandboxRootMouseEvent, mouseUp, Marshall Plan]">
+             <setup>
+               <DispatchMouseEvent type="mouseUp" localX="10" localY="20" target="" waitTarget="" waitEvent="mouseUp"/>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Simple_Child.swf?149_3?149_3?149_3" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			    <DispatchMouseClickEvent localX="10" localY="20" target="" waitTarget="" waitEvent="mouseUp"/>
+                <DispatchMouseEvent type="mouseMove" localX="15" localY="20" target="" shiftKey="true" waitTarget="swf1.content.document.subcontrol1" waitEvent="updateComplete"/>
+                <AssertPropertyValue target="swf1.content.document.subcontrol1" value="event.type: mouseMoveSomewhere, event.altKey: false, event.buttonDown: false, event.ctrlKey: false, event.shiftKey: true" propertyName="text" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_SandboxRootMouseEvent_mouseUp_buttonDown" description="Test that the mouseUp event is triggered." keywords="[SandboxRootMouseEvent, mouseUp, Marshall Plan]">
+             <setup>
+               <DispatchMouseEvent type="mouseUp" localX="10" localY="20" target="" waitTarget="" waitEvent="mouseUp"/>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Simple_Child.swf?166_3?166_3?166_3" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			    <DispatchMouseEvent type="mouseDown" localX="10" localY="20" target="" waitTarget="" waitEvent="mouseDown"/>
+                <DispatchMouseEvent type="mouseUp" localX="10" localY="20" target="" waitTarget="swf1.content.document.subcontrol1" waitEvent="updateComplete" buttonDown="true"/>
+                <AssertPropertyValue target="swf1.content.document.subcontrol1" value="event.type: mouseUpSomewhere, event.altKey: false, event.buttonDown: true, event.ctrlKey: false, event.shiftKey: false" propertyName="text" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_SandboxRootMouseEvent_mouseMove_buttonDown" description="Test that the mouseUp event is triggered." keywords="[SandboxRootMouseEvent, mouseUp, Marshall Plan]">
+             <setup>
+               <DispatchMouseEvent type="mouseUp" localX="10" localY="20" target="" waitTarget="" waitEvent="mouseUp"/>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Simple_Child.swf?183_3?183_3?183_3" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			    <DispatchMouseClickEvent localX="10" localY="20" target="" waitTarget="" waitEvent="mouseUp"/>
+                <DispatchMouseEvent type="mouseMove" localX="15" localY="20" target="" buttonDown="true" waitTarget="swf1.content.document.subcontrol1" waitEvent="updateComplete"/>
+                <AssertPropertyValue target="swf1.content.document.subcontrol1" value="event.type: mouseMoveSomewhere, event.altKey: false, event.buttonDown: true, event.ctrlKey: false, event.shiftKey: false" propertyName="text" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_SandboxRootMouseEvent_click_ctrlKey" description="Test that the mouseClick event is triggered." keywords="[SandboxRootMouseEvent, click, Marshall Plan]">
+             <setup>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Simple_Child.swf?199_3?199_3?199_3" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			    <DispatchMouseClickEvent localX="14" localY="8" target="" waitEvent="mouseUp" waitTarget="" ctrlKey="true"/>
+                <AssertPropertyValue target="swf1.content.document.subcontrol1" value="event.type: clickSomewhere, event.altKey: false, event.buttonDown: false, event.ctrlKey: true, event.shiftKey: false" propertyName="text" />
+
+           </body>
+         </TestCase>
+         <TestCase testID="MP_SandboxRootMouseEvent_mouseDown_ctrlKey" description="Test that the mouseDown event is triggered." keywords="[SandboxRootMouseEvent, mouseDown, Marshall Plan]">
+             <setup>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Simple_Child.swf?215_3?215_3?215_3" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			    <DispatchMouseEvent type="mouseDown" localX="10" localY="20" target="" waitTarget="" waitEvent="mouseDown" ctrlKey="true"/>
+                <AssertPropertyValue target="swf1.content.document.subcontrol1" value="event.type: mouseDownSomewhere, event.altKey: false, event.buttonDown: true, event.ctrlKey: true, event.shiftKey: false" propertyName="text" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_SandboxRootMouseEvent_mouseUp_ctrlKey" description="Test that the mouseUp event is triggered." keywords="[SandboxRootMouseEvent, mouseUp, Marshall Plan]">
+             <setup>
+               <DispatchMouseEvent type="mouseUp" localX="10" localY="20" target="" waitTarget="" waitEvent="mouseUp"/>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Simple_Child.swf?231_3?231_3?231_3" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			    <DispatchMouseEvent type="mouseDown" localX="10" localY="20" target="" waitTarget="" waitEvent="mouseDown"/>
+                <DispatchMouseEvent type="mouseUp" localX="10" localY="20" target="" waitTarget="swf1.content.document.subcontrol1" waitEvent="updateComplete" ctrlKey="true"/>
+                <AssertPropertyValue target="swf1.content.document.subcontrol1" value="event.type: mouseUpSomewhere, event.altKey: false, event.buttonDown: false, event.ctrlKey: true, event.shiftKey: false" propertyName="text" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_SandboxRootMouseEvent_mouseMove_ctrlKey" description="Test that the mouseUp event is triggered." keywords="[SandboxRootMouseEvent, mouseUp, Marshall Plan]">
+             <setup>
+               <DispatchMouseEvent type="mouseUp" localX="10" localY="20" target="" waitTarget="" waitEvent="mouseUp"/>
+               <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+			   <SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <Pause timeout="100" />
+               <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+		   	   <SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Simple_Child.swf?248_3?248_3?248_3" waitTarget="swf1" waitEvent="updateComplete"/>
+			   <SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+			</setup>
+			<body>
+			  	<WaitForSandboxApp target="swf1" />
+			    <DispatchMouseClickEvent localX="10" localY="20" target="" waitTarget="" waitEvent="mouseUp"/>
+                <DispatchMouseEvent type="mouseMove" localX="15" localY="20" target="" ctrlKey="true" waitTarget="swf1.content.document.subcontrol1" waitEvent="updateComplete"/>
+                <AssertPropertyValue target="swf1.content.document.subcontrol1" value="event.type: mouseMoveSomewhere, event.altKey: false, event.buttonDown: false, event.ctrlKey: true, event.shiftKey: false" propertyName="text" />
+           </body>
+         </TestCase>
+         <TestCase testID="MP_AddChildBridgeEvent" description="Test that the addChildBridge event is triggered." keywords="[AddChildBridge, mouseUp, Marshall Plan]">
+            <setup>
+	        <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+	    	<SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+	    	<Pause timeout="100" />
+	        <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+	    	<SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Simple_Child.swf?100_3?100_3?100_3" waitTarget="swf1" waitEvent="updateComplete"/>
+	    	<SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+	    </setup>
+	    <body>
+		<AssertEvent target="systemManager" eventName="addChildBridge" eventClass="mx.events::FlexChangeEvent" />
+	    </body>
+         </TestCase>
+         <TestCase testID="MP_RemoveChildBridgeEvent" description="Test that the removeChildBridge event is triggered." keywords="[removeChildBridge, mouseUp, Marshall Plan]">
+            <setup>
+	        <Pause timeout="100" />
+	        <SetProperty target="swf1" propertyName="autoLoad" value="false" />
+	    	<SetProperty target="swf1" propertyName="source" value="http://localhost:{portNumber}/MarshallPlan/SWFs/assets/MP_Simple_Child.swf?100_3?100_3?100_3" waitTarget="swf1" waitEvent="updateComplete"/>
+	    	<SetProperty target="swf1" propertyName="autoLoad" value="true" waitTarget="swf1" waitEvent="complete"/>
+	    </setup>
+	    <body>
+	        <WaitForSandboxApp target="swf1" />
+	        <SetProperty target="swf1" propertyName="autoLoad" value="true" />
+	    	<SetProperty target="swf1" propertyName="source" value="../../../Assets/Images/smallpurplerect.jpg" waitTarget="swf1" waitEvent="updateComplete"/>
+		<AssertEvent target="systemManager" eventName="removeChildBridge" eventClass="mx.events::FlexChangeEvent" />
+	    </body>
+         </TestCase>
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/Events/MP_Events_Tests.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/Events/MP_Events_Tests.sh?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/Events/MP_Events_Tests.sh (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/Events/MP_Events_Tests.sh Mon Aug  6 20:20:08 2012
@@ -0,0 +1,22 @@
+#!/bin/sh
+################################################################################
+##
+##  Licensed to the Apache Software Foundation (ASF) under one or more
+##  contributor license agreements.  See the NOTICE file distributed with
+##  this work for additional information regarding copyright ownership.
+##  The ASF licenses this file to You under the Apache License, Version 2.0
+##  (the "License"); you may not use this file except in compliance with
+##  the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+##  Unless required by applicable law or agreed to in writing, software
+##  distributed under the License is distributed on an "AS IS" BASIS,
+##  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+##  See the License for the specific language governing permissions and
+##  limitations under the License.
+##
+################################################################################
+cd ../SWFs/assets
+
+$SDK_DIR/bin/mxmlc -includes=mx.managers.systemClasses.MarshallingSupport -source-path=$MUSTELLA_DIR/as3/src/mustella -includes=UnitTester -theme=$SDK_DIR/frameworks/themes/Halo/halo.swc MP_Simple_Child.mxml
\ No newline at end of file

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

Added: incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/CustomToolTip1.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/CustomToolTip1.as?rev=1369972&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/CustomToolTip1.as (added)
+++ incubator/flex/trunk/mustella/tests/MarshallPlan/ManagerTests/CustomToolTip1.as Mon Aug  6 20:20:08 2012
@@ -0,0 +1,58 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package
+{
+ import mx.containers.Panel;
+ import mx.controls.Label;
+ import mx.core.IToolTip;
+ import mx.managers.ToolTipManager;
+
+ public class CustomToolTip1 extends Panel implements IToolTip
+ {
+  private var _label:Label;
+  
+  public function CustomToolTip1()
+  {
+   super();
+  }
+  
+  override protected function createChildren():void
+  {
+   super.createChildren();
+   
+   _label = new Label();
+   addChild( _label );    
+  }  
+
+  override protected function commitProperties():void
+  {
+   super.commitProperties();   
+   text = ToolTipManager.currentTarget[ "toolTip" ];
+  }  
+    
+  public function get text() : String
+  {
+   return _label.text;
+  }
+  public function set text( value:String ) : void
+  {
+   _label.text = value;
+  }
+ }
+}



Mime
View raw message