flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1370009 [18/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/baselines/width_test5_flexChrome_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test5_flexChrome_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test5_flexChrome_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test5_systemChrome.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test5_systemChrome.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test5_systemChrome.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test5_systemChrome_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test5_systemChrome_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test5_systemChrome_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test6_flexChrome.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test6_flexChrome.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test6_flexChrome.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test6_flexChrome_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test6_flexChrome_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test6_flexChrome_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test6_systemChrome.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test6_systemChrome.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test6_systemChrome.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test6_systemChrome_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test6_systemChrome_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test6_systemChrome_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test7_flexChrome.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test7_flexChrome.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test7_flexChrome.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test7_flexChrome_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test7_flexChrome_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test7_flexChrome_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test7_systemChrome.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test7_systemChrome.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test7_systemChrome.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test7_systemChrome_mac.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test7_systemChrome_mac.png?rev=1370009&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/baselines/width_test7_systemChrome_mac.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_backgroundColor_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_backgroundColor_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_backgroundColor_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_backgroundColor_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,111 @@
+<?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_002.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 function setBinding():void
+	    {
+	    	 BindingUtils.bindProperty( FlexGlobals.topLevelApplication.info, "text", FlexGlobals.topLevelApplication.myWin, "backgroundColor" );
+
+	    	
+	    }
+	]]>
+	</mx:Script>
+
+    <testCases>
+
+	<!--
+	========================================================
+	Test backgroundColor.
+	========================================================
+	-->
+	<TestCase testID="backgroundColor_test1" keywords="[Window,backgroundColor]" description="default value should be 0xFFFFFF" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+	    </setup>
+	    <body>
+		<AssertPixelValue target="myWin" x="100" y="100" value="0xFFFFFF"/>
+	    </body>
+	</TestCase>
+
+	<TestCase testID="backgroundColor_test2" keywords="[Window,backgroundColor]" description="Set backgroundColor value" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+	    <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+	    </setup>
+	    <body>
+		<SetStyle target="myWin" styleName="backgroundColor" value="0x00FF00" waitEvent="updateComplete" />
+		<MyCompareBitmap target="myWin" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png"/>
+	    </body>
+	</TestCase>
+
+	<TestCase testID="backgroundColor_test3" keywords="[Window,backgroundColor]" description="Set backgroundColor to different value" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+	    </setup>
+	    <body><!-- url="../properties/baselines/$testID.png" -->
+		<SetStyle target="myWin" styleName="backgroundColor" value="0x0000FF" waitEvent="updateComplete" />
+		<MyCompareBitmap target="myWin" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png"/>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+	    </body>
+	</TestCase>
+	<TestCase testID="backgroundColor_test4" keywords="[Window,backgroundColor]" description="get backgroundColor to different value" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+	    </setup>
+	    <body>
+		<SetStyle target="myWin" styleName="backgroundColor" value="0x0000FF" waitEvent="updateComplete" />
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.myWin.getStyle('backgroundColor')" value="0x0000FF" />
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+	    </body>
+	</TestCase>
+
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_closed.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_closed.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_closed.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_closed.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,83 @@
+<?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 spark.components.*;
+
+	]]>
+	</mx:Script>
+
+    <testCases>
+
+	<!--
+	========================================================
+	closed property
+	- When "target" parameters are missing, that means the
+	main app.
+	- These tests are order dependent because the second
+	one closes the window.
+	- We can't use the SWF again because the second test
+	closes the window.
+	========================================================
+	-->
+	<TestCase testID="closed_test1" keywords="[Window,closed]" description="Check prop. when it's open." >
+	    <setup>
+	       <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+	       <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/>    
+	    </setup> 
+	    <body>
+		<AssertPropertyValue target="windowObj" propertyName="closed" value="false" />
+	    </body>
+	</TestCase>
+
+
+	<TestCase testID="close_test2" keywords="[Window,close]" description="Call close() when closed already.  We're already closed, so there's no event." >
+	    <setup>
+	       <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+	       <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/>    
+	    </setup> 
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.close()" waitTarget="windowObj" waitEvent="close"/>
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<AssertPropertyValue target="windowObj" propertyName="closed" value="true" />
+	    </body>
+	</TestCase>
+
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_height_minmaxsize_systemchrome_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_height_minmaxsize_systemchrome_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_height_minmaxsize_systemchrome_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_height_minmaxsize_systemchrome_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,120 @@
+<?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 height
+	Note: minSize and maxSize are:
+	    <minSize>100 100</minSize>
+	    <maxSize>750 650</maxSize>
+	========================================================
+	-->
+	<TestCase testID="height_minSize_test1_systemChrome_mac" keywords="[WindowedApplication,height]" description="Height less than AIR XML file's minSize height" >
+	    <setup>
+	        <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createAWindowByClass(PlainWindow,'window1')"  waitTarget="" waitEvent="myWindowComplete"/>        
+	    </setup>
+	    <body>
+	         <SetProperty target="windowObj" propertyName="height" value="100" waitEvent="resize" />
+                <AssertMethodValue method="value=FlexGlobals.topLevelApplication.assertValueBaseOnOS('height',FlexGlobals.topLevelApplication.windowObj.height,100,100,100)" value=""/>
+            </body>
+        </TestCase>
+	<TestCase testID="height_minSize_test1_systemChrome_win" keywords="[Window,height]" description="Height less than the window's minSize height" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')"  />        
+	    </setup> 
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minWidth=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minHeight=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxWidth=750"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxHeight=650"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete"/>  
+		<SetProperty target="windowObj" propertyName="height" value="90" waitEvent="resize" />
+	        <AssertMethodValue method="value=FlexGlobals.topLevelApplication.assertValueBaseOnOS('height',FlexGlobals.topLevelApplication.windowObj.height,100,100,100)" value=""/>
+
+	    </body>
+	</TestCase>
+
+	<TestCase testID="height_maxSize_test2_systemChrome_mac" keywords="[Window,height]" description="Height more than Window's maxSize height" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')" />        
+	    </setup> 
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minWidth=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minHeight=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxWidth=750"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxHeight=650"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete"/> 
+		<SetProperty target="windowObj" propertyName="height" value="700" waitEvent="resize" />
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.assertValueBaseOnOS('height',FlexGlobals.topLevelApplication.windowObj.height,650,650,650)" value=""/>
+
+	    </body>
+	</TestCase>
+	
+	<TestCase testID="height_maxSize_test2_systemChrome_win" keywords="[Window,height]" description="Height more than Window's maxSize height" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')" />        
+	    </setup> 
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minWidth=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minHeight=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxWidth=750"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxHeight=650"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete"/> 
+		<SetProperty target="windowObj" propertyName="height" value="700" waitEvent="resize" />
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.assertValueBaseOnOS('height',FlexGlobals.topLevelApplication.windowObj.height,650,650,650)" value=""/>
+	    </body>
+	</TestCase>
+
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_height_minmaxsize_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_height_minmaxsize_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_height_minmaxsize_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_height_minmaxsize_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,125 @@
+<?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 comps.*;
+
+	]]>
+    </mx:Script>
+
+    <testCases>
+
+	<!--
+	========================================================
+	Test height
+	Note: minSize and maxSize are:
+	    <minSize>100 100</minSize>
+	    <maxSize>750 650</maxSize>
+	========================================================
+	-->
+	<TestCase testID="height_minSize_test1_SparkChrome" keywords="[Window,height]" description="Height less than Window's minSize height" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')" />        
+	    </setup> 
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minWidth=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minHeight=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxWidth=750"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxHeight=650"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete"/> 
+		<SetProperty target="windowObj" propertyName="height" value="50" waitEvent="resize" />
+		<AssertPropertyValue target="windowObj" propertyName="height" value="100" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="height_minSize_test1_windowedApplicationSkin" keywords="[Window,height]" description="Height less than Window's minSize height" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')" />        
+	    </setup> 
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minWidth=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minHeight=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxWidth=750"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxHeight=650"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete"/> 
+		<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = WindowedApplicationSkin" waitEvent="updateComplete" />
+		<SetProperty target="windowObj" propertyName="height" value="50" waitEvent="resize" />
+		<AssertPropertyValue target="windowObj" propertyName="height" value="100" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="height_maxSize_test2_SparkChrome" keywords="[Window,height]" description="Height less than Window's maxSize height" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')" />        
+	    </setup> 
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minWidth=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minHeight=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxWidth=750"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxHeight=650"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete"/> 
+		<SetProperty target="windowObj" propertyName="height" value="600" waitEvent="resize" />
+		<AssertPropertyValue target="windowObj" propertyName="height" value="600" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="height_maxSize_test2_windowedApplication" keywords="[Window,height]" description="Height more than Window's maxSize height" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')" />        
+	    </setup> 
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minWidth=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minHeight=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxWidth=750"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxHeight=650"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete"/>
+		<SetProperty target="windowObj" propertyName="height" value="700" waitEvent="resize" />
+		<AssertPropertyValue target="windowObj" propertyName="height" value="650" />
+	    </body>
+	</TestCase>
+
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_height_systemchrome_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_height_systemchrome_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_height_systemchrome_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_height_systemchrome_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,200 @@
+<?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, "height" );
+	}
+	]]>
+    </mx:Script>
+
+    <testCases>
+
+	<!--
+	========================================================
+	Test height
+	========================================================
+	-->
+	<TestCase testID="height_test1_systemChrome" keywords="[Window,height]" description="Negative" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')" />        
+	    </setup> 
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minWidth=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minHeight=-10"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxWidth=750"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxHeight=650"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete"/>
+		<SetProperty target="windowObj" propertyName="height" value="-1" waitEvent="resize" />
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.assertValueBaseOnOS('height',FlexGlobals.topLevelApplication.windowObj.height,0,400,400)" value=""/>
+		
+	    </body>
+	</TestCase>
+
+	<TestCase testID="height_test2_systemChrome" keywords="[Window,height]" description="Zero" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')" />        
+	    </setup> 
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minWidth=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minHeight=-10"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxWidth=750"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxHeight=650"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete"/>
+		<SetProperty target="windowObj" propertyName="height" value="0" waitEvent="resize" />
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.assertValueBaseOnOS('height',FlexGlobals.topLevelApplication.windowObj.height,0,400,400)" value=""/>
+	    </body>
+	</TestCase>
+
+	<TestCase testID="height_test3_systemChrome" keywords="[Window,height]" description="One" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')" />        
+	    </setup> 
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minWidth=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minHeight=-10"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxWidth=750"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxHeight=650"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete"/>
+		<SetProperty target="windowObj" propertyName="height" value="1" waitEvent="resize" />
+		<AssertPropertyValue target="windowObj" propertyName="height" value="1" />
+		<CompareBitmap target="windowObj" url="../properties/baselines/$testID.png" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="height_test4_systemChrome" keywords="[Window,height]" description="Set height to a positive, reasonable value." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')" />        
+	    </setup> 
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minWidth=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minHeight=-10"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxWidth=750"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxHeight=650"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete"/>
+		<SetProperty target="windowObj" propertyName="height" value="30" waitEvent="resize" />
+		<AssertPropertyValue target="windowObj" propertyName="height" value="30" />
+		<CompareBitmap target="windowObj" url="../properties/baselines/$testID.png" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="height_test5_systemChrome" keywords="[Window,height]" description="Set height to a positive, reasonable value." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')" />        
+	    </setup> 
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minWidth=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minHeight=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxWidth=750"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxHeight=650"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete"/>
+		<SetProperty target="windowObj" propertyName="height" value="253" waitEvent="resize" />
+		<AssertPropertyValue target="windowObj" propertyName="height" value="253" />
+		<CompareBitmap target="windowObj" url="../properties/baselines/$testID.png" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="height_test6_systemChrome" keywords="[Window,height]" description="Less than minHeight" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')" />        
+	    </setup> 
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minWidth=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minHeight=150"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxWidth=750"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxHeight=650"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete"/>
+		<SetProperty target="windowObj" propertyName="height" value="130" waitEvent="resize" />
+		<AssertPropertyValue target="windowObj" propertyName="height" value="150" />
+		<CompareBitmap target="windowObj" url="../properties/baselines/$testID.png" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="height_test7_systemChrome" keywords="[Window,height]" description="More than maxHeight" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')" />        
+	    </setup> 
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minWidth=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.minHeight=100"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxWidth=150"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxHeight=160"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete"/>
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<SetProperty target="windowObj" propertyName="height" value="170" waitEvent="updateComplete" />
+		<AssertPropertyValue target="windowObj" propertyName="height" value="160" />
+		<CompareBitmap target="windowObj" url="../properties/baselines/$testID.png" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="height_test8_binding" keywords="[Window,height]" description="Bind to the height" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(WindowWithBindableSettings,'window1')" />        
+	    </setup> 
+	    <body>
+	    	
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.heightVal=130"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete"/>  
+		<AssertPropertyValue target="windowObj" propertyName="height" value="130" />
+		<RunCode code="setBinding()" />
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<AssertPropertyValue target="script:btn1" propertyName="label" value="130" />
+		<SetProperty target="windowObj" propertyName="height" value="170" waitEvent="updateComplete" />
+		<AssertPropertyValue target="script:btn1" propertyName="label" value="170" />
+	    </body>
+        </TestCase>
+
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_height_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_height_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_height_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_height_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,286 @@
+<?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, "height" );
+	}
+	]]>
+    </mx:Script>
+
+    <testCases>
+
+	<!--
+	========================================================
+	Test height
+	========================================================
+	-->
+	<TestCase testID="height_test1_SparkChrome" keywords="[Window,height]" description="Negative" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/>        
+	    </setup> 
+	    <body>
+		<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin;" waitEvent="updateComplete" />
+		<SetProperty target="windowObj" propertyName="minHeight" value="-10"/>
+		<SetProperty target="windowObj" propertyName="height" value="-1" waitEvent="resize" />
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.assertValueBaseOnOS('height',FlexGlobals.topLevelApplication.windowObj.height,0,100,0)" value=""/>
+	
+	    </body>
+	</TestCase>
+
+	<TestCase testID="height_test1_windowedApplicationSkin" keywords="[Window,height]" description="Negative" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />        
+	    </setup> 
+	    <body>
+		<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = WindowedApplicationSkin " waitEvent="updateComplete" />
+		<SetProperty target="windowObj" propertyName="minHeight" value="-10"/>
+		<SetProperty target="windowObj" propertyName="height" value="-1" waitEvent="resize" />
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.assertValueBaseOnOS('height',FlexGlobals.topLevelApplication.windowObj.height,0,100,0)" value=""/>
+	
+	    </body>
+	</TestCase>
+
+	<TestCase testID="height_test2_SparkChrome" keywords="[Window,height]" description="Zero" >
+	   <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />        
+	    </setup> 
+	    <body>
+		<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+		<SetProperty target="windowObj" propertyName="minHeight" value="-10"/>
+		<SetProperty target="windowObj" propertyName="height" value="0" waitEvent="resize" />
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.assertValueBaseOnOS('height',FlexGlobals.topLevelApplication.windowObj.height,0,100,0)" value=""/>
+	    </body>
+	</TestCase>
+
+	<TestCase testID="height_test2_windowedApplicationSkin" keywords="[Window,height]" description="Zero" >
+	   <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />        
+	    </setup> 
+	    <body>
+		<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = WindowedApplicationSkin " waitEvent="updateComplete" /> 
+		<SetProperty target="windowObj" propertyName="minHeight" value="-10"/>
+		<SetProperty target="windowObj" propertyName="height" value="0" waitEvent="resize" />
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.assertValueBaseOnOS('height',FlexGlobals.topLevelApplication.windowObj.height,0,100,100)" value=""/>
+	    </body>
+	</TestCase>
+
+	<TestCase testID="height_test3_SparkChrome" keywords="[Window,height]" description="One" >
+	    <setup>
+		 <RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		 <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />        
+	    </setup> 
+	    <body>
+		<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+		<SetProperty target="windowObj" propertyName="width" value="115"/>
+		<SetProperty target="windowObj" propertyName="minHeight" value="-10"/>
+		<SetProperty target="windowObj" propertyName="height" value="1" waitEvent="resize" />
+		<AssertPropertyValue target="windowObj" propertyName="height" value="1" />
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.assertValueBaseOnOS('height',FlexGlobals.topLevelApplication.windowObj.height,1,1,1)" value=""/>
+		
+		<MyCompareBitmap target="windowObj" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png"/>
+	    </body>
+	</TestCase>
+	
+	<TestCase testID="height_test3_windowedApplicationSkin" keywords="[Window,height]" description="One" >
+	   <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />        
+	    </setup> 
+	    <body>
+		<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = WindowedApplicationSkin " waitEvent="updateComplete" />
+		<SetProperty target="windowObj" propertyName="width" value="115"/>
+		<SetProperty target="windowObj" propertyName="minHeight" value="-10"/>
+		<SetProperty target="windowObj" propertyName="height" value="1" waitEvent="resize" />
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.assertValueBaseOnOS('height',FlexGlobals.topLevelApplication.windowObj.height,1,1,1)" value=""/>
+		<MyCompareBitmap target="windowObj" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png"/>
+	    </body>
+	</TestCase>
+	
+	
+	<TestCase testID="height_test4_SparkChrome" keywords="[Window,height]" description="Set height to a positive, reasonable value." >
+	   <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />        
+	    </setup> 
+	    <body>
+		<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+		<SetProperty target="windowObj" propertyName="width" value="115"/>
+		<SetProperty target="windowObj" propertyName="height" value="30" waitEvent="resize" />
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.assertValueBaseOnOS('height',FlexGlobals.topLevelApplication.windowObj.height,30,30,30)" value=""/>
+		<MyCompareBitmap target="windowObj" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png"/>
+	    </body>
+	</TestCase>
+
+	
+	<TestCase testID="height_test4_windowedApplicationSkin" keywords="[Window,height]" description="Set height to a positive, reasonable value." >
+	   <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />        
+	    </setup> 
+	    <body>
+		<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = WindowedApplicationSkin " waitEvent="updateComplete" />
+		<SetProperty target="windowObj" propertyName="width" value="115"/>
+		<SetProperty target="windowObj" propertyName="height" value="33" waitEvent="resize" />
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.assertValueBaseOnOS('height',FlexGlobals.topLevelApplication.windowObj.height,33,33,33)" value=""/>
+		<MyCompareBitmap target="windowObj" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="height_test5_SparkChrome" keywords="[Window,height]" description="Set height to a positive, reasonable value." >
+	   <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />        
+	    </setup> 
+	    <body>
+		<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+		<SetProperty target="windowObj" propertyName="width" value="115"/>
+		<SetProperty target="windowObj" propertyName="height" value="253" waitEvent="resize" />
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.assertValueBaseOnOS('height',FlexGlobals.topLevelApplication.windowObj.height,253,253,253)" value=""/>
+		<MyCompareBitmap target="windowObj" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png"/>
+	    </body>
+	</TestCase>
+	
+	
+	<TestCase testID="height_test5_windowedApplicationSkin" keywords="[Window,height]" description="Set height to a positive, reasonable value." >
+	   <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />        
+	    </setup> 
+	    <body>
+		<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = WindowedApplicationSkin " waitEvent="updateComplete" />
+		<SetProperty target="windowObj" propertyName="width" value="115"/>
+		<SetProperty target="windowObj" propertyName="height" value="183" waitEvent="resize" />
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.assertValueBaseOnOS('height',FlexGlobals.topLevelApplication.windowObj.height,183,183,183)" value=""/>
+		<MyCompareBitmap target="windowObj" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png"/>
+	    </body>
+	</TestCase>
+	
+	<TestCase testID="height_test6_SparkChrome" keywords="[Window,height]" description="Less than minHeight" >
+	   <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />        
+	    </setup> 
+	    <body>
+		<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+		<SetProperty target="windowObj" propertyName="width" value="115"/>
+		<SetProperty target="windowObj" propertyName="minHeight" value="150" />
+		<SetProperty target="windowObj" propertyName="height" value="130" waitEvent="resize" />
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.assertValueBaseOnOS('height',FlexGlobals.topLevelApplication.windowObj.height,150,150,150)" value=""/>
+		<MyCompareBitmap target="windowObj" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png"/>
+	    </body>
+	</TestCase>
+	
+	<TestCase testID="height_test6_windowedApplicationSkin" keywords="[Window,height]" description="Less than minHeight" >
+	   <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />        
+	    </setup> 
+	    <body>
+		<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = WindowedApplicationSkin " waitEvent="updateComplete" />
+		<SetProperty target="windowObj" propertyName="width" value="115"/>
+		<SetProperty target="windowObj" propertyName="minHeight" value="150" />
+		<SetProperty target="windowObj" propertyName="height" value="130" waitEvent="resize" />
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.assertValueBaseOnOS('height',FlexGlobals.topLevelApplication.windowObj.height,150,150,150)" value=""/>
+		<MyCompareBitmap target="windowObj" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png"/>
+	    </body>
+	</TestCase>
+	
+	<TestCase testID="height_test7_SparkChrome" keywords="[Window,height]" description="More than maxHeight" >
+	   <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />        
+	    </setup> 
+	    <body>
+		<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+		<SetProperty target="windowObj" propertyName="maxHeight" value="160" />
+		<SetProperty target="windowObj" propertyName="width" value="115"/>
+		<SetProperty target="windowObj" propertyName="height" value="170" waitEvent="resize" />
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.assertValueBaseOnOS('height',FlexGlobals.topLevelApplication.windowObj.height,160,160,160)" value=""/>
+		<MyCompareBitmap target="windowObj" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png"/>
+	    </body>
+	</TestCase>
+	
+	<TestCase testID="height_test7_windowedApplicationSkin" keywords="[Window,height]" description="More than maxHeight" >
+	   <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />        
+	    </setup> 
+	    <body>
+		<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = WindowedApplicationSkin " waitEvent="updateComplete" />
+		<SetProperty target="windowObj" propertyName="maxHeight" value="200" />
+		<SetProperty target="windowObj" propertyName="width" value="115"/>
+		<SetProperty target="windowObj" propertyName="height" value="250" waitEvent="resize" />
+		<AssertMethodValue method="value=FlexGlobals.topLevelApplication.assertValueBaseOnOS('height',FlexGlobals.topLevelApplication.windowObj.height,200,200,200)" value=""/>
+		<MyCompareBitmap target="windowObj" url="../properties/baselines/$testID.png" mac_url="../properties/baselines/$testID_mac.png" />
+	    </body>
+	</TestCase>
+
+	
+	<TestCase testID="height_test8_binding" keywords="[Window,height]" description="Bind to the height" >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(WindowWithBindableSettings,'window1')" />        
+	    </setup> 
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.heightVal=130"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete"/>  
+		<RunCode code="setBinding()" />
+		<AssertPropertyValue target="windowObj" propertyName="height" value="130" />
+		<AssertPropertyValue target="script:btn1" propertyName="label" value="130" />
+		<SetProperty target="windowObj" propertyName="height" value="170" waitEvent="updateComplete" />
+		<AssertPropertyValue target="script:btn1" propertyName="label" value="170" />
+	    </body>
+	</TestCase>
+
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_localization.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_localization.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_localization.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_localization.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="utf-8"?>
+<UnitTester testDir="apollo/spark/components/Window/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="window_basic_006.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.skins.spark.SparkChromeWindowedApplicationSkin ;
+	 import comps.*;
+	
+	
+    ]]>
+    </mx:Script>
+
+    <testCases>
+
+<TestCase testID="property_status_dbcharacters" keywords="[Window,flexChrome,Properties,showStatusBar]" 
+	description="check showStatusBar=true, status string is double byte characters" >
+    
+    <setup>
+        
+        <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+        
+        <RunCode code="FlexGlobals.topLevelApplication.windowObj.showStatusBar=true" />
+    
+    </setup>
+    
+    <body>
+        
+		<SetProperty target="windowObj" propertyName="width" value="115"/>
+		
+        <SetProperty target="windowObj" propertyName="status" value="江戸糸あやつり人形Japanese string" />
+        
+        <AssertPropertyValue target="windowObj" propertyName="showStatusBar" value="true" />
+  
+        <SetStyle target="windowObj" styleName="testStyle3"  waitEvent="updateComplete" waitTarget="windowObj" />      
+        <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_title_dbcharacters" keywords="[Window,flexChrome,Properties,showStatusBar]" 
+	description="check title string is double byte characters" >
+    
+    <setup>
+        
+        <RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete" />
+        
+        <RunCode code="FlexGlobals.topLevelApplication.windowObj.showStatusBar=true" />
+    
+    </setup>
+    
+    <body>
+		<SetProperty target="windowObj" propertyName="width" value="115"/>
+		        
+      	<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />	
+        <SetProperty target="windowObj" propertyName="title" value="江戸糸あやつり人形Japanese string" />
+        
+        <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>
+
+
+
+
+	
+
+ </testCases>
+        
+</UnitTester>
+
+

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_maximizable_false.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_maximizable_false.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_maximizable_false.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_maximizable_false.mxml Mon Aug  6 20:51:08 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.
+
+-->
+<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 comps.*;
+	public var expectSize:Number=0;
+	public function configureExpectSize(expectWinVal:Number, expectMacVal:Number,expectLinuxVal:Number):void
+	{
+		var current_os:String=Capabilities.os.toLowerCase();
+		if (current_os.indexOf("window")>-1)
+		{
+			expectSize=expectWinVal;
+		}else if (current_os.indexOf("mac")>-1)
+		{
+			expectSize=expectMacVal;
+		}else if (current_os.indexOf("linux")>-1)
+		{
+			expectSize=expectLinuxVal;
+		}
+	}
+	public function checkMaxSizeValue(actualSize:Number, expectSize:Number, delta:Number,description:String=null):String
+	{
+		var errMsg:String="";
+		if ((expectSize-actualSize)>delta) 
+		{
+			errMsg+="expectSize="+expectSize+";actualSize="+actualSize+";delta="+delta;
+			if (description!=null)
+			errMsg=description+":"+errMsg;
+		}
+		return errMsg;
+	}
+	]]>
+    </mx:Script>
+
+    <testCases>
+
+	<!--
+	========================================================
+	Test maximizable = false
+	- This tests the minimizable property.
+	- These are not tests specifically for the minimize
+	button or the minimize() method; those are tested
+	elsewhere.
+	- Pauses are necessary. There is no event because
+	we're making sure things *don't* happen.
+	========================================================
+	-->
+	<TestCase testID="maximizable_false_test1_SystemChrome" keywords="[Window,maximizable]" description="Click the maximize button to maximize." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/>    
+		<RunCode code="FlexGlobals.topLevelApplication.myWin.maxWidth=600;"/>
+		<RunCode code="FlexGlobals.topLevelApplication.myWin.maxHeight=600;" waitTarget="myWin" waitEvent="updateComplete" />
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+	    </setup>
+	    <body>
+		<DispatchMouseClickEvent target="myWin.skin.titleBar.maximizeButton" localX="2" localY="2" />
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="configureExpectSize(Capabilities.screenResolutionX,600,Capabilities.screenResolutionX)"/>
+		<AssertMethodValue method="value =checkMaxSizeValue( FlexGlobals.topLevelApplication.myWin.width,expectSize,100,'width')" value="width:expectSize=600;actualSize=300;delta=100" />
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="configureExpectSize(Capabilities.screenResolutionY,600,Capabilities.screenResolutionY)"/>
+		<AssertMethodValue method="value =checkMaxSizeValue( FlexGlobals.topLevelApplication.myWin.height,expectSize,100,'height')" value="height:expectSize=600;actualSize=350;delta=100" />
+
+		<AssertPropertyValue target="myWin.nativeWindow" propertyName="displayState" value="maximized" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="maximizable_false_test2_SystemChrome" keywords="[Window,maximizable]" description="Call the maximize method to maximize." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/> 
+		<RunCode code="FlexGlobals.topLevelApplication.myWin.maxWidth=600;"/>
+		<RunCode code="FlexGlobals.topLevelApplication.myWin.maxHeight=600;" waitTarget="myWin" waitEvent="updateComplete" />
+	    </setup>
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.myWin.maximize()" />
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<!-- there is 2 pixel difference -->
+		<RunCode code="configureExpectSize(Capabilities.screenResolutionX,600,Capabilities.screenResolutionX)"/>
+		<AssertMethodValue method="value =checkMaxSizeValue( FlexGlobals.topLevelApplication.myWin.width,expectSize,100,'width')" value="" />
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="configureExpectSize(Capabilities.screenResolutionY,600,Capabilities.screenResolutionY)"/>
+		<AssertMethodValue method="value =checkMaxSizeValue( FlexGlobals.topLevelApplication.myWin.height,expectSize,100,'height')" value="" />
+		<AssertPropertyValue target="myWin.nativeWindow" propertyName="displayState" value="maximized" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="maximizable_false_test3dowedApplicationSkin" keywords="[Window,maximizable]" description="Call the maximize method to maximize." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/> 
+		<RunCode code="FlexGlobals.topLevelApplication.myWin.maxWidth=600;"/>
+		<RunCode code="FlexGlobals.topLevelApplication.myWin.maxHeight=600;" waitTarget="myWin" waitEvent="updateComplete" />
+	    </setup>
+	    <body>
+		<SetStyle target="myWin" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+		<RunCode code="FlexGlobals.topLevelApplication.myWin.maximize()" />
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="configureExpectSize(Capabilities.screenResolutionX,600,Capabilities.screenResolutionX)"/>
+		<AssertMethodValue method="value =checkMaxSizeValue( FlexGlobals.topLevelApplication.myWin.width,expectSize,100,'width')" value="" />
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="configureExpectSize(Capabilities.screenResolutionY,600,Capabilities.screenResolutionY)"/>
+		<AssertMethodValue method="value =checkMaxSizeValue( FlexGlobals.topLevelApplication.myWin.height,expectSize,100,'height')" value="" />
+		<AssertPropertyValue target="myWin.nativeWindow" propertyName="displayState" value="maximized" />
+	    </body>
+	</TestCase>
+
+
+	<TestCase testID="maximizable_false_test4_SparkChrome" keywords="[Window,maximizable]" description="Be sure the maximize button appears disabled." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+	       <RunCode code="FlexGlobals.topLevelApplication.myWin=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(MySubWindow,'window1')" />        
+	    </setup> 
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.myWin.maximizable='false'"/>
+		<RunCode code="FlexGlobals.topLevelApplication.myWin.open(true)" waitTarget="" waitEvent="myWindowComplete"/> 
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<MyCompareBitmap url="../Properties/Baselines/$testID.png" mac_url="../Properties/Baselines/$testID_mac.png" target="myWin.skin.titleBar.maximizeButton" />
+	    </body>
+	</TestCase>
+
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_maximizable_false_systemchrom.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_maximizable_false_systemchrom.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_maximizable_false_systemchrom.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_maximizable_false_systemchrom.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,144 @@
+<?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.*;
+	public var expectSize:Number=0;
+	public function configureExpectSize(expectWinVal:Number, expectMacVal:Number,expectLinuxVal:Number):void
+	{
+		var current_os:String=Capabilities.os.toLowerCase();
+		if (current_os.indexOf("window")>-1)
+		{
+			expectSize=expectWinVal;
+		}else if (current_os.indexOf("mac")>-1)
+		{
+			expectSize=expectMacVal;
+		}else if (current_os.indexOf("linux")>-1)
+		{
+			expectSize=expectLinuxVal;
+		}
+	}
+	public function checkMaxSizeValue(actualSize:Number, expectSize:Number, delta:Number,description:String=null):String
+	{
+		var errMsg:String="";
+		if ((expectSize-actualSize)>delta) 
+		{
+			errMsg+="expectSize="+expectSize+";actualSize="+actualSize+";delta="+delta;
+			if (description!=null)
+				errMsg=description+":"+errMsg;
+		}
+		return errMsg;
+	}
+	]]>
+    </mx:Script>
+
+    <testCases>
+
+	<!--
+	========================================================
+	Test maximizable = false
+	- This tests the minimizable property.
+	- These are not tests specifically for the minimize
+	button or the minimize() method; those are tested
+	elsewhere.
+	- Pauses are necessary. There is no event because
+	we're making sure things *don't* happen.
+	========================================================
+	-->
+	
+
+	<TestCase testID="maximizable_false_test2_SystemChrome" keywords="[Window,maximizable]" description="Call the maximize method to maximize." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/> 
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxWidth=600;"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxHeight=600;" waitTarget="windowObj" waitEvent="updateComplete" />
+	    </setup>
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maximize()" />
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="4"/>
+		<RunCode code="configureExpectSize(Capabilities.screenResolutionX,600,Capabilities.screenResolutionX)"/>
+		<AssertMethodValue method="value =checkMaxSizeValue( FlexGlobals.topLevelApplication.windowObj.width,expectSize,130,'width')" value="" />
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="configureExpectSize(Capabilities.screenResolutionY,600,Capabilities.screenResolutionY)"/>
+		<AssertMethodValue method="value =checkMaxSizeValue( FlexGlobals.topLevelApplication.windowObj.height,expectSize,130,'height')" value="" />
+		<AssertPropertyValue target="windowObj.nativeWindow" propertyName="displayState" value="maximized" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="maximizable_false_test3_windowedApplicationSkin" keywords="[Window,maximizable]" description="Call the maximize method to maximize." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/> 
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxWidth=600;"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maxHeight=600;" waitTarget="windowObj" waitEvent="updateComplete" />
+	    </setup>
+	    <body>
+		<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = WindowedApplicationSkin" waitEvent="updateComplete" />
+
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maximize()" />
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="4"/>
+		<RunCode code="configureExpectSize(Capabilities.screenResolutionX,600,Capabilities.screenResolutionX)"/>
+		<AssertMethodValue method="value =checkMaxSizeValue( FlexGlobals.topLevelApplication.windowObj.width,expectSize,130,'width')" value="" />
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="configureExpectSize(Capabilities.screenResolutionY,600,Capabilities.screenResolutionY)"/>
+		<AssertMethodValue method="value =checkMaxSizeValue( FlexGlobals.topLevelApplication.windowObj.height,expectSize,130,'height')" value="" />
+		<AssertPropertyValue target="windowObj.nativeWindow" propertyName="displayState" value="maximized" />
+	    </body>
+	</TestCase>
+
+
+	<TestCase testID="maximizable_false_test4_SystemChrome" keywords="[Window,maximizable]" description="Be sure the maximize button appears disabled." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj=FlexGlobals.topLevelApplication.createANoOpenWindowByClass(PlainWindow,'window1')" />        
+	    </setup> 
+	    <body>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maximizable='false'"/>
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.open(true)" waitTarget="" waitEvent="myWindowComplete"/> 
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<MyCompareBitmap url="../Properties/Baselines/$testID.png" mac_url="../Properties/Baselines/$testID_mac.png" target="windowObj" />
+	    </body>
+	</TestCase>
+
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_maximizable_true.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_maximizable_true.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_maximizable_true.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/Window/properties/window_properties_maximizable_true.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,141 @@
+<?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.*;
+	
+	public function checkMaxSizeValue(actualSize:Number, expectSize:Number, delta:Number):Boolean
+	{
+		if ((expectSize-actualSize)<delta) 
+			return true;
+		else 
+			return false;
+	}
+	]]>
+	</mx:Script>
+
+    <testCases>
+
+	<!--
+	========================================================
+	Test maximizable = true
+	- This tests the maximizable property.
+	- These are not tests specifically for the maximize
+	button or the maximize() method; those are tested
+	elsewhere.
+	- We cannot compare the height of the app. with the
+	height of the screen due to the Mac's toolbar, Windows'
+	task bar, stuff like that.  So we just use the width,
+	which should be consistent, and the nativeWindow's
+	displayState property.
+	- These are order dependent!  The last tests are on
+	a closed window, so tests on an open window cannot
+	be put after them.
+	========================================================
+	-->
+	<TestCase testID="maximizable_true_test1" keywords="[Window,maximizable]" description="Confirm default is true." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/>    
+	    </setup>
+	    <body>
+		<AssertPropertyValue target="windowObj" propertyName="maximizable" value="true" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="maximizable_true_test2_SparkChrome " keywords="[Window,maximizable]" description="Click the maximize button to maximize." >
+	    <setup>
+	    <WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<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"/>
+		<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+		<DispatchMouseClickEvent target="windowObj.skin.titleBar.maximizeButton" localX="2" localY="2" waitTarget="windowObj" waitEvent="displayStateChange" />
+		<AssertMethodValue method="value=checkMaxSizeValue(FlexGlobals.topLevelApplication.windowObj.width, Capabilities.screenResolutionX, 100)" value="true" />
+		<AssertPropertyValue target="windowObj.nativeWindow" propertyName="displayState" value="maximized" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="maximizable_true_test3_SparkChrome " keywords="[Window,maximizable]" description="Call the maximize method to maximize." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/>  
+	    </setup>
+	    <body>
+		<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maximize()" waitTarget="windowObj" waitEvent="displayStateChange" />
+		<AssertMethodValue method="value=checkMaxSizeValue(FlexGlobals.topLevelApplication.windowObj.width, Capabilities.screenResolutionX, 100)" value="true" />
+		<AssertPropertyValue target="windowObj.nativeWindow" propertyName="displayState" value="maximized" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="maximizable_true_test3_windowedApplicationSkin" keywords="[Window,maximizable]" description="Call the maximize method to maximize." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/> 
+	    </setup>
+	    <body>
+		<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = WindowedApplicationSkin" waitEvent="updateComplete" />
+		<RunCode code="FlexGlobals.topLevelApplication.windowObj.maximize()" waitTarget="windowObj" waitEvent="displayStateChange" />
+		<AssertMethodValue method="value=checkMaxSizeValue(FlexGlobals.topLevelApplication.windowObj.width, Capabilities.screenResolutionX, 100)" value="true" />
+		<AssertPropertyValue target="windowObj.nativeWindow" propertyName="displayState" value="maximized" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="maximizable_true_test4_SparkChrome" keywords="[Window,maximizable]" description="Be sure the maximize button appears enabled." >
+	    <setup>
+		<RunCode code="FlexGlobals.topLevelApplication.closeAllChildWindow()"/>
+		<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="2"/>
+		<RunCode code="FlexGlobals.topLevelApplication.createAWindow()" waitTarget="" waitEvent="myWindowComplete"/> 
+	    </setup>
+	    <body>
+		<SetStyle target="windowObj" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+		<MyCompareBitmap url="../Properties/Baselines/$testID.png" mac_url="../Properties/Baselines/$testID_mac.png" target="windowObj.skin.titleBar.maximizeButton" />
+	    </body>
+	</TestCase>
+    </testCases>
+</UnitTester>



Mime
View raw message