incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1370009 [30/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/WindowedApplication/properties/wa_properties_height_minmaxsize_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_height_minmaxsize_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_height_minmaxsize_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_height_minmaxsize_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,101 @@
+<?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/WindowedApplication/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="wa_properties_heightwidth_minmaxsize.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 height
+Note: minSize and maxSize are:
+    <minSize>130 130</minSize>
+    <maxSize>750 650</maxSize>
+========================================================
+-->
+<TestCase testID="height_minSize_test1_SparkChromeWindowedApplicationSkin " keywords="[WindowedApplication,height]" description="Height less than AIR XML file's minSize height" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="height" value="50" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="130" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_minSize_test1_windowedApplicationSkin" keywords="[WindowedApplication,height]" description="Height less than AIR XML file's minSize height" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="height" value="50" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="130" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_maxSize_test2_SparkChromeWindowedApplicationSkin " keywords="[WindowedApplication,height]" description="Height more than AIR XML file's maxSize height" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="height" value="700" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="650" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_maxSize_test2_windowedApplication" keywords="[WindowedApplication,height]" description="Height more than AIR XML file's maxSize height" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="height" value="700" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="650" />
+    </body>
+</TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_height_systemchrome_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_height_systemchrome_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_height_systemchrome_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_height_systemchrome_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,149 @@
+<?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/WindowedApplication/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="wa_generic_systemchrome.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 height
+Note SDK-21672 for 1 and 2.
+========================================================
+-->
+<TestCase testID="height_test1_systemChrome" keywords="[WindowedApplication,height]" description="Negative" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="minHeight" value="-10"/>
+        <SetProperty target="" propertyName="height" value="-1" waitEvent="updateComplete" />
+        <AssertPropertyValue target="" propertyName="height" value="600" />
+        <CompareBitmap target="group1" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test2_systemChrome" keywords="[WindowedApplication,height]" description="Zero" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="minHeight" value="0"/>
+        <SetProperty target="" propertyName="height" value="0" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="600" />
+        <CompareBitmap target="group1" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test3_systemChrome" keywords="[WindowedApplication,height]" description="One" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="minHeight" value="-10"/>
+        <SetProperty target="" propertyName="height" value="1" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="1" />
+        <CompareBitmap target="group1" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test4_systemChrome" keywords="[WindowedApplication,height]" description="Set height to a positive, reasonable value." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="height" value="30" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="30" />
+        <CompareBitmap target="group1" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test5_systemChrome" keywords="[WindowedApplication,height]" description="Set height to a positive, reasonable value." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="height" value="253" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="253" />
+        <CompareBitmap target="group1" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test6_systemChrome" keywords="[WindowedApplication,height]" description="Less than minHeight" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="minHeight" value="150" />
+        <SetProperty target="" propertyName="height" value="130" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="150" />
+        <CompareBitmap target="group1" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test7_systemChrome" keywords="[WindowedApplication,height]" description="More than maxHeight" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="maxHeight" value="160" />
+        <SetProperty target="" propertyName="height" value="170" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="160" />
+        <CompareBitmap target="group1" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test8_binding" keywords="[WindowedApplication,height]" description="Bind to the height" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="height" value="130" waitEvent="resize" />
+        <AssertPropertyValue target="bindingTarget" propertyName="theHeight" value="130" />
+    </body>
+</TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_height_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_height_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_height_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_height_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,279 @@
+<?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/WindowedApplication/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="wa_properties_heightwidth.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 height
+========================================================
+-->
+<TestCase testID="height_test1_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,height]" description="Negative" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="minHeight" value="-10"/>
+        <SetProperty target="" propertyName="height" value="-1" waitEvent="updateComplete" />
+        <AssertPropertyValue target="" propertyName="height" value="2" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test1_windowedApplicationSkin_mac" keywords="[WindowedApplication,height]" description="Negative" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="minHeight" value="-10"/>
+        <SetProperty target="" propertyName="height" value="-1" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="2" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test2_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,height]" description="Zero" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="minHeight" value="-10"/>
+        <SetProperty target="" propertyName="height" value="0" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="2" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test2_windowedApplicationSkin_mac" keywords="[WindowedApplication,height]" description="Zero" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="minHeight" value="-10"/>
+        <SetProperty target="" propertyName="height" value="0" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="2" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test3_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,height]" description="One" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="minHeight" value="-10"/>
+        <SetProperty target="" propertyName="height" value="1" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="2" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test3_windowedApplicationSkin_mac" keywords="[WindowedApplication,height]" description="One" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="minHeight" value="-10"/>
+        <SetProperty target="" propertyName="height" value="1" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="2" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test4_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,height]" description="Set height to a positive, reasonable value." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="height" value="35" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="35" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test4_SparkChromeWindowedApplicationSkin_win" keywords="[WindowedApplication,height]" description="Set height to a positive, reasonable value." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="width" value="600" />
+        <SetProperty target="" propertyName="height" value="35" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="35" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test4_windowedApplicationSkin" keywords="[WindowedApplication,height]" description="Set height to a positive, reasonable value." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="height" value="35" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="35" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test5_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,height]" description="Set height to a positive, reasonable value." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="height" value="253" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="253" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test5_windowedApplicationSkin" keywords="[WindowedApplication,height]" description="Set height to a positive, reasonable value." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="height" value="183" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="183" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test6_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,height]" description="Less than minHeight" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="minHeight" value="150" />
+        <SetProperty target="" propertyName="height" value="130" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="150" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test6_SparkChromeWindowedApplicationSkin_win" keywords="[WindowedApplication,height]" description="Less than minHeight" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="minHeight" value="150" />
+        <SetProperty target="" propertyName="height" value="130" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="150" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test6_windowedApplicationSkin" keywords="[WindowedApplication,height]" description="Less than minHeight" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="minHeight" value="150" />
+        <SetProperty target="" propertyName="height" value="130" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="150" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test7_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,height]" description="Increase to more than maxHeight" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="height" value="150" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="maxHeight" value="160" />
+        <SetProperty target="" propertyName="height" value="170" waitEvent="updateComplete" />
+        <AssertPropertyValue target="" propertyName="height" value="160" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test7_SparkChromeWindowedApplicationSkin_win" keywords="[WindowedApplication,height]" description="More than maxHeight" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="height" value="150" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="maxHeight" value="160" />
+        <SetProperty target="" propertyName="height" value="170" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="160" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test7_windowedApplicationSkin" keywords="[WindowedApplication,height]" description="More than maxHeight" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="height" value="150" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="maxHeight" value="200" />
+        <SetProperty target="" propertyName="height" value="250" waitEvent="resize" />
+        <AssertPropertyValue target="" propertyName="height" value="200" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="height_test8_binding" keywords="[WindowedApplication,height]" description="Bind to the height" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="height" value="130" waitEvent="resize" />
+        <AssertPropertyValue target="bindingTarget" propertyName="theHeight" value="130" />
+    </body>
+</TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_layout_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_layout_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_layout_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_layout_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,323 @@
+<?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/WindowedApplication/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="wa_generic_systemchrome_nocontrols.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.layouts.*;
+        import spark.skins.spark.*;
+
+	]]>
+	</mx:Script>
+
+	<testCases>
+
+<!--
+========================================================
+Test layout.
+========================================================
+-->
+
+<TestCase testID="layout_test1" keywords="[WindowedApplication,layout]" description="Set to BasicLayout and add some controls." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="layout" valueExpression="value = new BasicLayout()" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b1', 0, 0)" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b2', 100, 0)" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b3', 0, 100)" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b4', 100, 100)" waitTarget="" waitEvent="updateComplete" />        
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).x" value="100" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).y" value="100" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).x" value="100" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).y" value="100" />
+    </body>
+</TestCase>
+
+<TestCase testID="layout_test2" keywords="[WindowedApplication,layout]" description="Minimize/restore with BasicLayout used." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="layout" valueExpression="value = new BasicLayout()" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b1', 0, 0)" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b2', 100, 0)" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b3', 0, 100)" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b4', 100, 100)" waitTarget="" waitEvent="updateComplete" />
+        <RunCode code="FlexGlobals.topLevelApplication.minimize()" waitTarget="" waitEvent="displayStateChange" />
+        <RunCode code="FlexGlobals.topLevelApplication.restore()" waitTarget="" waitEvent="displayStateChange" />        
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).x" value="100" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).y" value="100" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).x" value="100" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).y" value="100" />
+    </body>
+</TestCase>
+
+<TestCase testID="layout_test3" keywords="[WindowedApplication,layout]" description="Maximize with BasicLayout used." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="layout" valueExpression="value = new BasicLayout()" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b1', 0, 0)" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b2', 100, 0)" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b3', 0, 100)" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b4', 100, 100)" waitTarget="" waitEvent="updateComplete" />
+        <RunCode code="FlexGlobals.topLevelApplication.maximize()" waitTarget="" waitEvent="displayStateChange" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).x" value="100" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).y" value="100" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).x" value="100" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).y" value="100" />
+    </body>
+</TestCase>
+
+<TestCase testID="layout_test4" keywords="[WindowedApplication,layout]" description="Maximize/restore with BasicLayout used." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="layout" valueExpression="value = new BasicLayout()" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b1', 0, 0)" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b2', 100, 0)" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b3', 0, 100)" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b4', 100, 100)" waitTarget="" waitEvent="updateComplete" />
+        <RunCode code="FlexGlobals.topLevelApplication.maximize()" waitTarget="" waitEvent="displayStateChange" />
+        <RunCode code="FlexGlobals.topLevelApplication.restore()" waitTarget="" waitEvent="displayStateChange" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).x" value="100" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).y" value="100" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).x" value="100" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).y" value="100" />
+    </body>
+</TestCase>
+
+<TestCase testID="layout_test5" keywords="[WindowedApplication,layout]" description="Set to HorizontalLayout and add some controls." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="layout" valueExpression="value = new HorizontalLayout()" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b1')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b2')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b3')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b4')" waitTarget="" waitEvent="updateComplete" />        
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).x" value="76" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).x" value="152" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).x" value="228" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).y" value="0" />
+    </body>
+</TestCase>
+
+<TestCase testID="layout_test6" keywords="[WindowedApplication,layout]" description="Minimize/restore with HorizontalLayout used." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="layout" valueExpression="value = new HorizontalLayout()" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b1')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b2')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b3')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b4')" waitTarget="" waitEvent="updateComplete" />        
+        <RunCode code="FlexGlobals.topLevelApplication.minimize()" waitTarget="" waitEvent="displayStateChange" />
+        <RunCode code="FlexGlobals.topLevelApplication.restore()" waitTarget="" waitEvent="displayStateChange" />        
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).x" value="76" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).x" value="152" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).x" value="228" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).y" value="0" />
+    </body>
+</TestCase>
+
+<TestCase testID="layout_test7" keywords="[WindowedApplication,layout]" description="Maximize with HorizontalLayout used." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="layout" valueExpression="value = new HorizontalLayout()" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b1')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b2')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b3')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b4')" waitTarget="" waitEvent="updateComplete" />        
+        <RunCode code="FlexGlobals.topLevelApplication.maximize()" waitTarget="" waitEvent="displayStateChange" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).x" value="76" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).x" value="152" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).x" value="228" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).y" value="0" />
+    </body>
+</TestCase>
+
+<TestCase testID="layout_test8" keywords="[WindowedApplication,layout]" description="Maximize/restore with HorizontalLayout used." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="layout" valueExpression="value = new HorizontalLayout()" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b1')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b2')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b3')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b4')" waitTarget="" waitEvent="updateComplete" />        
+        <RunCode code="FlexGlobals.topLevelApplication.maximize()" waitTarget="" waitEvent="displayStateChange" />
+        <RunCode code="FlexGlobals.topLevelApplication.restore()" waitTarget="" waitEvent="displayStateChange" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).x" value="76" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).x" value="152" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).x" value="228" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).y" value="0" />
+    </body>
+</TestCase>
+
+<TestCase testID="layout_test9" keywords="[WindowedApplication,layout]" description="Set to VerticalLayout and add some controls." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="layout" valueExpression="value = new VerticalLayout()" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b1')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b2')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b3')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b4')" waitTarget="" waitEvent="updateComplete" />        
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).y" value="27" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).y" value="54" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).y" value="81" />
+    </body>
+</TestCase>
+
+<TestCase testID="layout_test10" keywords="[WindowedApplication,layout]" description="Minimize/restore with VerticalLayout used." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="layout" valueExpression="value = new VerticalLayout()" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b1')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b2')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b3')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b4')" waitTarget="" waitEvent="updateComplete" />        
+        <RunCode code="FlexGlobals.topLevelApplication.minimize()" waitTarget="" waitEvent="displayStateChange" />
+        <RunCode code="FlexGlobals.topLevelApplication.restore()" waitTarget="" waitEvent="displayStateChange" />        
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).y" value="27" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).y" value="54" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).y" value="81" />
+    </body>
+</TestCase>
+
+<TestCase testID="layout_test11" keywords="[WindowedApplication,layout]" description="Maximize with VerticalLayout used." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="layout" valueExpression="value = new VerticalLayout()" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b1')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b2')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b3')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b4')" waitTarget="" waitEvent="updateComplete" />        
+        <RunCode code="FlexGlobals.topLevelApplication.maximize()" waitTarget="" waitEvent="displayStateChange" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).y" value="27" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).y" value="54" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).y" value="81" />
+    </body>
+</TestCase>
+
+<TestCase testID="layout_test12" keywords="[WindowedApplication,layout]" description="Maximize/restore with VerticalLayout used." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="layout" valueExpression="value = new VerticalLayout()" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b1')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b2')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b3')" />
+        <RunCode code="FlexGlobals.topLevelApplication.addButton('b4')" waitTarget="" waitEvent="updateComplete" />        
+        <RunCode code="FlexGlobals.topLevelApplication.maximize()" waitTarget="" waitEvent="displayStateChange" />
+        <RunCode code="FlexGlobals.topLevelApplication.restore()" waitTarget="" waitEvent="displayStateChange" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(0).y" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(1).y" value="27" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(2).y" value="54" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).x" value="0" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.getElementAt(3).y" value="81" />
+    </body>
+</TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_maximizable_false.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_maximizable_false.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_maximizable_false.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_maximizable_false.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,126 @@
+<?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/WindowedApplication/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="wa_app3.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 maximizable = false
+- Note that maximizable can only be set in the AIR XML
+file, so here we can only test false.  True is handled
+in another file.
+- 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_SparkChromeWindowedApplicationSkin" keywords="[WindowedApplication,maximizable]" description="Click the maximize button to maximize." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <DispatchMouseClickEvent target="skin.titleBar.maximizeButton" localX="2" localY="2" />
+        <Pause timeout="200" />
+        <AssertPropertyValue target="" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.widthResetVal" />
+        <AssertPropertyValue target="" propertyName="height" valueExpression="value = FlexGlobals.topLevelApplication.heightResetVal" />
+        <AssertPropertyValue target="nativeWindow" propertyName="displayState" value="normal" />
+    </body>
+</TestCase>
+
+<TestCase testID="maximizable_false_test2_SparkChromeWindowedApplicationSkin" keywords="[WindowedApplication,maximizable]" description="Call the maximize method to maximize." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <RunCode code="WindowedApplication(FlexGlobals.topLevelApplication).maximize()" />
+        <Pause timeout="200" />
+        <AssertPropertyValue target="" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.widthResetVal" />
+        <AssertPropertyValue target="" propertyName="height" valueExpression="value = FlexGlobals.topLevelApplication.heightResetVal" />
+        <AssertPropertyValue target="nativeWindow" propertyName="displayState" value="normal" />
+    </body>
+</TestCase>
+
+<TestCase testID="maximizable_false_test3_windowedApplicationSkin" keywords="[WindowedApplication,maximizable]" description="Call the maximize method to maximize." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <RunCode code="WindowedApplication(FlexGlobals.topLevelApplication).maximize()" />
+        <Pause timeout="200" />
+        <AssertPropertyValue target="" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.widthResetVal" />
+        <AssertPropertyValue target="" propertyName="height" valueExpression="value = FlexGlobals.topLevelApplication.heightResetVal" />
+        <AssertPropertyValue target="nativeWindow" propertyName="displayState" value="normal" />
+    </body>
+</TestCase>
+
+<TestCase testID="maximizable_false_test4_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,maximizable]" description="Be sure the maximize button appears disabled." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <CompareBitmap url="../Properties/Baselines/$testID.png" target="skin.titleBar.maximizeButton" />
+    </body>
+</TestCase>
+
+<TestCase testID="maximizable_false_test4_SparkChromeWindowedApplicationSkin_win" keywords="[WindowedApplication,maximizable]" description="Be sure the maximize button appears disabled." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <CompareBitmap url="../Properties/Baselines/$testID.png" target="skin.titleBar.maximizeButton" />
+    </body>
+</TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_maximizable_true.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_maximizable_true.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_maximizable_true.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_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/WindowedApplication/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="wa_app2.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 maximizable = true
+- Note that maximizable can only be set in the AIR XML
+file, so here we can only test true.  False is handled
+in another file.
+- 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="[WindowedApplication,maximizable]" description="Confirm default is true." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <AssertPropertyValue propertyName="maximizable" value="true" />
+    </body>
+</TestCase>
+
+<TestCase testID="maximizable_true_test2_SparkChromeWindowedApplicationSkin" keywords="[WindowedApplication,maximizable]" description="Click the maximize button to maximize." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <DispatchMouseClickEvent target="skin.titleBar.maximizeButton" localX="2" localY="2" waitTarget="" waitEvent="windowResize" />
+        <Pause timeout="200"/>
+        <AssertMethodValue method="value = (Capabilities.screenResolutionX >= FlexGlobals.topLevelApplication.width) &amp;&amp; (FlexGlobals.topLevelApplication.width >= FlexGlobals.topLevelApplication.screenWidthFudged)" value="true" />
+        <AssertPropertyValue target="nativeWindow" propertyName="displayState" value="maximized" />
+        <RunCode code="FlexGlobals.topLevelApplication.restore()" />
+    </body>
+</TestCase>
+
+<TestCase testID="maximizable_true_test3_SparkChromeWindowedApplicationSkin" keywords="[WindowedApplication,maximizable]" description="Call the maximize method to maximize." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <RunCode code="WindowedApplication(FlexGlobals.topLevelApplication).maximize()" waitTarget="" waitEvent="windowResize" />
+        <Pause timeout="200"/>
+        <AssertMethodValue method="value = (Capabilities.screenResolutionX >= FlexGlobals.topLevelApplication.width) &amp;&amp; (FlexGlobals.topLevelApplication.width >= FlexGlobals.topLevelApplication.screenWidthFudged)" value="true" />
+        <AssertPropertyValue target="nativeWindow" propertyName="displayState" value="maximized" />
+        <RunCode code="FlexGlobals.topLevelApplication.restore()" />
+    </body>
+</TestCase>
+
+<TestCase testID="maximizable_true_test3_windowedApplicationSkin" keywords="[WindowedApplication,maximizable]" description="Call the maximize method to maximize." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <RunCode code="WindowedApplication(FlexGlobals.topLevelApplication).maximize()" waitTarget="" waitEvent="windowResize" />
+        <Pause timeout="200"/>
+        <AssertMethodValue method="value = (Capabilities.screenResolutionX >= FlexGlobals.topLevelApplication.width) &amp;&amp; (FlexGlobals.topLevelApplication.width >= FlexGlobals.topLevelApplication.screenWidthFudged)" value="true" />
+        <AssertPropertyValue target="nativeWindow" propertyName="displayState" value="maximized" />
+        <RunCode code="FlexGlobals.topLevelApplication.restore()" />
+    </body>
+</TestCase>
+
+<TestCase testID="maximizable_true_test4_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,maximizable]" description="Be sure the maximize button appears enabled." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <CompareBitmap url="../Properties/Baselines/$testID.png" target="skin.titleBar.maximizeButton" />
+    </body>
+</TestCase>
+
+<TestCase testID="maximizable_true_test4_SparkChromeWindowedApplicationSkin_win" keywords="[WindowedApplication,maximizable]" description="Be sure the maximize button appears enabled." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <CompareBitmap url="../Properties/Baselines/$testID.png" target="skin.titleBar.maximizeButton" />
+    </body>
+</TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_maximizable_true_closed.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_maximizable_true_closed.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_maximizable_true_closed.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_maximizable_true_closed.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,85 @@
+<?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/WindowedApplication/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="wa_app4.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 maximizable = true
+- Note that maximizable can only be set in the AIR XML
+file, so here we can only test true.  False is handled
+in another file.
+- 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.
+========================================================
+-->
+<!--
+================================================================================
+ALL TESTS ARE PERFORMED ON A CLOSED WINDOW.  IT CANNOT BE REOPENED.
+================================================================================
+-->
+<TestCase testID="maximizable_true_test4_SparkChromeWindowedApplicationSkin " keywords="[WindowedApplication,maximizable]" description="Returns false if the window is closed." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <AssertPropertyValue propertyName="maximizable" value="false" />
+    </body>
+</TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_minimizable_false.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_minimizable_false.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_minimizable_false.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_minimizable_false.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,128 @@
+<?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/WindowedApplication/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="wa_app3.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 minimizable = false
+- Note that minimizable can only be set in the AIR XML
+file, so here we can only test false.  True is handled
+in another file.
+- 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="minimizable_false_test1_SparkChromeWindowedApplicationSkin" keywords="[WindowedApplication,minimizable]" description="Click the minimize button to minimize." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <DispatchMouseClickEvent target="skin.titleBar.minimizeButton" localX="2" localY="2" />
+        <Pause timeout="200" />
+        <AssertPropertyValue target="" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.widthResetVal" />
+        <AssertPropertyValue target="" propertyName="height" valueExpression="value = FlexGlobals.topLevelApplication.heightResetVal" />
+        <AssertPropertyValue target="nativeWindow" propertyName="displayState" value="normal" />
+    </body>
+</TestCase>
+
+<!-- SDK-21585 -->
+<TestCase testID="minimizable_false_test2_SparkChromeWindowedApplicationSkin" keywords="[WindowedApplication,minimizable]" description="Call the minimize method to minimize." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <RunCode code="WindowedApplication(FlexGlobals.topLevelApplication).minimize()" />
+        <Pause timeout="200" />
+        <AssertPropertyValue target="" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.widthResetVal" />
+        <AssertPropertyValue target="" propertyName="height" valueExpression="value = FlexGlobals.topLevelApplication.heightResetVal" />
+        <AssertPropertyValue target="nativeWindow" propertyName="displayState" value="normal" />
+    </body>
+</TestCase>
+
+<!-- SDK-21585 -->
+<TestCase testID="minimizable_false_test3_windowedApplicationSkin" keywords="[WindowedApplication,minimizable]" description="Call the minimize method to minimize." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <RunCode code="WindowedApplication(FlexGlobals.topLevelApplication).minimize()" />
+        <Pause timeout="200" />
+        <AssertPropertyValue target="" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.widthResetVal" />
+        <AssertPropertyValue target="" propertyName="height" valueExpression="value = FlexGlobals.topLevelApplication.heightResetVal" />
+        <AssertPropertyValue target="nativeWindow" propertyName="displayState" value="normal" />
+    </body>
+</TestCase>
+
+<TestCase testID="minimizable_false_test4_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,minimizable]" description="Be sure the minimize button appears disabled." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <CompareBitmap url="../Properties/Baselines/$testID.png" target="skin.titleBar.minimizeButton" />
+    </body>
+</TestCase>
+
+<TestCase testID="minimizable_false_test4_SparkChromeWindowedApplicationSkin_win" keywords="[WindowedApplication,minimizable]" description="Be sure the minimize button appears disabled." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <CompareBitmap url="../Properties/Baselines/$testID.png" target="skin.titleBar.minimizeButton" />
+    </body>
+</TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_minimizable_true.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_minimizable_true.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_minimizable_true.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_minimizable_true.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,137 @@
+<?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/WindowedApplication/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="wa_app2.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 minimizable = true
+- Note that minimizable can only be set in the AIR XML
+file, so here we can only test true.  False is handled
+in another file.
+- This tests the minimizable property.
+- These are not tests specifically for the minimize
+button or the minimize() 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="minimizable_true_test1" keywords="[WindowedApplication,minimizable]" description="Confirm default is true." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <AssertPropertyValue propertyName="minimizable" value="true" />
+    </body>
+</TestCase>
+
+<TestCase testID="minimizable_true_test2_SparkChromeWindowedApplicationSkin" keywords="[WindowedApplication,minimizable]" description="Click the minimize button to minimize." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <DispatchMouseClickEvent target="skin.titleBar.minimizeButton" localX="2" localY="2" waitTarget="" waitEvent="displayStateChange" />
+        <AssertPropertyValue target="nativeWindow" propertyName="displayState" value="minimized" />
+        <RunCode code="FlexGlobals.topLevelApplication.restore()" />
+    </body>
+</TestCase>
+
+<TestCase testID="minimizable_true_test3_SparkChromeWindowedApplicationSkin" keywords="[WindowedApplication,minimizable]" description="Call the minimize method to minimize." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <RunCode code="WindowedApplication(FlexGlobals.topLevelApplication).minimize()" waitTarget="" waitEvent="displayStateChange"  />
+        <WaitForEffectsToEnd />
+        <AssertPropertyValue target="nativeWindow" propertyName="displayState" value="minimized" />
+        <RunCode code="FlexGlobals.topLevelApplication.restore()" />
+    </body>
+</TestCase>
+
+<TestCase testID="minimizable_true_test3_windowedApplicationSkin" keywords="[WindowedApplication,minimizable]" description="Call the minimize method to minimize." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <RunCode code="WindowedApplication(FlexGlobals.topLevelApplication).minimize()" />
+        <WaitForEvent numExpectedEvents="1" eventName="displayStateChange" target="" timeout="2000" />
+        <AssertPropertyValue target="nativeWindow" propertyName="displayState" value="minimized" />
+        <RunCode code="FlexGlobals.topLevelApplication.restore()" />
+    </body>
+</TestCase>
+
+<TestCase testID="minimizable_true_test4_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,minimizable]" description="Be sure the minimize button appears enabled." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <CompareBitmap url="../Properties/Baselines/$testID.png" target="skin.titleBar.minimizeButton" />
+    </body>
+</TestCase>
+
+<TestCase testID="minimizable_true_test4_SparkChromeWindowedApplicationSkin_win" keywords="[WindowedApplication,minimizable]" description="Be sure the minimize button appears enabled." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <CompareBitmap url="../Properties/Baselines/$testID.png" target="skin.titleBar.minimizeButton" />
+    </body>
+</TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_minimizable_true_closed.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_minimizable_true_closed.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_minimizable_true_closed.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_minimizable_true_closed.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,86 @@
+<?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/WindowedApplication/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="wa_app4.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 minimizable = true
+- Note that minimizable can only be set in the AIR XML
+file, so here we can only test true.  False is handled
+in another file.
+- This tests the minimizable property.
+- These are not tests specifically for the minimize
+button or the minimize() 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.
+========================================================
+-->
+
+<!--
+================================================================================
+ALL TESTS AFTER THIS LINE ARE PERFORMED ON A CLOSED WINDOW.
+================================================================================
+-->
+<TestCase testID="minimizable_true_test4_SparkChromeWindowedApplicationSkin " keywords="[WindowedApplication,minimizable]" description="Returns false if the window is closed." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <AssertPropertyValue propertyName="minimizable" value="false" />
+    </body>
+</TestCase>
+
+	</testCases>
+</UnitTester>



Mime
View raw message