flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1369970 [7/16] - in /incubator/flex/trunk/mustella/tests/Managers: ./ CursorManager/ CursorManager/Methods/ CursorManager/Props/ CursorManager/SWFs/ CursorManager/SWFs/Assets/ DragManager/ DragManager/Events/ DragManager/Halo/ DragManager/...
Date Mon, 06 Aug 2012 20:17:23 GMT
Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/Properties/PopUpManager_properties.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/Properties/PopUpManager_properties.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/Properties/PopUpManager_properties.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/Properties/PopUpManager_properties.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,229 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="Managers/PopUpManager/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="PopUpManager_Basic.mxml">
+
+    <mx:Script>
+	<![CDATA[
+		import mx.core.FlexGlobals;
+		
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+		public function cleanUpPopUps(): void
+		{
+		    if(application.parent.numChildren > 1)
+		    {
+		        var popups:int = application.parent.popUpChildren.numChildren;
+		        
+				if(popups > 0)
+				{
+					FlexGlobals.topLevelApplication.addEventListener('remove' , childRemoved);
+					application.parent.removeChild(application.parent.popUpChildren.getChildAt(0));
+				}
+				
+				FlexGlobals.topLevelApplication.dispatchEvent(new Event("cleanUpComplete"));
+			}
+			
+		    FlexGlobals.topLevelApplication.dispatchEvent(new Event("cleanUpComplete"));
+		}
+		
+		private function childRemoved(e:Event):void
+		{
+			cleanUpPopUps();
+		}
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+	<testCases>
+    <!--alpha property -->
+        <TestCase testID="PopUp_propeties_alpha_02" description="Test setting the alpha property to 0.2 for a popup" keywords="[alpha, PopUpManager]">
+			<setup>
+			    <RunCode code="cleanUpPopUps()" waitEvent="cleanUpComplete" waitTarget=""/>
+			   	<RunCode code="application.openWindow(false)" waitTarget="systemManager.topLevelSystemManager.getChildAt(0)" waitEvent="updateComplete" />
+			</setup>
+			<body>
+			    <SetProperty propertyName="alpha" value="0.2" target="iPopUp" waitTarget="iPopUp" waitEvent="alphaChanged" />
+			    <AssertPixelValue value="0xFDFDFD" x="90" y="8" target="iPopUp" />
+			    <RunCode code="application.closeWindow(application.iPopUp)" />
+			   
+			</body>
+		</TestCase>
+        <TestCase testID="PopUp_propeties_alpha_1" description="Test setting the alpha property to 1 for a popup" keywords="[alpha, PopUpManager]">
+			<setup>
+			    <RunCode code="cleanUpPopUps()" waitEvent="cleanUpComplete" waitTarget=""/>
+			    <RunCode code="application.openWindow(false)" waitTarget="systemManager.topLevelSystemManager.getChildAt(0)" waitEvent="updateComplete" />
+		    </setup>
+			<body>
+			    <SetProperty propertyName="alpha" value="1" target="iPopUp" />
+			    <AssertPixelValue value="0xF3F3F3" x="36" y="3" target="iPopUp" />
+			    <RunCode code="application.closeWindow(application.iPopUp)" />
+			</body>
+		</TestCase>
+       <TestCase testID="PopUp_propeties_alpha_0" description="Test setting the alpha property to 0 for a popup" keywords="[alpha, PopUpManager]">
+			<setup>
+				<RunCode code="cleanUpPopUps()" waitEvent="cleanUpComplete" waitTarget=""/>
+				<RunCode code="application.openWindow(false)" waitTarget="systemManager.topLevelSystemManager.getChildAt(0)" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<SetProperty propertyName="alpha" value="0" target="iPopUp" waitTarget="iPopUp" waitEvent="alphaChanged" />
+				<AssertPixelValue value="0xFFFFFF" x="37" y="3" target="iPopUp" />
+				<RunCode code="application.closeWindow(application.iPopUp)" />
+			</body>
+		</TestCase>
+
+		<!-- note: There is a Pause in this test because I couldn't find an event to synchronize on after the PopUp is up, but it finishes rendering. W/o the
+		current Pause, the test fails -->
+		   <TestCase testID="PopUp_propeties_alpha_MXML" description="Test setting the alpha property to 0.5 in mxml for a popup" keywords="[alpha, PopUpManager]">
+			<setup>
+				<RunCode code="cleanUpPopUps()" />
+				<WaitForEffectsToEnd />
+				<RunCode code="application.openWindow2(false)" waitTarget="systemManager.topLevelSystemManager.getChildAt(0)" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertPixelValue value="0xF9F9F9" x="84" y="4" target="iPopUp" />
+				<RunCode code="application.closeWindow(application.iPopUp)" />
+			</body>
+		</TestCase>
+
+   <!-- property: height -->
+		   <TestCase testID="PopUp_propeties_height_300" description="Test setting the height property to 300 for a popup" keywords="[height, PopUpManager]">
+			<setup>
+				<RunCode code="cleanUpPopUps()" />
+				<WaitForEffectsToEnd />
+				<RunCode code="application.openWindow3(false)" waitTarget="systemManager.topLevelSystemManager.getChildAt(0)" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<SetProperty propertyName="height" value="300" target="iPopUp" waitTarget="iPopUp" waitEvent="updateComplete" />
+				<AssertPixelValue value="0xFF0000" x="0" y="0" target="" />
+				<AssertPixelValue value="0xFF0000" x="0" y="299" target="" />
+				<AssertPixelValue value="0xFFFFFF" x="0" y="301" target="" />
+				<RunCode code="application.closeWindow(application.iPopUp)" />
+			</body>
+		</TestCase>
+		   <TestCase testID="PopUp_propeties_height_MXML" description="Test setting the height property to 250 for a popup in mxml" keywords="[height, PopUpManager]">
+			<setup>
+				<RunCode code="cleanUpPopUps()" />
+				<WaitForEffectsToEnd />
+				<RunCode code="application.openWindow4(false)" waitTarget="systemManager.topLevelSystemManager.getChildAt(0)" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertPixelValue value="0xFF0000" x="0" y="0" target="" />
+				<AssertPixelValue value="0xFF0000" x="0" y="239" target="" />
+				<AssertPixelValue value="0xFFFFFF" x="0" y="251" target="" />
+				<RunCode code="application.closeWindow(application.iPopUp)" />
+			</body>
+		</TestCase>
+   <!-- property: width -->
+	   <TestCase testID="PopUp_propeties_width_300" description="Test setting the width property to 300 for a popup" keywords="[width, PopUpManager]">
+			<setup>
+				<RunCode code="cleanUpPopUps()" />
+				<WaitForEffectsToEnd />
+				<RunCode code="application.openWindow3(false)" waitTarget="systemManager.topLevelSystemManager.getChildAt(0)" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<SetProperty propertyName="width" value="300" target="iPopUp" waitTarget="iPopUp" waitEvent="updateComplete" />
+				<AssertPixelValue value="0xFF0000" x="0" y="0" target="" />
+				<AssertPixelValue value="0xFF0000" x="299" y="0" target="" />
+				<AssertPixelValue value="0xFFFFFF" x="301" y="2" target="" />
+				<RunCode code="application.closeWindow(application.iPopUp)" />
+			</body>
+		</TestCase>
+		   <TestCase testID="PopUp_propeties_width_MXML" description="Test setting the width property to 400 for a popup in mxml" keywords="[width, PopUpManager]">
+			<setup>
+				<RunCode code="cleanUpPopUps()" />
+				<WaitForEffectsToEnd />
+				<RunCode code="application.openWindow4(false)" waitTarget="systemManager.topLevelSystemManager.getChildAt(0)" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertPixelValue value="0xFF0000" x="0" y="0" target="" />
+				<AssertPixelValue value="0xFF0000" x="359" y="0" target="" />
+				<AssertPixelValue value="0xFFFFFF" x="401" y="0" target="" />
+				<RunCode code="application.closeWindow(application.iPopUp)" />
+			</body>
+		</TestCase>
+
+   <!-- property: scaleY -->
+	  <TestCase testID="PopUp_propeties_scaleY_05" description="Test setting the scaleY property to 0.5 for a popup" keywords="[scaleY, PopUpManager]">
+			<setup>
+				<RunCode code="cleanUpPopUps()" />
+				<WaitForEffectsToEnd />
+				<RunCode code="application.openWindow3(false)" waitTarget="systemManager.topLevelSystemManager.getChildAt(0)" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<SetProperty propertyName="height" value="600" target="iPopUp" />
+				<SetProperty propertyName="scaleY" value="0.5" target="iPopUp" waitTarget="iPopUp" waitEvent="updateComplete" />
+				<AssertPixelValue value="0xFF0000" x="0" y="0" target="" />
+				<AssertPixelValue value="0xFF0000" x="0" y="299" target="" />
+				<AssertPixelValue value="0xFFFFFF" x="0" y="301" target="" />
+				<RunCode code="application.closeWindow(application.iPopUp)" />
+			</body>
+		</TestCase>
+		   <TestCase testID="PopUp_propeties_scaleY_MXML" description="Test setting the scaleY property to 1.5 for a popup in mxml" keywords="[scaleY, PopUpManager]">
+			<setup>
+				<RunCode code="cleanUpPopUps()" />
+				<WaitForEffectsToEnd />
+				<RunCode code="application.openWindow5(false)" waitTarget="systemManager.topLevelSystemManager.getChildAt(0)" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertPixelValue value="0xFF0000" x="0" y="0" target="" />
+				<AssertPixelValue value="0xFF0000" x="0" y="374" target="" />
+				<AssertPixelValue value="0xFFFFFF" x="0" y="376" target="" />
+				<RunCode code="application.closeWindow(application.iPopUp)" />
+			</body>
+		</TestCase>
+   <!-- property: scaleX -->
+		 <TestCase testID="PopUp_propeties_scaleX_05" description="Test setting the scaleX property to .5 for a popup" keywords="[scaleX, PopUpManager]">
+			<setup>
+				<RunCode code="cleanUpPopUps()" />
+				<WaitForEffectsToEnd />
+				<RunCode code="application.openWindow3(false)" waitTarget="systemManager.topLevelSystemManager.getChildAt(0)" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<SetProperty propertyName="width" value="600" target="iPopUp" waitTarget="iPopUp" waitEvent="updateComplete" />
+				<SetProperty propertyName="scaleX" value="0.5" target="iPopUp" waitTarget="iPopUp" waitEvent="updateComplete" />
+				<AssertPixelValue value="0xFF0000" x="0" y="0" target="" />
+				<AssertPixelValue value="0xFF0000" x="299" y="0" target="" />
+				<AssertPixelValue value="0xFFFFFF" x="301" y="2" target="" />
+				<RunCode code="application.closeWindow(application.iPopUp)" />
+			</body>
+		</TestCase>
+		   <TestCase testID="PopUp_propeties_scaleX_MXML" description="Test setting the scaleX property to 1.5 for a popup in mxml" keywords="[scaleX, PopUpManager]">
+			<setup>
+				<RunCode code="cleanUpPopUps()" />
+				<WaitForEffectsToEnd />
+				<RunCode code="application.openWindow5(false)" waitTarget="systemManager.topLevelSystemManager.getChildAt(0)" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertPixelValue value="0xFF0000" x="0" y="0" target="" />
+				<AssertPixelValue value="0xFF0000" x="559" y="0" target="" />
+				<AssertPixelValue value="0xFFFFFF" x="601" y="2" target="" />
+				<RunCode code="application.closeWindow(application.iPopUp)" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/Properties/PopUpManager_properties_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/Properties/PopUpManager_properties_spark.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/Properties/PopUpManager_properties_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/Properties/PopUpManager_properties_spark.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,223 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="Managers/PopUpManager/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="PopUpManager_Basic_spark.mxml">
+
+    <mx:Script>
+	<![CDATA[
+
+       import mx.managers.PopUpManager;
+
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+		public function cleanUpPopUps(): void
+		{
+		    /*if(application.parent.numChildren > 1)
+		    {
+		        var popups:int = application.parent.popUpChildren.numChildren;
+				if(popups > 0)
+				{
+					for (var i:int=0; i<popups; i++)
+					{
+						application.parent.removeChild(application.parent.popUpChildren.getChildAt(i));
+					}
+				}
+		    }*/
+		    if(application.iPopUp.visible)
+		    {
+		        PopUpManager.removePopUp(application.iPopUp);
+		    }
+
+		    if(application.canvasPopUp.visible)
+		    {
+		        PopUpManager.removePopUp(application.canvasPopUp);
+		    }
+		}
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+	<testCases>
+    <!--alpha property -->
+        <TestCase testID="PopUp_properties_alpha_02" description="Test setting the alpha property to 0.2 for a popup" keywords="[alpha, PopUpManager]">
+			<setup>
+			    <RunCode code="application.openWindow(false)" waitTarget="systemManager" waitEvent="added" />
+			</setup>
+			<body>
+			    <SetProperty propertyName="alpha" value="0.2" target="iPopUp" waitTarget="iPopUp" waitEvent="alphaChanged" />
+			    <AssertPixelValue value="0xF9F9F9" x="90" y="8" target="iPopUp" />
+			    <RunCode code="application.closeWindow(application.iPopUp)" />
+			</body>
+		</TestCase>
+        <TestCase testID="PopUp_properties_alpha_1" description="Test setting the alpha property to 1 for a popup" keywords="[alpha, PopUpManager]">
+            <setup>
+                <RunCode code="cleanUpPopUps()" />
+                <WaitForEffectsToEnd />
+                <RunCode code="application.openWindow(false)" waitTarget="systemManager" waitEvent="added" />
+            </setup>
+            <body>
+                <SetProperty propertyName="x" value="100" target="iPopUp" waitEvent="updateComplete" waitTarget="iPopUp" />
+                <SetProperty propertyName="alpha" value="1" target="iPopUp"  />
+                <AssertPixelValue value="0xE1E1E1" x="36" y="3" target="iPopUp" />
+                <RunCode code="application.closeWindow(application.iPopUp)" />
+            </body>
+        </TestCase>
+        <TestCase testID="PopUp_properties_alpha_0" description="Test setting the alpha property to 0 for a popup" keywords="[alpha, PopUpManager]">
+            <setup>
+                <RunCode code="cleanUpPopUps()" />
+			    <WaitForEffectsToEnd />
+			    <RunCode code="application.openWindow(false)" waitTarget="systemManager" waitEvent="added" />
+            </setup>
+            <body>
+                <SetProperty propertyName="y" value="200" target="iPopUp" waitEvent="updateComplete" waitTarget="iPopUp" />
+                <SetProperty propertyName="alpha" value="0" target="iPopUp" waitTarget="iPopUp" waitEvent="alphaChanged" />
+                <AssertPixelValue value="0xFFFFFF" x="37" y="3" target="iPopUp" />
+                <RunCode code="application.closeWindow(application.iPopUp)" />
+            </body>
+        </TestCase>
+        <!-- note: There is a Pause in this test because I couldn't find an event to synchronize on after the PopUp is up, but it finishes rendering. W/o the
+        current Pause, the test fails -->
+        <TestCase testID="PopUp_properties_alpha_MXML" description="Test setting the alpha property to 0.5 in mxml for a popup" keywords="[alpha, PopUpManager]">
+            <setup>
+                <RunCode code="cleanUpPopUps()" />
+			    <WaitForEffectsToEnd />
+			    <RunCode code="application.openWindow2(false)" waitTarget="systemManager" waitEvent="added" />
+            </setup>
+            <body>
+                <SetProperty propertyName="x" value="200" target="iPopUp" waitEvent="updateComplete" waitTarget="iPopUp" />
+                <AssertPixelValue value="0xF0F0F0" x="84" y="4" target="iPopUp" />
+                <RunCode code="application.closeWindow(application.iPopUp)" />
+            </body>
+        </TestCase>
+        <TestCase testID="PopUp_properties_height_300" description="Test setting the height property to 300 for a popup" keywords="[height, PopUpManager]">
+            <setup>
+                <RunCode code="cleanUpPopUps()" />
+                <WaitForEffectsToEnd />
+                <RunCode code="application.openWindow3(false)" waitTarget="systemManager" waitEvent="added" />
+            </setup>
+            <body>
+                <SetProperty propertyName="height" value="300" target="iPopUp" waitTarget="iPopUp" waitEvent="updateComplete" />
+                <CompareBitmap url="../properties/baselines/$testID.png" target="iPopUp" timeout="2500" numColorVariances="3" ignoreMaxColorVariance="true"/>
+                <RunCode code="application.closeWindow(application.iPopUp)" />
+            </body>
+        </TestCase>
+        <TestCase testID="PopUp_properties_height_MXML" description="Test setting the height property to 250 for a popup in mxml" keywords="[height, PopUpManager]">
+            <setup>
+                <RunCode code="cleanUpPopUps()" />
+                <WaitForEffectsToEnd />
+                <RunCode code="application.openWindow4(false)" waitTarget="systemManager" waitEvent="added" />
+            </setup>
+            <body>
+                <CompareBitmap url="../properties/baselines/$testID.png" target="canvasPopUp" timeout="2500" />
+                <RunCode code="application.closeWindow(application.iPopUp)" />
+            </body>
+        </TestCase>
+<!-- property: width -->
+        <TestCase testID="PopUp_properties_width_300" description="Test setting the width property to 300 for a popup" keywords="[width, PopUpManager]">
+            <setup>
+                <RunCode code="cleanUpPopUps()" />
+                <WaitForEffectsToEnd />
+                <RunCode code="application.openWindow3(false)" waitTarget="systemManager" waitEvent="added" />
+            </setup>
+            <body>
+                <SetProperty propertyName="width" value="300" target="iPopUp" waitTarget="iPopUp" waitEvent="updateComplete" />
+                <CompareBitmap url="../properties/baselines/$testID.png" target="iPopUp" timeout="2500" />
+                <RunCode code="application.closeWindow(application.iPopUp)" />
+            </body>
+        </TestCase>
+        <TestCase testID="PopUp_properties_width_MXML" description="Test setting the width property to 400 for a popup in mxml" keywords="[width, PopUpManager]">
+            <setup>
+                <RunCode code="cleanUpPopUps()" />
+                <WaitForEffectsToEnd />
+                <RunCode code="application.openWindow4(false)" waitTarget="systemManager" waitEvent="added" />
+            </setup>
+            <body>
+                <CompareBitmap url="../properties/baselines/$testID.png" target="canvasPopUp" timeout="2500" />
+                <RunCode code="application.closeWindow(application.canvasPopUp)" />
+            </body>
+        </TestCase>
+
+<!-- property: scaleY -->
+        <TestCase testID="PopUp_properties_scaleY_05" description="Test setting the scaleY property to 0.5 for a popup" keywords="[scaleY, PopUpManager]">
+            <setup>
+                <RunCode code="cleanUpPopUps()" />
+                <WaitForEffectsToEnd />
+                <RunCode code="application.openWindow3(false)" waitTarget="systemManager" waitEvent="added" />
+            </setup>
+            <body>
+                <SetProperty propertyName="height" value="600" target="iPopUp" />
+                <SetProperty propertyName="scaleY" value="0.5" target="iPopUp" waitTarget="iPopUp" waitEvent="updateComplete" />
+                <SetProperty propertyName="x" value="100" target="iPopUp" waitTarget="iPopUp" waitEvent="move" />
+                <SetProperty propertyName="y" value="10" target="iPopUp" waitTarget="iPopUp" waitEvent="updateComplete" />
+                <AssertPixelValue value="0xFFFFFF" y="322" x="115" target="" />
+                <AssertPixelValue value="0xCDCDCD" y="309" x="215" target="" />
+                <AssertPixelValue value="0xFF0000" y="11" x="115" target="" />
+                <RunCode code="application.closeWindow(application.iPopUp)" />
+            </body>
+        </TestCase>
+        <TestCase testID="PopUp_properties_scaleY_MXML" description="Test setting the scaleY property to 1.5 for a popup in mxml" keywords="[scaleY, PopUpManager]">
+            <setup>
+                <RunCode code="cleanUpPopUps()" />
+                <WaitForEffectsToEnd />
+                <RunCode code="application.openWindow5(false)" waitTarget="systemManager" waitEvent="added" />
+            </setup>
+            <body>
+                <AssertPropertyValue target="iPopUp" propertyName="height" value="250" />
+                <RunCode code="application.closeWindow(application.iPopUp)" />
+            </body>
+        </TestCase>
+<!-- property: scaleX -->
+        <TestCase testID="PopUp_properties_scaleX_05" description="Test setting the scaleX property to .5 for a popup" keywords="[scaleX, PopUpManager]">
+            <setup>
+                <RunCode code="cleanUpPopUps()" />
+                <WaitForEffectsToEnd />
+                <RunCode code="application.openWindow3(false)" waitTarget="systemManager" waitEvent="added" />
+            </setup>
+            <body>
+                <SetProperty propertyName="width" value="600" target="iPopUp" waitTarget="iPopUp" waitEvent="updateComplete" />
+                <SetProperty propertyName="scaleX" value="0.5" target="iPopUp" waitTarget="iPopUp" waitEvent="updateComplete" />
+                <SetProperty propertyName="y" value="100" target="iPopUp" waitTarget="iPopUp" waitEvent="move" />
+                <SetProperty propertyName="x" value="10" target="iPopUp" waitTarget="iPopUp" waitEvent="updateComplete" />
+                <AssertPixelValue value="0xFFFFFF" x="322" y="115" target="" />
+                <AssertPixelValue value="0xFF0000" x="309" y="115" target="" />
+                <AssertPixelValue value="0xFF0000" x="11" y="115" target="" />
+                <RunCode code="application.closeWindow(application.iPopUp)" />
+            </body>
+        </TestCase>
+        <TestCase testID="PopUp_properties_scaleX_MXML" description="Test setting the scaleX property to 1.5 for a popup in mxml" keywords="[scaleX, PopUpManager]">
+            <setup>
+                <RunCode code="cleanUpPopUps()" />
+                <WaitForEffectsToEnd />
+                <RunCode code="application.openWindow5(false)" waitTarget="systemManager" waitEvent="added" />
+            </setup>
+            <body>
+                <AssertPropertyValue target="iPopUp" propertyName="height" value="250" />
+                <RunCode code="application.closeWindow(application.iPopUp)" />
+            </body>
+        </TestCase>
+	</testCases>
+</UnitTester>

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

Propchange: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/Properties/baselines/PopUpManager_bugSDK9428_spark.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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

Propchange: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/Properties/baselines/PopUp_properties_height_300.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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

Propchange: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/Properties/baselines/PopUp_properties_height_MXML.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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

Propchange: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/Properties/baselines/PopUp_properties_width_300.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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

Propchange: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/Properties/baselines/PopUp_properties_width_MXML.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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

Propchange: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/Properties/baselines/bug_SDK9428_1.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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

Propchange: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/Properties/baselines/bug_SDK9428_2.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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

Propchange: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/Properties/baselines/bug_SDK9428_3.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/Assets/myStyles.css
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/Assets/myStyles.css?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/Assets/myStyles.css (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/Assets/myStyles.css Mon Aug  6 20:17:09 2012
@@ -0,0 +1,52 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+@font-face {
+	src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+	fontFamily: "MyVerdana";
+			embedAsCFF: false;
+}
+
+@font-face {
+	src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+	fontFamily: "MyVerdana";
+	fontWeight: bold;
+			embedAsCFF: false;
+}
+
+@font-face {
+	src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+	fontFamily: "MyVerdana";
+	fontStyle: italic;
+			embedAsCFF: false;
+}
+
+@font-face {
+	src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+	fontFamily: "MyVerdana";
+	fontWeight: bold;
+	fontStyle: italic;
+			embedAsCFF: false;
+}
+
+global {
+    fontFamily: "MyVerdana";
+    fontAntiAliasType: "normal";
+}
+
+

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

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Basic.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Basic.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Basic.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Basic.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Application backgroundColor="0xFFFFFF" backgroundImage="" xmlns:mx="http://www.adobe.com/2006/mxml" width="800" height="700"
+    xmlns:comps="comps.*" >
+<mx:Script>
+    <![CDATA[
+
+       import mx.managers.PopUpManager;
+	   import comps.myTitleWindow;
+	   import mx.controls.Button;
+	   import mx.containers.Panel;
+	   import mx.core.IFlexDisplayObject;
+	   import mx.events.FlexMouseEvent;
+
+    public var iPopUp:IFlexDisplayObject;
+
+	public var iPanel:Panel;
+
+	public function openWindow(modalSetting:Boolean):void
+	{
+		iPopUp = PopUpManager.createPopUp(this, comps.myTitleWindow, modalSetting, "popup");
+	}
+
+	public function openWindow2(modalSetting:Boolean):void
+	{
+		iPopUp = PopUpManager.createPopUp(this, comps.myTitleWindowMXML, modalSetting, "popup");
+	}
+
+	public function closeWindow(popUp:IFlexDisplayObject):void
+	{
+		PopUpManager.removePopUp(popUp);
+	}
+
+	public function openWindow3(modalSetting:Boolean):void
+	{
+		iPopUp = PopUpManager.createPopUp(this, comps.MyCanvas, modalSetting, "popup");
+	}
+
+	public function openWindow4(modalSetting:Boolean):void
+	{
+		iPopUp = PopUpManager.createPopUp(this, comps.MyCanvasMXML, modalSetting, "popup");
+	}
+
+	public function openWindow5(modalSetting:Boolean):void
+	{
+		iPopUp = PopUpManager.createPopUp(this, comps.MyCanvasMXML2, modalSetting, "popup");
+	}
+
+	public function openWindow6(modalSetting:Boolean):void
+	{
+		iPopUp = PopUpManager.createPopUp(myPanel, comps.myTitleWindow, modalSetting, "popup");
+	}
+
+	public function centerMyPopUp():void
+	{
+		PopUpManager.centerPopUp(iPopUp);
+	}
+
+	public function addWindow(modalSetting:Boolean):void
+	{
+		iPanel = new Panel();
+		iPanel.title = "My Test PopUp: Modal Setting:" + String(modalSetting);
+		iPanel.width=220;
+		iPanel.height=150;
+		var btn2:Button = new Button();
+		btn2.label="close";
+		iPanel.addChild(btn2);
+	    PopUpManager.addPopUp(iPanel, this , modalSetting);
+	}
+
+  ]]>
+</mx:Script>
+
+<mx:TextInput id="ta" />
+<mx:Panel id="myPanel" />
+
+ </mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Basic_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Basic_spark.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Basic_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Basic_spark.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,163 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark" width="800" height="700"
+    xmlns:comps="comps.*" initialize="init()">
+    <s:layout>
+        <s:VerticalLayout />
+    </s:layout>
+     <fx:Style>
+	 		@namespace s "library://ns.adobe.com/flex/spark";
+	 		@namespace mx "library://ns.adobe.com/flex/mx";
+	 		@font-face{
+	 			src: url("../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Regular.ttf");
+	 			fontFamily: myArial;
+	 			embedAsCFF: true;
+	 		}
+	 
+	 
+	 		@font-face{
+	 			src: url("../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Bold.ttf");
+	 			fontWeight: bold;
+	 			fontFamily: myArial;
+	 			embedAsCFF: true;
+	 		}
+	 
+	 		@font-face{
+	 			src: url("../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Italic.ttf");
+	 			fontStyle: italic;
+	 			fontFamily: myArial;
+	 			embedAsCFF: true;
+	 
+	 		}
+	 		
+	 		@font-face {
+				src: url("../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Regular.ttf");
+				fontFamily: MyArialHalo;
+				embedAsCFF: false;
+			}
+
+			@font-face {
+				src: url("../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Italic.ttf");
+	 			fontStyle: italic;
+				fontFamily: MyArialHalo;
+				embedAsCFF: false;
+			}
+
+			@font-face {
+				src: url("../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Bold.ttf");
+	 			fontWeight: bold;
+				fontFamily: MyArialHalo;		
+				embedAsCFF: false;
+			}		
+	 
+	 		mx|TextInput, mx|Button, mx|Panel, mx|Label {
+	 			fontAntiAliasType: "normal";
+				fontFamily: MyArialHalo;
+				fontSize: 12;
+			}
+			
+	 		global{
+	 			fontAntiAliasType: "normal";
+	 			fontFamily: myArial;
+	 			fontSize: 12;
+	 			fontLookup: "embeddedCFF";
+	 		}
+	</fx:Style>
+	<fx:Script>
+    <![CDATA[
+
+       import mx.managers.PopUpManager;
+	   import comps.myTitleWindow;
+	   import mx.controls.Button;
+	   import mx.containers.Panel;
+	   import mx.core.IFlexDisplayObject;
+	   import mx.events.FlexMouseEvent;
+
+    public var iPopUp:IFlexDisplayObject;
+    public var popUpTitleWindow:IFlexDisplayObject;
+    public var canvasPopUp:IFlexDisplayObject;
+
+	public var iPanel:Panel;
+
+	private function init(): void
+	{
+	    canvasPopUp = PopUpManager.createPopUp(this, comps.MyCanvasMXMLSpark, true, "popup");
+	    PopUpManager.removePopUp(canvasPopUp);
+	    iPanel = new Panel ();
+	}
+
+	public function openWindow(modalSetting:Boolean):void
+	{
+		iPopUp = PopUpManager.createPopUp(this, comps.myTitleWindow, modalSetting, "popup");
+	}
+
+	public function openWindow2(modalSetting:Boolean):void
+	{
+		iPopUp = PopUpManager.createPopUp(this, comps.myTitleWindowMXML, modalSetting, "popup");
+	}
+
+	public function closeWindow(popUp:IFlexDisplayObject):void
+	{
+		PopUpManager.removePopUp(popUp);
+	}
+
+	public function openWindow3(modalSetting:Boolean):void
+	{
+		iPopUp = PopUpManager.createPopUp(this, comps.MyCanvas2Spark, modalSetting, "popup");
+	}
+
+	public function openWindow4(modalSetting:Boolean):void
+	{
+		PopUpManager.addPopUp(canvasPopUp, this, modalSetting);
+	}
+
+	public function openWindow5(modalSetting:Boolean):void
+	{
+		iPopUp = PopUpManager.createPopUp(this, comps.MyCanvasMXML2Spark, modalSetting, "popup");
+	}
+
+	public function openWindow6(modalSetting:Boolean):void
+	{
+		iPopUp = PopUpManager.createPopUp(myPanel, comps.myTitleWindow, modalSetting, "popup");
+	}
+
+	public function centerMyPopUp():void
+	{
+		PopUpManager.centerPopUp(canvasPopUp);
+	}
+
+	public function addWindow(modalSetting:Boolean):void
+	{
+		iPanel.title = "My Test PopUp: Modal Setting:" + String(modalSetting);
+		iPanel.width=220;
+		iPanel.height=150;
+		var btn2:Button = new Button();
+		btn2.label="close";
+		iPanel.addChild(btn2);
+	    PopUpManager.addPopUp(iPanel, this , modalSetting);
+	}
+
+  ]]>
+</fx:Script>
+
+<mx:TextInput id="ta" />
+<mx:Panel id="myPanel" />
+
+ </s:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Bug148179.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Bug148179.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Bug148179.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Bug148179.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Application backgroundColor="0xFFFFFF" xmlns:mx="http://www.adobe.com/2006/mxml" width="800" height="700"
+    xmlns:comps="comps.*" creationComplete="openWindow();centerMyPopUp()">
+<mx:Script>
+    <![CDATA[
+
+       import mx.managers.PopUpManager;
+       import comps.myTitleWindow;
+       import mx.core.IFlexDisplayObject;
+       import mx.events.FlexMouseEvent;
+
+    public var iPopUp:IFlexDisplayObject;
+
+    public function openWindow():void
+    {
+        iPopUp = PopUpManager.createPopUp(this, comps.MyCanvasMXML, false, "popup");
+    }
+
+    public function closeWindow(popUp:IFlexDisplayObject):void
+    {
+        PopUpManager.removePopUp(popUp);
+    }
+
+    public function centerMyPopUp():void
+    {
+        PopUpManager.centerPopUp(iPopUp);
+    }
+
+
+  ]]>
+</mx:Script>
+
+ </mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Bugs.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Bugs.compile?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Bugs.compile (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Bugs.compile Mon Aug  6 20:17:09 2012
@@ -0,0 +1,2 @@
+ -theme=${flexlib}/themes/Halo/halo.swc
+-includes=mx.managers.systemClasses.MarshallingSupport
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Bugs.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Bugs.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Bugs.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Bugs.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,134 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Application backgroundColor="0xFFFFFF" backgroundImage="" xmlns:mx="http://www.adobe.com/2006/mxml" width="800" height="700"
+    xmlns:comps="comps.*" >
+<mx:Script>
+    <![CDATA[
+
+       import mx.managers.PopUpManager;
+       import mx.core.IFlexDisplayObject;
+       import mx.events.FlexMouseEvent;
+       import comps.*;
+       import mx.controls.Button;
+       import mx.containers.TitleWindow;
+
+    public var iPopUp:IFlexDisplayObject;
+    public var t1:GateKeeper;
+    public var tw1:TitleWindow;
+    public var tw2:TitleWindow;
+
+    public function openWindow(modalSetting:Boolean):void
+    {
+        iPopUp = PopUpManager.createPopUp(this, comps.myTitleWindow, modalSetting, "popup");
+    }
+
+    public function openWindow2(modalSetting:Boolean):void
+    {
+        iPopUp = PopUpManager.createPopUp(this, comps.TwComp, modalSetting, "popup");
+    }
+
+    public function openWindow3(modalSetting:Boolean):void
+    {
+        iPopUp = PopUpManager.createPopUp(this, comps.TransparencyPopUp, modalSetting, "popup");
+    }
+
+    public function closeWindow(popUp:IFlexDisplayObject):void
+    {
+        PopUpManager.removePopUp(popUp);
+    }
+
+    public function centerMyPopUp():void
+    {
+        PopUpManager.centerPopUp(iPopUp);
+    }
+
+    public function testPopupBug():void
+    {
+         t1 = GateKeeper(PopUpManager.createPopUp(this,GateKeeper, true));
+         var app:DisplayObject = this;
+         t1.width = 200;
+         t1.height = 200;
+         t1.title = "My window";
+
+         /*setTimeout(function():uint
+         {
+            PopUpManager.removePopUp(t1);
+            PopUpManager.addPopUp(t1, app, true);
+            return 0;
+         } , 300);
+         */
+    }
+
+
+
+    public function openWindow4():void
+    {
+        tw1= new TitleWindow();
+        tw1.title = "Window #1";
+        tw1.width = 220;
+        tw1.height = 150;
+
+        var btn1:Button = new Button();
+        var ti1:TextInput = new TextInput();
+        btn1.label = "open another window";
+        btn1.addEventListener("click", openWindow5);
+        tw1.addChild(btn1);
+        tw1.addChild(ti1);
+        PopUpManager.addPopUp(tw1, this, false);
+    }
+
+    public function openWindow5(event:Event):void
+    {
+        tw2 = new TitleWindow();
+        PopUpManager.addPopUp(tw2, this,  false);
+
+        tw2.title = "Window #2";
+        tw2.width = 220;
+        tw2.height = 150;
+        tw2.x = 150;
+        tw2.y = 100;
+        var btn2:Button = new Button();
+        var ti2:TextInput = new TextInput();
+        btn2.label = "open another window";
+        tw2.addChild(btn2);
+        tw2.addChild(ti2);
+    }
+    
+    public function popupPanel():void
+    {
+         for(var i:int=0; i<3; i++)
+         {
+             var tmp:Panel = Panel(PopUpManager.createPopUp(this,Panel,false));
+             tmp.width = 200;
+             tmp.height = 200;
+             tmp.title = "Panel "+i;
+             tmp.x=i*50;
+             tmp.y=i*50;
+         }           
+    }
+
+  ]]>
+</mx:Script>
+
+<mx:Style source="Assets/myStyles.css" />
+
+<mx:TextInput id="ta" />
+<mx:Panel id="pnl1" />
+ </mx:Application>

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Bugs_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Bugs_spark.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Bugs_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/PopUpManager_Bugs_spark.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,146 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
+    width="800" height="700" xmlns:comps="comps.*" >
+    <s:layout>
+	        <s:VerticalLayout />
+    </s:layout>
+<fx:Script>
+    <![CDATA[
+
+       import mx.managers.PopUpManager;
+       import mx.core.IFlexDisplayObject;
+       import mx.events.FlexMouseEvent;
+       import comps.*;
+       import mx.controls.Button;
+       import mx.containers.TitleWindow;
+
+       public var iPopUp:IFlexDisplayObject;
+       public var t1:GateKeeper;
+       public var tw1:TitleWindow;
+       public var tw2:TitleWindow;
+       public var sparkPanel:SparkPanelComp;
+
+    public function openWindow(modalSetting:Boolean):void
+    {
+        iPopUp = PopUpManager.createPopUp(this, comps.myTitleWindow, modalSetting, "popup");
+    }
+
+    public function openWindow2(modalSetting:Boolean):void
+    {
+        iPopUp = PopUpManager.createPopUp(this, comps.TwComp, modalSetting, "popup");
+    }
+
+    public function openWindow3(modalSetting:Boolean):void
+    {
+        iPopUp = PopUpManager.createPopUp(this, comps.TransparencyPopUp, modalSetting, "popup");
+    }
+
+    public function closeWindow(popUp:IFlexDisplayObject):void
+    {
+        PopUpManager.removePopUp(popUp);
+    }
+
+    public function centerMyPopUp():void
+    {
+        PopUpManager.centerPopUp(iPopUp);
+    }
+
+    public function testPopupBug():void
+    {
+         t1 = GateKeeper(PopUpManager.createPopUp(this,GateKeeper, true));
+         var app:DisplayObject = this;
+         t1.width = 200;
+         t1.height = 200;
+         t1.title = "My window";
+
+         /*setTimeout(function():uint
+         {
+            PopUpManager.removePopUp(t1);
+            PopUpManager.addPopUp(t1, app, true);
+            return 0;
+         } , 300);
+         */
+    }
+
+
+
+    public function openWindow4():void
+    {
+        tw1= new TitleWindow();
+        tw1.title = "Window #1";
+        tw1.width = 220;
+        tw1.height = 150;
+
+        var btn1:Button = new Button();
+        var ti1:TextInput = new TextInput();
+        btn1.label = "open another window";
+        btn1.addEventListener("click", openWindow5);
+        tw1.addChild(btn1);
+        tw1.addChild(ti1);
+        PopUpManager.addPopUp(tw1, this, false);
+    }
+
+    public function openWindow5(event:Event):void
+    {
+        tw2 = new TitleWindow();
+        PopUpManager.addPopUp(tw2, this,  false);
+
+        tw2.title = "Window #2";
+        tw2.width = 220;
+        tw2.height = 150;
+        tw2.x = 150;
+        tw2.y = 100;
+        var btn2:Button = new Button();
+        var ti2:TextInput = new TextInput();
+        btn2.label = "open another window";
+        tw2.addChild(btn2);
+        tw2.addChild(ti2);
+    }
+
+    public function popupPanel():void
+    {
+         for(var i:int=0; i<3; i++)
+         {
+             var tmp:Panel = Panel(PopUpManager.createPopUp(this,Panel,false));
+             tmp.width = 200;
+             tmp.height = 200;
+             tmp.title = "Panel "+i;
+             tmp.x=i*50;
+             tmp.y=i*50;
+         }
+    }
+    
+    public function openSparkPanel(): void 
+    {
+        sparkPanel = new SparkPanelComp();
+        PopUpManager.addPopUp(sparkPanel, this, true);
+        PopUpManager.centerPopUp(sparkPanel);
+    }
+
+  ]]>
+</fx:Script>
+
+<fx:Style source="Assets/myStyles.css" />
+
+<mx:TextInput id="ta" />
+<mx:Panel id="pnl1" />
+<mx:Button id="button1" label="open spark Panel" click="openSparkPanel()" />
+ </s:Application>

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/GateKeeper.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/GateKeeper.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/GateKeeper.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/GateKeeper.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
+layout="absolute" width="100%"
+title="Log On" height="100%" >
+
+<mx:Script>
+<![CDATA[
+import mx.managers.PopUpManager;
+
+private function processLogon():void {
+PopUpManager.removePopUp(this);
+}
+]]>
+</mx:Script>
+
+<!-- TODO: in popup window tab order doesn't work, default button doesn't work -->
+<mx:Form top="25" bottom="75" left="25" right="25"
+defaultButton="{buttonLogon}" focusEnabled="true">
+<mx:FormItem label="User Name" width="100%" required="true">
+<mx:TextInput id="inputUsername" width="100%" editable="true" />
+</mx:FormItem>
+<mx:FormItem label="Password" width="100%" required="true">
+<mx:TextInput id="inputPassword" displayAsPassword="true" width="100%"
+editable="true"/>
+</mx:FormItem>
+</mx:Form>
+
+<mx:HBox bottom="25" left="25" right="25">
+<mx:Button id="buttonLogon" click="processLogon()" label="Log on" width="90"/>
+<mx:Button id="buttonCancel" label="Cancel" width="90"/>
+</mx:HBox>
+</mx:TitleWindow>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvas.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvas.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvas.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvas.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="0xFF0000">
+    <mx:Script>
+    <![CDATA[
+         import mx.managers.PopUpManager;
+    ]]>
+    </mx:Script>
+
+    <mx:HBox x="10" y="10">
+		<mx:Label text="username: " />
+		<mx:TextInput />
+    </mx:HBox>
+    <mx:HBox x="10" y="90">
+        <mx:Label text="password: " />
+        <mx:TextInput />
+    </mx:HBox>
+    <mx:Button x="10" y="160" label="Submit" click="PopUpManager.removePopUp(this)" />
+
+</mx:Canvas>

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvas2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvas2.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvas2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvas2.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" backgroundColor="0xFF0000" width="200" height="200">
+    <fx:Script>
+    <![CDATA[
+         import mx.managers.PopUpManager;
+    ]]>
+    </fx:Script>
+
+    <mx:HBox x="10" y="10">
+		<mx:Label text="username: " />
+		<mx:TextInput />
+    </mx:HBox>
+    <mx:HBox x="10" y="90">
+        <mx:Label text="password: " />
+        <mx:TextInput />
+    </mx:HBox>
+    <mx:Button x="10" y="160" label="Submit" click="PopUpManager.removePopUp(this)" />
+
+</mx:Canvas>

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvas2Spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvas2Spark.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvas2Spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvas2Spark.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" backgroundColor="0xFF0000" width="200" height="200">
+    <fx:Script>
+    <![CDATA[
+         import mx.managers.PopUpManager;
+    ]]>
+    </fx:Script>
+
+    <mx:HBox x="10" y="10">
+		<mx:Label text="username: " />
+		<mx:TextInput contentBackgroundColor="0xFFFFFF"/>
+    </mx:HBox>
+    <mx:HBox x="10" y="90">
+        <mx:Label text="password: " />
+        <mx:TextInput contentBackgroundColor="0xFFFFFF"/>
+    </mx:HBox>
+    <mx:Button x="10" y="160" label="Submit" click="PopUpManager.removePopUp(this)" />
+
+</mx:Canvas>

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvasMXML.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvasMXML.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvasMXML.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvasMXML.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="0xFF0000" width="400" height="250">
+    <mx:Script>
+    <![CDATA[
+         import mx.managers.PopUpManager;
+    ]]>
+    </mx:Script>
+
+    <mx:HBox x="10" y="10">
+		<mx:Label text="username: " />
+		<mx:TextInput />
+    </mx:HBox>
+    <mx:HBox x="10" y="90">
+        <mx:Label text="password: " />
+        <mx:TextInput />
+    </mx:HBox>
+    <mx:Button x="10" y="160" label="Submit" click="PopUpManager.removePopUp(this)" />
+
+</mx:Canvas>

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvasMXML2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvasMXML2.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvasMXML2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvasMXML2.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="0xFF0000" width="400" height="250"
+    scaleX="1.5" scaleY="1.5">
+    <mx:Script>
+    <![CDATA[
+         import mx.managers.PopUpManager;
+    ]]>
+    </mx:Script>
+
+    <mx:HBox x="10" y="10">
+		<mx:Label text="username: " />
+		<mx:TextInput />
+    </mx:HBox>
+    <mx:HBox x="10" y="90">
+        <mx:Label text="password: " />
+        <mx:TextInput />
+    </mx:HBox>
+    <mx:Button x="10" y="160" label="Submit" click="PopUpManager.removePopUp(this)" />
+
+</mx:Canvas>

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvasMXML2Spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvasMXML2Spark.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvasMXML2Spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvasMXML2Spark.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="0xFF0000" width="400" height="250"
+    scaleX="1.5" scaleY="1.5">
+    <mx:Script>
+    <![CDATA[
+         import mx.managers.PopUpManager;
+    ]]>
+    </mx:Script>
+
+    <mx:HBox x="10" y="10">
+		<mx:Label text="username: " />
+		<mx:TextInput contentBackgroundColor="0xFFFFFF"/>
+    </mx:HBox>
+    <mx:HBox x="10" y="90">
+        <mx:Label text="password: " />
+        <mx:TextInput contentBackgroundColor="0xFFFFFF"/>
+    </mx:HBox>
+    <mx:Button x="10" y="160" label="Submit" click="PopUpManager.removePopUp(this)" />
+
+</mx:Canvas>

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvasMXMLSpark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvasMXMLSpark.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvasMXMLSpark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/MyCanvasMXMLSpark.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="0xFF0000" width="400" height="250">
+    <mx:Script>
+    <![CDATA[
+         import mx.managers.PopUpManager;
+    ]]>
+    </mx:Script>
+
+    <mx:HBox x="10" y="10">
+		<mx:Label text="username: " />
+		<mx:TextInput contentBackgroundColor="0xFFFFFF"/>
+    </mx:HBox>
+    <mx:HBox x="10" y="90">
+        <mx:Label text="password: " />
+        <mx:TextInput contentBackgroundColor="0xFFFFFF"/>
+    </mx:HBox>
+    <mx:Button x="10" y="160" label="Submit" click="PopUpManager.removePopUp(this)" />
+
+</mx:Canvas>

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/SparkPanelComp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/SparkPanelComp.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/SparkPanelComp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/SparkPanelComp.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,39 @@
+<?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.
+
+-->
+<s:Panel xmlns:fx="http://ns.adobe.com/mxml/2009"
+xmlns:s="library://ns.adobe.com/flex/spark"
+xmlns:mx="library://ns.adobe.com/flex/halo" width="250" height="300">
+
+<fx:Script>
+    <![CDATA[
+        import mx.managers.PopUpManager;
+        
+        private function closePanel(): void
+        {
+            PopUpManager.removePopUp(this);
+        }
+    ]]>
+</fx:Script>
+
+<s:TextInput id="text1" y="10"/>
+<s:TextInput id="text2" y="50"/>
+<s:Button id="closeBtn" label="submit"  bottom="10" click="closePanel()"/>
+
+</s:Panel> 
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/TransparencyPopUp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/TransparencyPopUp.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/TransparencyPopUp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/TransparencyPopUp.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:TitleWindow
+	xmlns:mx="http://www.adobe.com/2006/mxml"
+	width="700" height="300"
+	modalTransparencyBlur="0"
+	modalTransparency="0"
+>
+  <mx:Script>
+      import mx.managers.DragManager;
+  </mx:Script>
+  <mx:Model id="model" source="books.xml" />
+
+	<mx:DataGrid id="dg" width="100%" height="100%"
+		dataProvider="{model.book}" dragEnabled="true"
+		dropEnabled="true" dragMoveEnabled="true"
+	/>
+	
+	<mx:DataGrid id="dg2" width="100%" height="100%"
+		dataProvider="[]" dragEnabled="true"
+		dropEnabled="true" dragMoveEnabled="true"
+	/>
+
+</mx:TitleWindow>
+
+

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/TwComp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/TwComp.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/TwComp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/TwComp.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" modalTransparency="0.9" modalTransparencyBlur="5">
+
+                <mx:Button label="Include" id="includeButton" width="120" click="btn1.includeInLayout=true;"/>
+                <mx:Button label="Exclude" click="btn1.includeInLayout=false;"/>
+                <mx:HBox  id="box1"
+                         backgroundColor="0xff0000"
+                        horizontalAlign="right"
+                        visible="false">
+                <mx:Button label="b1" width="120" id="btn1" includeInLayout="false"/>
+                </mx:HBox>
+
+</mx:TitleWindow>
+
+

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/books.xml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/books.xml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/books.xml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/books.xml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,138 @@
+<?xml version="1.0"?>
+<!--
+
+  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.
+
+-->
+<catalog>
+   <book id="bk101">
+      <author>Gambardella, Matthew</author>
+      <title>XML Developer's Guide</title>
+      <genre>Computer</genre>
+      <price>44.95</price>
+      <publish_date>2000-10-01</publish_date>
+      <description>An in-depth look at creating applications 
+      with XML.</description>
+   </book>
+   <book id="bk102">
+      <author>Ralls, Kim</author>
+      <title>Midnight Rain</title>
+      <genre>Fantasy</genre>
+      <price>5.95</price>
+      <publish_date>2000-12-16</publish_date>
+      <description>A former architect battles corporate zombies, 
+      an evil sorceress, and her own childhood to become queen 
+      of the world.</description>
+   </book>
+   <book id="bk103">
+      <author>Corets, Eva</author>
+      <title>Maeve Ascendant</title>
+      <genre>Fantasy</genre>
+      <price>5.95</price>
+      <publish_date>2000-11-17</publish_date>
+      <description>After the collapse of a nanotechnology 
+      society in England, the young survivors lay the 
+      foundation for a new society.</description>
+   </book>
+   <book id="bk104">
+      <author>Corets, Eva</author>
+      <title>Oberon's Legacy</title>
+      <genre>Fantasy</genre>
+      <price>5.95</price>
+      <publish_date>2001-03-10</publish_date>
+      <description>In post-apocalypse England, the mysterious 
+      agent known only as Oberon helps to create a new life 
+      for the inhabitants of London. Sequel to Maeve 
+      Ascendant.</description>
+   </book>
+   <book id="bk105">
+      <author>Corets, Eva</author>
+      <title>The Sundered Grail</title>
+      <genre>Fantasy</genre>
+      <price>5.95</price>
+      <publish_date>2001-09-10</publish_date>
+      <description>The two daughters of Maeve, half-sisters, 
+      battle one another for control of England. Sequel to 
+      Oberon's Legacy.</description>
+   </book>
+   <book id="bk106">
+      <author>Randall, Cynthia</author>
+      <title>Lover Birds</title>
+      <genre>Romance</genre>
+      <price>4.95</price>
+      <publish_date>2000-09-02</publish_date>
+      <description>When Carla meets Paul at an ornithology 
+      conference, tempers fly as feathers get ruffled.</description>
+   </book>
+   <book id="bk107">
+      <author>Thurman, Paula</author>
+      <title>Splish Splash</title>
+      <genre>Romance</genre>
+      <price>4.95</price>
+      <publish_date>2000-11-02</publish_date>
+      <description>A deep sea diver finds true love twenty 
+      thousand leagues beneath the sea.</description>
+   </book>
+   <book id="bk108">
+      <author>Knorr, Stefan</author>
+      <title>Creepy Crawlies</title>
+      <genre>Horror</genre>
+      <price>4.95</price>
+      <publish_date>2000-12-06</publish_date>
+      <description>An anthology of horror stories about roaches,
+      centipedes, scorpions  and other insects.</description>
+   </book>
+   <book id="bk109">
+      <author>Kress, Peter</author>
+      <title>Paradox Lost</title>
+      <genre>Science Fiction</genre>
+      <price>6.95</price>
+      <publish_date>2000-11-02</publish_date>
+      <description>After an inadvertant trip through a Heisenberg
+      Uncertainty Device, James Salway discovers the problems 
+      of being quantum.</description>
+   </book>
+   <book id="bk110">
+      <author>O'Brien, Tim</author>
+      <title>Microsoft .NET: The Programming Bible</title>
+      <genre>Computer</genre>
+      <price>36.95</price>
+      <publish_date>2000-12-09</publish_date>
+      <description>Microsoft's .NET initiative is explored in 
+      detail in this deep programmer's reference.</description>
+   </book>
+   <book id="bk111">
+      <author>O'Brien, Tim</author>
+      <title>MSXML3: A Comprehensive Guide</title>
+      <genre>Computer</genre>
+      <price>36.95</price>
+      <publish_date>2000-12-01</publish_date>
+      <description>The Microsoft MSXML3 parser is covered in 
+      detail, with attention to XML DOM interfaces, XSLT processing, 
+      SAX and more.</description>
+   </book>
+   <book id="bk112">
+      <author>Galos, Mike</author>
+      <title>Visual Studio 7: A Comprehensive Guide</title>
+      <genre>Computer</genre>
+      <price>49.95</price>
+      <publish_date>2001-04-16</publish_date>
+      <description>Microsoft Visual Studio 7 is explored in depth,
+      looking at how Visual Basic, Visual C++, C#, and ASP+ are 
+      integrated into a comprehensive development 
+      environment.</description>
+   </book>
+</catalog>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/myTitleWindow.as
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/myTitleWindow.as?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/myTitleWindow.as (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/myTitleWindow.as Mon Aug  6 20:17:09 2012
@@ -0,0 +1,48 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package comps {
+import mx.controls.*;
+import mx.containers.TitleWindow;
+import mx.events.CloseEvent;
+import mx.managers.PopUpManager;
+
+	public class myTitleWindow extends TitleWindow
+	{
+	   public function myTitleWindow() : void
+	   {
+          height=160;
+		  width=180;
+		  showCloseButton = true;
+
+		  var btn1:Button = new Button();
+		  btn1.label = "button 1";
+		  addChild(btn1);
+
+		  var date1:DateChooser = new DateChooser();
+		  addChild(date1);
+		  addEventListener("close", _close);
+	   }
+
+	   public function _close(event:CloseEvent) : void
+	   {
+		   PopUpManager.removePopUp(this);
+	   }
+
+	}
+}

Added: incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/myTitleWindowMXML.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/myTitleWindowMXML.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/myTitleWindowMXML.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/PopUpManager/SWFs/comps/myTitleWindowMXML.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" width="300" height="200" alpha="0.5" >
+    <mx:Script>
+    <![CDATA[
+         import mx.managers.PopUpManager;
+    ]]>
+    </mx:Script>
+
+    <mx:HBox>
+		<mx:Label text="username: " />
+		<mx:TextInput />
+    </mx:HBox>
+    <mx:HBox>
+        <mx:Label text="password: " />
+        <mx:TextInput />
+    </mx:HBox>
+    <mx:Button label="Submit" click="PopUpManager.removePopUp(this)" />
+
+</mx:TitleWindow>

Added: incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/SWFs/AdvancedCSSTest.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/SWFs/AdvancedCSSTest.mxml?rev=1369970&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/SWFs/AdvancedCSSTest.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Managers/StyleManager/AdvancedCSS/SWFs/AdvancedCSSTest.mxml Mon Aug  6 20:17:09 2012
@@ -0,0 +1,65 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx"
+    xmlns:s="library://ns.adobe.com/flex/spark" height="700">
+
+	<s:layout>
+		<s:VerticalLayout/>
+	</s:layout>
+
+	<fx:Style>
+		@namespace mx "library://ns.adobe.com/flex/mx";
+		@namespace s "library://ns.adobe.com/flex/spark";
+		* {
+			chromeColor:#FF0000;
+		}
+
+		@font-face
+		{
+		    src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+		    fontFamily: EmbeddedVerdana;
+		    embedAsCFF:true;
+		}
+
+		@font-face
+		{
+		    src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+		    fontWeight: bold;
+		    fontFamily: EmbeddedVerdana;
+		    embedAsCFF:true;
+		}
+
+		@font-face
+		{
+		    src: url("../../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+		    fontStyle: italic;
+		    fontFamily: EmbeddedVerdana;
+		    embedAsCFF:true;
+		}
+
+		s|Button
+		{
+		    fontFamily: EmbeddedVerdana;
+		    fontAntiAliasType: normal;
+        }
+	</fx:Style>
+
+	<s:Button label="Hello World!" id="sparkButton" fontLookup="embeddedCFF"/>
+</s:Application>
\ No newline at end of file



Mime
View raw message