flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1370009 [20/34] - in /incubator/flex/trunk/mustella/tests/apollo: ./ DragManager/ DragManager/SWFs/ DragManager/SWFs/assets/ DragManager/SWFs/comps/ DragManager/Spark/ DragManager/Spark/baselines/ FileComboBox/ FileComboBox/SWFs/ FileCombo...
Date Mon, 06 Aug 2012 20:51:43 GMT
Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_nochangeable_systemchrome.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_nochangeable_systemchrome.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_nochangeable_systemchrome.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_nochangeable_systemchrome.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,237 @@
+<?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="apollo/spark/components/Window/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_basic_005.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+	 import mx.core.FlexGlobals;
+	 import comps.*;
+	]]>
+	</mx:Script>
+
+    <testCases>
+
+	<!--
+	========================================================
+	Test no changeable property
+	========================================================
+	-->
+
+	<TestCase testID="syschrome_NCH_property_minimizable1" keywords="[Window,properties,minimizable]" description="once minimizable is set, verify it will not be changed" >
+	        <setup>
+	            <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>   
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')"  />        
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.minimizable=true"/>
+		</setup> 
+		<body>
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete" />
+		    <AssertPropertyValue target="windowObj" propertyName="minimizable" value ="true" />
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.minimizable=true"/>
+		    <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		    <AssertPropertyValue target="windowObj" propertyName="minimizable" value ="true" />         
+		    <CompareBitmap target="windowObj" url="../properties/baselines/$testID.png" />
+
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+	    </body>
+	</TestCase>
+
+	<TestCase testID="syschrome_NCH_property_minimizable2" keywords="[Window,properties,minimizable]" description="once minimizable is set(false), verify it will not be changed" >
+	        <setup>
+	            <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>   
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')"  />        
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.minimizable=false"/>
+		</setup> 
+		<body>
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.open(false)" waitTarget="" waitEvent="myWindowComplete" />
+		    <AssertPropertyValue target="windowObj" propertyName="minimizable" value ="false" />
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.minimizable=true"/>
+		    <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		    <AssertPropertyValue target="windowObj" propertyName="minimizable" value ="false" />         
+		    <CompareBitmap target="windowObj" url="../properties/baselines/$testID.png" />
+
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+	    </body>
+	</TestCase>
+
+	<TestCase testID="syschrome_NCH_property_maximizable1" keywords="[Window,properties,maximizable]" description="once maximizable is set, verify it will not be changed" >
+	      <setup>
+	      	    <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>   
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')"  />        
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.maximizable=true"/>
+		</setup> 
+		<body>
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete" />
+		    <AssertPropertyValue target="windowObj" propertyName="maximizable" value ="true" />
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.maximizable=true"/>
+		    <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		    <AssertPropertyValue target="windowObj" propertyName="maximizable" value ="true" />         
+		    <CompareBitmap target="windowObj" url="../properties/baselines/$testID.png" />
+
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+	    </body>
+	</TestCase>
+
+	<TestCase testID="syschrome_NCH_property_maximizable2" keywords="[Window,properties,maximizable]" description="once maximizable is set(false), verify it will not be changed" >
+	      <setup>
+	      	    <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>   
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')"  />        
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.maximizable=false"/>
+		</setup> 
+		<body>
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.open(false)" waitTarget="" waitEvent="myWindowComplete" />
+		    <AssertPropertyValue target="windowObj" propertyName="maximizable" value ="false" />
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.maximizable=true"/>
+		    <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		    <AssertPropertyValue target="windowObj" propertyName="maximizable" value ="false" />         
+		    <CompareBitmap target="windowObj" url="../properties/baselines/$testID.png" />
+
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+	    </body>
+	</TestCase>
+
+
+	<TestCase testID="syschrome_NCH_property_resizable1" keywords="[Window,properties,resizable]" description="once resizable is set, verify it will not be changed" >
+	      <setup>
+	      	    <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>   
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')"  />        
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.resizable=true"/>
+		</setup> 
+		<body>
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete" />
+		    <AssertPropertyValue target="windowObj" propertyName="resizable" value ="true" />
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.resizable=true"/>
+		    <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		    <AssertPropertyValue target="windowObj" propertyName="resizable" value ="true" />         
+		    <CompareBitmap target="windowObj" url="../properties/baselines/$testID.png" />
+
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+	    </body>
+	</TestCase>
+
+	<TestCase testID="syschrome_NCH_property_resizable2" keywords="[Window,properties,resizable]" description="once resizable is set(false), verify it will not be changed" >
+	      <setup>
+	            <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>   
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')"  />        
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.resizable=false"/>
+		</setup> 
+		<body>
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.open(false)" waitTarget="" waitEvent="myWindowComplete" />
+		    <AssertPropertyValue target="windowObj" propertyName="resizable" value ="false" />
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.resizable=true"/>
+		    <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		    <AssertPropertyValue target="windowObj" propertyName="resizable" value ="false" />         
+		    <CompareBitmap target="windowObj" url="../properties/baselines/$testID.png" />
+
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+	    </body>
+	</TestCase>
+
+	<TestCase testID="syschrome_NCH_property_transparent1" keywords="[Window,properties,transparent]" description="once transparent is set, verify it will not be changed" >
+	      <setup>
+	            <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>   
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')"  /> 
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.systemChrome='none'"/>
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.transparent=true"/>
+		</setup> 
+		<body>
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete" />
+		    <AssertPropertyValue target="windowObj" propertyName="transparent" value ="true" />
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.transparent=true"/>
+		    <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		    <AssertPropertyValue target="windowObj" propertyName="transparent" value ="true" />         
+		    <CompareBitmap target="windowObj" url="../properties/baselines/$testID.png" />
+
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+	    </body>
+	</TestCase>
+
+	<TestCase testID="syschrome_NCH_property_transparent2" keywords="[Window,properties,transparent]" description="once transparent is set(false), verify it will not be changed" >
+	      <setup>
+	            <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>   
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')"  />        
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.transparent=false"/>
+		</setup> 
+		<body>
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.open(false)" waitTarget="" waitEvent="myWindowComplete" />
+		    <AssertPropertyValue target="windowObj" propertyName="transparent" value ="false" />
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.transparent=true"/>
+		    <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		    <AssertPropertyValue target="windowObj" propertyName="transparent" value ="false" />         
+		    <CompareBitmap target="windowObj" url="../properties/baselines/$testID.png" />
+
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+	    </body>
+	</TestCase>
+
+	<TestCase testID="syschrome_NCH_property_type1" keywords="[Window,properties,type]" description="once type is set, verify it will not be changed" >
+	      <setup>
+	            <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>   
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')"  />        
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.type='normal'"/>
+		</setup> 
+		<body>
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete" />
+		    <AssertPropertyValue target="windowObj" propertyName="type" value ="normal" />
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.type=NativeWindowType.UTILITY"/>
+		    <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		    <AssertPropertyValue target="windowObj" propertyName="type" value ="normal" />         
+		    <CompareBitmap target="windowObj" url="../properties/baselines/$testID.png" />
+
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+	    </body>
+	</TestCase>
+
+
+
+	<TestCase testID="syschrome_NCH_property_systemChrome2" keywords="[Window,properties,systemChrome]" description="once systemChrome is set(false), verify it will not be changed" >
+	      <setup>
+	            <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>   
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')"  />        
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.systemChrome='standard'"/>
+		</setup> 
+		<body>
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.open(false)" waitTarget="" waitEvent="myWindowComplete" />
+		    <AssertPropertyValue target="windowObj" propertyName="systemChrome" value ="standard" />
+		    <RunCode code="FlexGlobals.topLevelApplication.windowObj.systemChrome='none'"/>
+		    <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		    <AssertPropertyValue target="windowObj" propertyName="systemChrome" value ="standard" />         
+		    <CompareBitmap target="windowObj" url="../properties/baselines/$testID.png" />
+
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+	    </body>
+	</TestCase>
+
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_others.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_others.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_others.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_others.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,198 @@
+<?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="apollo/spark/components/Window/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_basic_flexchrome.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+
+        import flash.system.Capabilities;
+        import mx.core.FlexGlobals;
+        import spark.components.*;
+        import spark.skins.spark.*;
+        import mx.controls.FlexNativeMenu;
+        import comps.*;
+
+	public var myMenuData:XML=
+	    <root>
+		<menuitem label="MenuItem A">    
+		</menuitem>
+		<menuitem label="MenuItem B" type="check" toggled="true"/>
+		<menuitem label="MenuItem C" type="check" toggled="false"/>
+		<menuitem type="separator"/>
+		<menuitem label="MenuItem D">   
+		</menuitem>
+    	    </root>;
+	[Embed(source="../../../../../../Assets/Images/yellowrect.jpg")]
+	private var testTitleIcon:Class;
+	private var b:Button =new Button();
+	]]>
+	</mx:Script>
+
+    <testCases>
+
+	<!--
+	========================================================
+	Tests here are mainly for code coverage
+	========================================================
+	-->
+
+	<TestCase testID="get_colorCorrection_test1" keywords="[Window,colorCorrection]" description="Confirm colorCorrection is default." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/>    
+	    </setup>
+	    <body>
+		<AssertPropertyValue target="myWin" propertyName="colorCorrection" value="default" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="set_colorCorrection_test1" keywords="[Window,colorCorrection]" description="Confirm colorCorrection is on once set." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/>    
+		<SetProperty target="myWin" propertyName="colorCorrection" value="on" waitEvent="updateComplete" />
+	    </setup>
+	    <body>
+		<AssertPropertyValue target="myWin" propertyName="colorCorrection" value="on" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="set_colorCorrection_test2" keywords="[Window,colorCorrection]" description="Confirm colorCorrection is off once set." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/>    
+		<SetProperty target="myWin" propertyName="colorCorrection" value="off" waitEvent="updateComplete" />
+	    </setup>
+	    <body>
+		<AssertPropertyValue target="myWin" propertyName="colorCorrection" value="off" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="get_menu_test1" keywords="[Window,menu]" description="get menu which not set" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/>    
+	    </setup>
+	    <body>
+		<AssertPropertyValue target="myWin" propertyName="menu" value="null" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="get_menu_test2" keywords="[Window,menu]" description="get menu which is set" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(Window,'window1')" />
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.systemChrome='standard'"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)"
+		waitTarget="" waitEvent="myWindowComplete"/>    
+	    </setup>
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.menu=new FlexNativeMenu();FlexGlobals.topLevelApplication.windowObj.menu.dataProvider=myMenuData;"/>
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="4"/>
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.windowObj.menu!=null" value="true" />
+
+	    </body>
+	</TestCase>
+
+	<TestCase testID="get_alwaysInFront_test1" keywords="[Window,alwaysInFront]" description="get alwaysInFront" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/>    
+	    </setup>
+	    <body>
+		 <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		 <AssertPropertyValue target="myWin" propertyName="alwaysInFront" value="false" />
+	    </body>
+	</TestCase>
+
+
+	<TestCase testID="get_cursorManager_test1" keywords="[Window,alwaysInFront]" description="get alwaysInFront" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/>    
+	    </setup>
+	    <body>
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.myWin.cursorManager!=null" value="true" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="getWindow_test1" keywords="[Window,getWindow]" description="getWindow should return the window" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindowByClass(Window,'window1')" waitTarget="" waitEvent="myWindowComplete"/>    
+	    </setup>
+	    <body>
+		<AssertMethodValue method="value=Window.getWindow(FlexGlobals.topLevelApplication.windowObj)==FlexGlobals.topLevelApplication.windowObj" value="true" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="getWindow_test2" keywords="[Window,getWindow]" description="getWindow should return the window" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindowByClass(Window,'window1')" waitTarget="" waitEvent="myWindowComplete"/>    
+	    </setup>
+	    <body>
+		<AssertMethodValue method="value=Window.getWindow(b)" value="null" />
+	    </body>
+	</TestCase>
+
+
+	<TestCase testID="get_titleIcon" keywords="[Window,titleIcon]" description="getTitleIcon" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/>    
+	    </setup>
+	    <body>
+		<AssertPropertyValue target="myWin" propertyName="titleIcon" value="null" />
+		<SetProperty target="myWin" propertyName="titleIcon" valueExpression="value=testTitleIcon" waitEvent="updateComplete" />
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.myWin.titleIcon" valueExpression="value=testTitleIcon" />
+	    </body>
+	</TestCase>
+
+
+
+
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_showStatus.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_showStatus.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_showStatus.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_showStatus.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,441 @@
+<?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="apollo/spark/components/Window/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_basic_flexchrome.mxml">
+
+	
+<!-- this set of lines form a template that must be in each unit test -->
+	
+<mx:Script>
+
+    <![CDATA[
+	
+        public static function init(o:DisplayObject):void
+
+        {
+	}
+	
+      ]]>
+	
+</mx:Script>
+	
+<mx:Metadata>
+	
+    <![CDATA[
+		
+    [Mixin]
+	
+    ]]>
+	
+</mx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	
+<mx:Script>
+	
+    <![CDATA[
+	 
+
+        import mx.core.FlexGlobals;
+        import spark.components.Window;
+	import spark.components.Button;
+	import mx.binding.utils.*;
+        import comps.*;
+        public var btn1:Button=new Button();
+
+
+	public var statusLongStr:String="Money doesn't grow on trees, but a tree-care supervisor in New York City's Central Park found an old wallet inside a dead one. The blue leather wallet had been stolen by a pickpocket 27 years ago. It was found in the hollow of a dying cherry tree. It was near where Ruth Bendik had hers swiped while she watched the New York City Marathon in 1982.";
+	
+        public function checkStatusBarWidth():Boolean
+	{
+	    return (FlexGlobals.topLevelApplication.myWin.width-FlexGlobals.topLevelApplication.myWin.statusBar.width)<10;   
+         
+	}
+        
+        public function setBinding():void
+	{
+	    BindingUtils.bindProperty( btn1, "label",
+	    FlexGlobals.topLevelApplication.windowObj, "status" );
+
+	    	
+	}
+    ]]>
+	
+</mx:Script>
+
+	
+
+<testCases>
+
+
+<!--
+========================================================
+
+    Test showStatusBar, status string
+
+========================================================
+-->
+
+
+
+<TestCase testID="property_showStatusBar_test0" keywords="[Window,flexChrome,Properties,showStatusBar]" 
+	description="check default value=true" >
+    
+    <setup>
+        
+        <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+        
+      
+    </setup>
+    
+   <body>
+              
+        <AssertPropertyValue target="myWin" propertyName="showStatusBar" value="true" />
+  
+        <AssertPropertyValue target="myWin" propertyName="status" value="" />
+
+        <RunCode code="FlexGlobals.topLevelApplication.myWin.activate()" waitEvent="enterFrame" waitTarget="stage"/>
+
+        <MyCompareBitmap target="myWin" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png"/>
+           <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"  waitTarget="myWin" waitEvent="close"/>
+    
+   </body>
+
+</TestCase>
+
+
+
+
+
+<TestCase testID="property_showStatusBar_test1" keywords="[Window,flexChrome,Properties,showStatusBar]" 
+	description="check showStatusBar=true property" >
+    
+    <setup>
+        
+        <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+        
+        <RunCode code="FlexGlobals.topLevelApplication.myWin.showStatusBar=true" />
+    
+    </setup>
+    
+   <body>
+            
+        <AssertPropertyValue target="myWin" propertyName="showStatusBar" value="true" />
+        
+        <SetProperty target="myWin" propertyName="status" value="this is a status string test" />
+        
+        <RunCode code="FlexGlobals.topLevelApplication.myWin.activate()"/>
+        <MyCompareBitmap target="myWin" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png"/>
+          <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"  waitTarget="myWin" waitEvent="close"/>
+    
+   </body>
+
+</TestCase>
+
+
+
+
+
+
+<TestCase testID="property_showStatusBar_test2" keywords="[Window,flexChrome,Properties,showStatusBar]" 
+	description="check showStatusBar=false property" >
+    
+    <setup>
+        
+        <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+        
+        <RunCode code="FlexGlobals.topLevelApplication.myWin.showStatusBar=false" />
+    
+    </setup>
+    
+    <body>
+            
+        <SetProperty target="myWin" propertyName="status" value="this is a status string test" />
+        
+        <AssertPropertyValue target="myWin" propertyName="showStatusBar" value="false" />
+        
+        <RunCode code="FlexGlobals.topLevelApplication.myWin.activate()"/>
+
+        <MyCompareBitmap target="myWin" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png"/>
+           <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"  waitTarget="myWin" waitEvent="close"/>
+    
+    </body>
+
+</TestCase>
+
+
+
+
+
+<TestCase testID="property_showStatusBar_resize1" keywords="[Window,flexChrome,Properties,showStatusBar]" 
+	description="check window content when window is resized larger" >
+    
+    <setup>
+        
+         <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(MyWindowWithContents,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+ 
+    </setup>
+    
+    <body>
+            
+        <SetProperty target="windowObj" propertyName="status" value="this is a status test, this is a status test, this is a status test" />
+
+        <RunCode code="FlexGlobals.topLevelApplication.windowObj.activate()"/>
+  
+	<RunCode code="FlexGlobals.topLevelApplication.windowObj.width=600;"/>
+ 	<RunCode code="FlexGlobals.topLevelApplication.windowObj.height=600;" waitTarget="windowObj" waitEvent="updateComplete"/>
+        <MyCompareBitmap target="windowObj" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png"/>
+	<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"  waitTarget="windowObj" waitEvent="close"/>
+    
+    </body>
+
+</TestCase>
+
+
+
+
+
+<TestCase testID="property_showStatusBar_resize2" keywords="[Window,flexChrome,Properties,showStatusBar]" 
+	description="check window content when window is resized smaller" >
+    
+    <setup>
+        
+         <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(MyWindowWithContents,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+ 
+    </setup>
+    
+    <body>
+            
+        <SetProperty target="windowObj" propertyName="status" value="this is a status test, this is a status test, this is a status test" />
+
+        <RunCode code="FlexGlobals.topLevelApplication.windowObj.activate()"/>
+  
+	<RunCode code="FlexGlobals.topLevelApplication.windowObj.width=200;"/>
+ 	<RunCode code="FlexGlobals.topLevelApplication.windowObj.height=200;" waitTarget="windowObj" waitEvent="updateComplete"/>
+        <MyCompareBitmap target="windowObj" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png"/>       
+      
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"  waitTarget="windowObj" waitEvent="close"/>
+    
+    </body>
+
+</TestCase>
+
+
+
+
+<TestCase testID="property_showStatusBar_resize3" keywords="[Window,flexChrome,Properties,showStatusBar]" 
+	description="check window content when window is minimized, restored" >
+    
+    <setup>
+        
+         <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(MyWindowWithContents,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+ 
+    </setup>
+    
+    <body>
+            
+        <SetProperty target="windowObj" propertyName="status" value="this is a status test, this is a status test, this is a status test" />
+
+	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+        <RunCode code="FlexGlobals.topLevelApplication.windowObj.minimize()" waitTarget="windowObj" waitEvent="displayStateChange"/>
+  
+        <RunCode code="FlexGlobals.topLevelApplication.windowObj.showStatusBar=false" />
+   
+        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+	<RunCode code="FlexGlobals.topLevelApplication.windowObj.restore()" waitTarget="windowObj" waitEvent="displayStateChange" />
+        <MyCompareBitmap target="windowObj" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png" />    
+      
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"  waitTarget="windowObj" waitEvent="close"/>
+    
+    </body>
+
+</TestCase>
+
+
+
+
+
+<TestCase testID="property_showStatusBar_resize4" keywords="[Window,flexChrome,Properties,showStatusBar]" 
+	description="check statusBar when window is maximized" >
+    
+    <setup>
+        
+         <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(MyWindowWithContents,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+ 
+    </setup>
+    
+    <body>
+            
+        <SetProperty target="windowObj" propertyName="status" value="this is a status test, this is a status test, this is a status test,this is a status test" />
+
+	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+        <AssertMethodValue method="value=checkStatusBarWidth()" value="true" />     
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"  waitTarget="windowObj" waitEvent="close"/>
+    
+    </body>
+
+</TestCase>
+
+
+
+
+<TestCase testID="property_showStatusBar_update1" keywords="[Window,flexChrome,Properties,showStatusBar]" 
+	description="check window content when statusBar=false to true" >
+    
+    <setup>
+        
+         <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(MyWindowWithContents,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+ 
+    </setup>
+    
+    <body>
+        
+ 	<RunCode code="FlexGlobals.topLevelApplication.windowObj.showStatusBar=false" />
+       
+        <SetProperty target="windowObj" propertyName="status" value="this is a status test, this is a status test, this is a status test" />
+
+        <RunCode code="FlexGlobals.topLevelApplication.windowObj.showStatusBar=true" />
+   
+	<RunCode code="FlexGlobals.topLevelApplication.windowObj.activate()"/>
+
+        <MyCompareBitmap target="windowObj" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png"/>    
+      
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"  waitTarget="windowObj" waitEvent="close"/>
+    
+    </body>
+
+</TestCase>
+
+
+
+
+
+<TestCase testID="property_showStatusBar_update2" keywords="[Window,flexChrome,Properties,showStatusBar]" 
+	description="check window content when statusBar=true to false" >
+    
+    <setup>
+        
+         <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(MyWindowWithContents,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+ 
+    </setup>
+    
+    <body>
+        
+ 	<RunCode code="FlexGlobals.topLevelApplication.windowObj.showStatusBar=false" />
+       
+        <SetProperty target="windowObj" propertyName="status" value="this is a status test, this is a status test, this is a status test" />
+
+	<RunCode code="FlexGlobals.topLevelApplication.windowObj.activate()"/>
+
+        <MyCompareBitmap target="windowObj" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png"/>         <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"  waitTarget="windowObj" waitEvent="close"/>
+    
+    </body>
+
+</TestCase>
+
+
+
+
+
+<TestCase testID="property_StatusString_test1" keywords="[Window,flexChrome,Properties,status]" 
+	description="check showStatusBar=true, status string is long string" >
+    
+    <setup>
+        
+        <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+        
+        <RunCode code="FlexGlobals.topLevelApplication.myWin.showStatusBar=true" />
+    
+    </setup>
+    
+    <body>
+        
+        <SetProperty target="myWin" propertyName="status"  valueExpression="value =statusLongStr"  />
+        
+        <AssertPropertyValue target="myWin" propertyName="status" valueExpression="value =statusLongStr" />
+        
+        <RunCode code="FlexGlobals.topLevelApplication.myWin.activate()"/>
+
+        <MyCompareBitmap target="myWin" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png"/>
+       
+    <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"  waitTarget="myWin" waitEvent="close"/>
+    
+    </body>
+
+</TestCase>
+
+
+
+
+
+
+
+<TestCase testID="property_StatusString_test2" keywords="[Window,flexChrome,Properties,status]" 
+	description="check showStatusBar=true, status string is bindable" >
+    
+    <setup>   
+        <RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(WindowWithBindableSettings,'window1')"  />        
+        <RunCode code="FlexGlobals.topLevelApplication.windowObj.statusStr='this is a bindable status text'"/>
+    </setup> 
+    <body>
+        <RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete" />
+	<RunCode code="setBinding()" />
+        <AssertPropertyValue target="windowObj" propertyName="status" value ="this is a bindable status text" />
+	<AssertPropertyValue target="script:btn1" propertyName="label" valueExpression="value=FlexGlobals.topLevelApplication.windowObj.status" />
+        <RunCode code="FlexGlobals.topLevelApplication.windowObj.statusStr='new bindable status text'"/>
+	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+        <AssertPropertyValue target="windowObj" propertyName="status" value ="new bindable status text" />
+	<AssertPropertyValue target="script:btn1" propertyName="label" value="new bindable status text" />
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"  waitTarget="windowObj" waitEvent="close"/>
+    </body>
+</TestCase>
+
+
+
+
+<TestCase testID="property_StatusBar_read" keywords="[Window,flexChrome,Properties,statusBar]" 
+	description="check statusBar is readonly skin part" >
+    
+    <setup>
+        
+        <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+         
+    </setup>
+    
+    <body>
+        
+	<SetProperty target="myWin" propertyName="status" value="this is a test"/>
+        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+	<AssertMethodValue method="value=FlexGlobals.topLevelApplication.myWin.statusBar!=null" value="true" />    
+        <AssertMethodValue method="value=checkStatusBarWidth()" value="true" />   
+        
+       <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"  waitTarget="myWin" waitEvent="close"/>
+    
+    </body>
+
+</TestCase>
+
+
+
+
+</testCases>
+
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_showStatusBar_systemchrome_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_showStatusBar_systemchrome_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_showStatusBar_systemchrome_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_showStatusBar_systemchrome_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,292 @@
+<?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="apollo/spark/components/Window/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_basic_005.mxml">
+
+
+
+	<!-- this set of lines form a template that must be in each unit test -->
+
+	<mx:Script>
+
+	<![CDATA[
+
+	public static function init(o:DisplayObject):void
+
+	{
+
+	}
+
+	]]>
+
+	</mx:Script>
+
+	<mx:Metadata>
+
+	<![CDATA[
+
+		[Mixin]
+
+	]]>
+
+	</mx:Metadata>
+
+	<!-- end of set of lines that must be in each unit test -->
+
+
+
+	<mx:Script>
+
+	<![CDATA[
+
+
+
+        import flash.system.Capabilities;
+
+        import mx.core.FlexGlobals;
+
+        import spark.components.*;
+
+        import spark.skins.spark.*;
+
+        import comps.*;
+
+
+
+	]]>
+
+	</mx:Script>
+
+
+
+    <testCases>
+
+
+
+	<!--
+
+	========================================================
+
+	Test showStatusBar
+
+	All pauses are needed.
+
+	========================================================
+
+	-->
+
+	<TestCase testID="showStatusBar_test1_systemChrome" keywords="[Window,showStatusBar]" description="true" >
+
+	    <setup>
+
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(MyWindowWithContents,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+
+	    </setup>
+
+	    <body>
+
+		<MyCompareBitmap target="windowObj"  numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png"  />
+
+	    </body>
+
+	</TestCase>
+
+
+
+	<TestCase testID="showStatusBar_test2_systemChrome" keywords="[Window,showStatusBar]" description="false" >
+
+	    <setup>
+
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(MyWindowWithContents,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+
+		<SetProperty target="windowObj" propertyName="showStatusBar" value="false" waitEvent="updateComplete" />
+
+	    </setup>
+
+	    <body>
+
+		<MyCompareBitmap target="windowObj"  numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png"  />
+
+	    </body>
+
+	</TestCase>
+
+
+
+	<TestCase testID="showStatusBar_test3_systemChrome" keywords="[Window,showStatusBar]" description="true when already true" >
+
+	    <setup>
+
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(MyWindowWithContents,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+
+		<SetProperty target="windowObj" propertyName="showStatusBar" value="true" />
+
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+	    </setup>
+
+	    <body>
+
+		<MyCompareBitmap target="windowObj"  numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png"  />
+
+	    </body>
+
+	</TestCase>
+
+
+
+	<TestCase testID="showStatusBar_test4_systemChrome" keywords="[Window,showStatusBar]" description="false when already false" >
+
+	    <setup>
+
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(MyWindowWithContents,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+
+		<SetProperty target="windowObj" propertyName="showStatusBar" value="false"/>
+
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+	    </setup>
+
+	    <body>
+
+		<SetProperty target="windowObj" propertyName="showStatusBar" value="false" />
+
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+		<MyCompareBitmap target="windowObj"  numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png"  />
+
+	    </body>
+
+	</TestCase>
+
+
+
+	<TestCase testID="showStatusBar_test5_systemChrome" keywords="[Window,showStatusBar]" description="wider" >
+
+	    <setup>
+
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(MyWindowWithContents,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+
+	    </setup>
+
+	    <body>
+
+		<SetProperty target="windowObj" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.windowObj.width + 20" waitEvent="updateComplete" />
+
+		<MyCompareBitmap target="windowObj"  numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png"  />
+
+	    </body>
+
+	</TestCase>
+
+
+
+	<TestCase testID="showStatusBar_test6_systemChrome" keywords="[Window,showStatusBar]" description="narrower" >
+
+	    <setup>
+
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(MyWindowWithContents,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+
+	    </setup>
+
+	    <body>
+
+		<SetProperty target="windowObj" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.windowObj.width - 30" waitEvent="updateComplete" />
+
+		<MyCompareBitmap target="windowObj"  numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png"  />
+
+	    </body>
+
+	</TestCase>
+
+
+
+	<TestCase testID="showStatusBar_test7_systemChrome" keywords="[Window,showStatusBar]" description="false to true while minimized" >
+
+	    <setup>
+
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(MyWindowWithContents,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+
+	    </setup>
+
+	    <body>
+
+		<SetProperty target="windowObj" propertyName="showStatusBar" value="false" waitEvent="updateComplete" />
+
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minimize()" waitTarget="windowObj" waitEvent="displayStateChange" />
+
+		<SetProperty target="windowObj" propertyName="showStatusBar" value="true" waitEvent="updateComplete" />
+
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.restore()" waitTarget="windowObj" waitEvent="displayStateChange" />
+
+		<MyCompareBitmap target="windowObj"  numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png"  />
+
+	    </body>
+
+	</TestCase>
+
+
+
+	<TestCase testID="showStatusBar_test8_systemChrome" keywords="[Window,showStatusBar]" description="true to false while minimized" >
+
+	    <setup>
+
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(MyWindowWithContents,'window1');" waitTarget="" waitEvent="myWindowComplete" />
+
+	    </setup>
+
+	    <body>
+
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minimize()" waitTarget="windowObj" waitEvent="displayStateChange" />
+
+		<SetProperty target="windowObj" propertyName="showStatusBar" value="false" waitEvent="updateComplete" />
+
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.restore()" waitTarget="windowObj" waitEvent="displayStateChange" />
+
+		<MyCompareBitmap target="windowObj"  numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png"  />
+
+	    </body>
+
+	</TestCase>
+
+    </testCases>
+
+</UnitTester>
+

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_showStatusBar_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_showStatusBar_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_showStatusBar_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_showStatusBar_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,570 @@
+<?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="apollo/spark/components/Window/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_basic_flexchrome.mxml">
+
+
+
+	<!-- this set of lines form a template that must be in each unit test -->
+
+	<mx:Script>
+
+	<![CDATA[
+
+	public static function init(o:DisplayObject):void
+
+	{
+
+	}
+
+	]]>
+
+	</mx:Script>
+
+	<mx:Metadata>
+
+	<![CDATA[
+
+		[Mixin]
+
+	]]>
+
+	</mx:Metadata>
+
+	<!-- end of set of lines that must be in each unit test -->
+
+
+
+	<mx:Script>
+
+	<![CDATA[
+
+
+
+        import flash.system.Capabilities;
+
+        import mx.core.FlexGlobals;
+
+        import spark.components.*;
+
+        import spark.skins.spark.*;
+
+
+
+	]]>
+
+	</mx:Script>
+
+
+
+    <testCases>
+
+
+
+<!--
+
+========================================================
+
+Test showStatusBar
+
+All pauses are needed.
+
+========================================================
+
+-->
+
+
+
+<TestCase testID="showStatusBar_test1_SparkChrome" keywords="[WindowedApplication,showStatusBar]" description="true" >
+
+    <setup>
+
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+	<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" /></setup>
+
+    <body>
+
+    	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+        <MyCompareBitmap target="myWin"   numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png" />
+
+    </body>
+
+</TestCase>
+
+
+
+
+
+<TestCase testID="showStatusBar_test2_SparkChrome" keywords="[WindowedApplication,showStatusBar]" description="false" >
+
+    <setup>
+
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+	<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+
+	<SetProperty target="myWin" propertyName="showStatusBar" value="false" waitEvent="updateComplete"/>
+
+    </setup>
+
+    <body>
+
+    	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+        <MyCompareBitmap target="myWin"   numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png" />
+
+    </body>
+
+</TestCase>
+
+
+
+
+
+<TestCase testID="showStatusBar_test3_SparkChrome" keywords="[WindowedApplication,showStatusBar]" description="false with a pause" >
+
+    <setup>
+
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+	<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+
+	<SetProperty target="myWin" propertyName="showStatusBar" value="false" />
+
+        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+    </setup>
+
+    <body>
+
+        <MyCompareBitmap target="myWin"   numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png" />
+
+    </body>
+
+</TestCase>
+
+
+
+
+
+<TestCase testID="showStatusBar_test4_SparkChrome" keywords="[WindowedApplication,showStatusBar]" description="true when already true" >
+
+    <setup>
+
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+	<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+
+	<SetProperty target="myWin" propertyName="showStatusBar" value="true" />
+
+	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+    </setup>
+
+    <body>
+
+        <MyCompareBitmap target="myWin"   numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png" />
+
+    </body>
+
+</TestCase>
+
+
+
+<TestCase testID="showStatusBar_test5_SparkChrome" keywords="[WindowedApplication,showStatusBar]" description="false when already false" >
+
+    <setup>
+
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+        <!--old way
+
+        <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" /> 
+
+        -->
+
+	<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+
+	<SetProperty target="myWin" propertyName="showStatusBar" value="false"/>
+
+	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+    </setup>
+
+    <body>
+
+        <SetProperty target="myWin" propertyName="showStatusBar" value="false"  waitEvent="enterFrame" waitTarget="stage"/>
+
+        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+        <MyCompareBitmap target="myWin"   numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png" />
+
+    </body>
+
+</TestCase>
+
+
+
+<TestCase testID="showStatusBar_test6_SparkChrome" keywords="[WindowedApplication,showStatusBar]" description="wider" >
+
+    <setup>
+
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+	<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+
+    </setup>
+
+    <body>
+
+        <SetProperty target="myWin" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.width + 20" waitEvent="updateComplete" />
+
+        <MyCompareBitmap target="myWin"   numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png" />
+
+    </body>
+
+</TestCase>
+
+
+
+
+
+<TestCase testID="showStatusBar_test7_SparkChrome" keywords="[WindowedApplication,showStatusBar]" description="narrower" >
+
+    <setup>
+
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+	<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+
+    </setup>
+
+    <body>
+
+        <SetProperty target="myWin" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.width - 30" waitEvent="updateComplete" />
+
+        <MyCompareBitmap target="myWin"   numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png" />
+
+    </body>
+
+</TestCase>
+
+
+
+
+
+<TestCase testID="showStatusBar_test8_SparkChrome" keywords="[WindowedApplication,showStatusBar]" description="false to true while minimized" >
+
+    <setup>
+
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+	<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+
+    </setup>
+
+    <body>
+
+        <SetProperty target="myWin" propertyName="showStatusBar" value="false" waitEvent="updateComplete" />
+
+        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+        <RunCode code="FlexGlobals.topLevelApplication.myWin.minimize()" waitTarget="myWin" waitEvent="displayStateChange" />
+
+        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+        <SetProperty target="myWin" propertyName="showStatusBar" value="true" waitEvent="updateComplete" />
+
+        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+        <RunCode code="FlexGlobals.topLevelApplication.myWin.restore()" waitTarget="myWin" waitEvent="displayStateChange" />
+
+        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+        <MyCompareBitmap target="myWin"   numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png" />
+
+    </body>
+
+</TestCase>
+
+
+
+
+
+<TestCase testID="showStatusBar_test9_SparkChrome" keywords="[WindowedApplication,showStatusBar]" description="true to false while minimized" >
+
+    <setup>
+
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+        <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+
+    </setup>
+
+    <body>
+
+	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+        <RunCode code="FlexGlobals.topLevelApplication.myWin.minimize()" waitTarget="myWin" waitEvent="displayStateChange" />
+
+        <SetProperty target="myWin" propertyName="showStatusBar" value="false" waitEvent="updateComplete" />
+
+        <RunCode code="FlexGlobals.topLevelApplication.myWin.restore()" waitTarget="myWin" waitEvent="displayStateChange" />
+
+        <MyCompareBitmap target="myWin"   numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png" />
+
+    </body>
+
+</TestCase>
+
+
+
+
+
+<TestCase testID="showStatusBar_test1_WindowedApplicationSkin" keywords="[WindowedApplication,showStatusBar]" description="true" >
+
+    <setup>
+
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+	<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+
+    </setup>
+
+    <body>
+
+	<SetStyle target="myWin" styleName="skinClass" valueExpression="value = WindowedApplicationSkin" waitEvent="updateComplete" />
+
+        <MyCompareBitmap target="myWin"   numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png" />
+
+    </body>
+
+</TestCase>
+
+
+
+<TestCase testID="showStatusBar_test2_WindowedApplicationSkin" keywords="[WindowedApplication,showStatusBar]" description="false" >
+
+    <setup>
+
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+	<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+
+	<SetProperty target="myWin" propertyName="showStatusBar" value="false" waitEvent="updateComplete" />
+
+    </setup>
+
+    <body>
+
+	<SetStyle target="myWin" styleName="skinClass" valueExpression="value = WindowedApplicationSkin" waitEvent="updateComplete" />
+
+        <MyCompareBitmap target="myWin"   numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png" />
+
+    </body>
+
+</TestCase>
+
+
+
+
+
+<TestCase testID="showStatusBar_test3_WindowedApplicationSkin" keywords="[WindowedApplication,showStatusBar]" description="true when already true" >
+
+    <setup>
+
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+	<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+
+	<SetProperty target="myWin" propertyName="showStatusBar" value="true" />
+
+        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+    </setup>
+
+    <body>
+
+	<SetStyle target="myWin" styleName="skinClass" valueExpression="value = WindowedApplicationSkin" waitEvent="updateComplete" />
+
+        <MyCompareBitmap target="myWin"   numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png" />
+
+    </body>
+
+</TestCase>
+
+
+
+
+
+<TestCase testID="showStatusBar_test4_WindowedApplicationSkin" keywords="[WindowedApplication,showStatusBar]" description="false when already false" >
+
+    <setup>
+
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+	<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+
+	<SetProperty target="myWin" propertyName="showStatusBar" value="false"/>
+
+        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+    </setup>
+
+    <body>
+
+	<SetStyle target="myWin" styleName="skinClass" valueExpression="value = WindowedApplicationSkin" waitEvent="updateComplete" />
+
+        <SetProperty target="myWin" propertyName="showStatusBar" value="false" />
+
+        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+        <MyCompareBitmap target="myWin"   numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png" />
+
+    </body>
+
+</TestCase>
+
+
+
+
+
+<TestCase testID="showStatusBar_test5_WindowedApplicationSkin" keywords="[WindowedApplication,showStatusBar]" description="wider" >
+
+    <setup>
+
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+	<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+
+    </setup>
+
+    <body>
+
+	<SetStyle target="myWin" styleName="skinClass" valueExpression="value = WindowedApplicationSkin" waitEvent="updateComplete" />
+
+        <SetProperty target="myWin" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.width + 20" waitEvent="updateComplete" />
+
+        <MyCompareBitmap target="myWin"   numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png" />
+
+    </body>
+
+</TestCase>
+
+
+
+
+
+<TestCase testID="showStatusBar_test6_WindowedApplicationSkin" keywords="[WindowedApplication,showStatusBar]" description="narrower" >
+
+    <setup>
+
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+	<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+
+    </setup>
+
+    <body>
+
+	<SetStyle target="myWin" styleName="skinClass" valueExpression="value = WindowedApplicationSkin" waitEvent="updateComplete" />
+
+        <SetProperty target="myWin" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.width - 30" waitEvent="updateComplete" />
+
+        <MyCompareBitmap target="myWin"   numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png" />
+
+    </body>
+
+</TestCase>
+
+
+
+
+
+<TestCase testID="showStatusBar_test7_WindowedApplicationSkin" keywords="[WindowedApplication,showStatusBar]" description="false to true while minimized" >
+
+    <setup>
+
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+	<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+
+    </setup>
+
+    <body>
+
+	<SetStyle target="myWin" styleName="skinClass" valueExpression="value = WindowedApplicationSkin" waitEvent="updateComplete" />
+
+        <SetProperty target="myWin" propertyName="showStatusBar" value="false" waitEvent="updateComplete" />
+
+        <RunCode code="FlexGlobals.topLevelApplication.myWin.minimize()" waitTarget="myWin" waitEvent="displayStateChange" />
+
+        <SetProperty target="myWin" propertyName="showStatusBar" value="true" waitEvent="updateComplete" />
+
+        <RunCode code="FlexGlobals.topLevelApplication.myWin.restore()" waitTarget="myWin" waitEvent="displayStateChange" />
+
+        <MyCompareBitmap target="myWin"   numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png" />
+
+    </body>
+
+</TestCase>
+
+
+
+
+
+<TestCase testID="showStatusBar_test8_WindowedApplicationSkin" keywords="[WindowedApplication,showStatusBar]" description="true to false while minimized" >
+
+    <setup>
+
+        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+
+	<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+
+    </setup>
+
+    <body>
+
+	<SetStyle target="myWin" styleName="skinClass" valueExpression="value = WindowedApplicationSkin" waitEvent="updateComplete" />
+
+	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+        <RunCode code="FlexGlobals.topLevelApplication.myWin.minimize()" waitTarget="myWin" waitEvent="displayStateChange" />
+
+        <SetProperty target="myWin" propertyName="showStatusBar" value="false" waitEvent="updateComplete" />
+
+        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+        <RunCode code="FlexGlobals.topLevelApplication.myWin.restore()" waitTarget="myWin" waitEvent="displayStateChange" />
+
+        <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+
+        <MyCompareBitmap target="myWin"   numColorVariances="10" maxColorVariance="10" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png" />
+
+    </body>
+
+</TestCase>
+
+	</testCases>
+
+</UnitTester>
+

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_status_systemchrome_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_status_systemchrome_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_status_systemchrome_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_status_systemchrome_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,105 @@
+<?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="apollo/spark/components/Window/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_basic_005.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+
+        import flash.system.Capabilities;
+        import mx.core.FlexGlobals;
+        import spark.components.*;
+        import spark.skins.spark.*;
+    	import mx.binding.utils.*;
+        import comps.*;
+        public var btn1:Button=new Button();
+        public function setBinding():void
+        {
+	    BindingUtils.bindProperty( btn1, "label",
+	    FlexGlobals.topLevelApplication.windowObj, "status" );
+
+	    	
+	}
+	]]>
+	</mx:Script>
+
+    <testCases>
+
+	<!--
+	========================================================
+	Test status.
+	========================================================
+	-->
+	<TestCase testID="status_test1_systemChrome" keywords="[Window,status]" description="Set it." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/>  
+	    </setup>
+	    <body>
+		<SetProperty target="windowObj" propertyName="width" value="115"/>
+		<SetProperty target="windowObj" propertyName="status" value="A slow, green, toad hopped under an active cat." waitEvent="updateComplete" />
+		<MyCompareBitmap target="windowObj.skin.statusBar" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="status_test2_systemChrome" keywords="[Window,status]" description="Set it and clear it." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/>  
+	    </setup>
+	    <body>
+		<SetProperty target="windowObj" propertyName="width" value="115"/>
+		<SetProperty target="windowObj" propertyName="status" value="A slow, green, toad hopped under an active cat." waitEvent="updateComplete" />
+		<SetProperty target="windowObj" propertyName="status" value="" waitEvent="updateComplete" />
+		<MyCompareBitmap target="windowObj.skin.statusBar" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="status_test4_systemChrome" keywords="[Window,status]" description="binding" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(WindowWithBindableSettings,'window1')" waitTarget="" waitEvent="myWindowComplete"/>        
+	    </setup>
+	    <body>
+	    	<RunCode code="setBinding()"/>
+		<SetProperty target="windowObj" propertyName="statusStr" value="A slow, green, toad hopped under an active cat." waitEvent="updateComplete" />
+		<AssertPropertyValue target="windowObj" propertyName="status" value="A slow, green, toad hopped under an active cat." />
+	        <AssertPropertyValue target="script:btn1" propertyName="label" 
+			valueExpression="value=FlexGlobals.topLevelApplication.windowObj.status" />
+	   </body>
+	</TestCase>
+
+
+    </testCases>
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_status_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_status_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_status_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_status_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,104 @@
+<?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="apollo/spark/components/Window/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_basic_flexchrome.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+
+        import flash.system.Capabilities;
+        import mx.core.FlexGlobals;
+        import spark.components.*;
+        import spark.skins.spark.*;
+    	import mx.binding.utils.*;
+        import comps.*;
+        public var btn1:Button=new Button();
+        public function setBinding():void
+        {
+	    BindingUtils.bindProperty( btn1, "label",
+	    FlexGlobals.topLevelApplication.windowObj, "status" );
+
+	    	
+	}
+
+	]]>
+	</mx:Script>
+
+    <testCases>
+
+	<!--
+	========================================================
+	Test status.
+	========================================================
+	-->
+	<TestCase testID="status_test1_SparkChrome" keywords="[Window,status]" description="Set it." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+	    </setup>
+	    <body>
+		<SetProperty target="myWin" propertyName="status" value="A slow, green, toad hopped under an active cat." waitEvent="updateComplete" />
+		<MyCompareBitmap target="myWin.skin.statusBar" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="status_test2_SparkChrome" keywords="[Window,status]" description="Set it and clear it." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+	    </setup>
+	    <body>
+		<SetProperty target="myWin" propertyName="status" value="A slow, green, toad hopped under an active cat." waitEvent="updateComplete" />
+		<SetProperty target="myWin" propertyName="status" value="" waitEvent="updateComplete" />
+		<MyCompareBitmap target="myWin.skin.statusBar" url="../properties/baselines/$testID.png"  mac_url="../properties/baselines/$testID_mac.png" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="status_test4_SparkChrome" keywords="[Window,status]" description="binding" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(WindowWithBindableSettings,'window1')" waitTarget="" waitEvent="myWindowComplete"/>        
+
+	    </setup>
+	    <body>
+	    	<RunCode code="setBinding()"/>
+		<SetProperty target="windowObj" propertyName="statusStr" value="A slow, green, toad hopped under an active cat." waitEvent="updateComplete" />
+		<AssertPropertyValue target="windowObj" propertyName="status" value="A slow, green, toad hopped under an active cat." />
+	   	<AssertPropertyValue target="script:btn1" propertyName="label" 
+			valueExpression="value=FlexGlobals.topLevelApplication.windowObj.status" />
+	   </body>
+	</TestCase>
+	
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_titleBar_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_titleBar_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_titleBar_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_titleBar_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,69 @@
+<?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="apollo/spark/components/Window/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_basic_flexchrome.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+
+        import mx.core.FlexGlobals;
+        import spark.components.*;
+        import spark.components.windowClasses.*;
+        import spark.skins.spark.*;
+
+	]]>
+	</mx:Script>
+
+    <testCases>
+
+	<!--
+	========================================================
+	Test the titleBar skin part.  There's not much to test; 
+	various parts of the titleBar are tested elsewhere.
+	========================================================
+	-->
+
+	<TestCase testID="titleBar_test1" keywords="[Window,title]" description="Do a bitmap compare of it with some text." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+	    </setup>
+	    <body>
+		<SetProperty target="myWin" propertyName="title" value="I II III IIII IIIII" waitEvent="updateComplete" />
+		<MyCompareBitmap target="myWin.skin.titleBar" url="../Properties/Baselines/$testID.png" mac_url="../Properties/Baselines/$testID_mac.png" />
+	    </body>
+	</TestCase>
+
+    </testCases>
+</UnitTester>



Mime
View raw message