flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1370009 [31/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_minmaxheightwidth_minmaxsize_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_minmaxheightwidth_minmaxsize_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_minmaxheightwidth_minmaxsize_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_minmaxheightwidth_minmaxsize_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,84 @@
+<?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_minmaxheightwidth_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>
+
+<!--
+========================================================
+In this file, just be sure the min/max height/width
+come from the XML file if not explicitly set in Flex.
+<minSize>200 300</minSize>
+<maxSize>700 800</maxSize>
+========================================================
+-->
+
+<TestCase testID="minHeight_minSize_test1" keywords="[WindowedApplication,minHeight]" description="minHeight comes from the AIR xml file if not set in Flex." >
+    <body>
+        <AssertPropertyValue target="" propertyName="minHeight" value="300" />
+    </body>
+</TestCase>
+
+<TestCase testID="minWidth_minSize_test2" keywords="[WindowedApplication,minWidth]" description="minWidth comes from the AIR xml file if not set in Flex." >
+    <body>
+        <AssertPropertyValue target="" propertyName="minWidth" value="200" />
+    </body>
+</TestCase>
+
+<TestCase testID="maxHeight_maxSize_test3" keywords="[WindowedApplication,maxHeight]" description="maxHeight comes from the AIR xml file if not set in Flex." >
+    <body>
+        <AssertPropertyValue target="" propertyName="maxHeight" value="800" />
+    </body>
+</TestCase>
+
+<TestCase testID="maxWidth_maxSize_test4" keywords="[WindowedApplication,maxWidth]" description="maxWidth comes from the AIR xml file if not set in Flex." >
+    <body>
+        <AssertPropertyValue target="" propertyName="maxWidth" value="700" />
+    </body>
+</TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_minmaxheightwidth_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_minmaxheightwidth_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_minmaxheightwidth_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_minmaxheightwidth_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,209 @@
+<?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_minmaxheightwidth.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>
+
+<!--
+========================================================
+maxHeight
+Most tests decreaes it from 200.
+========================================================
+-->
+
+<TestCase testID="maxHeight_test3" keywords="[WindowedApplication,maxHeight]" description="Decrease to 1" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="maxHeight" value="1" waitEvent="updateComplete" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.assertValueBasedOnOS(FlexGlobals.topLevelApplication.height, 34, 2, 2)" value="pass" />
+    </body>
+</TestCase>
+
+<TestCase testID="maxHeight_test4" keywords="[WindowedApplication,maxHeight]" description="Decrease to reasonable value" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="maxHeight" value="99" waitEvent="updateComplete" />
+        <AssertPropertyValue target="" propertyName="height" value="99" />
+    </body>
+</TestCase>
+
+<TestCase testID="maxHeight_test5" keywords="[WindowedApplication,maxHeight]" description="Increase." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="maxHeight" value="500" />
+        <SetProperty target="" propertyName="height" value="600" waitEvent="updateComplete" />
+        <AssertPropertyValue target="" propertyName="height" value="500" />
+    </body>
+</TestCase>
+
+<TestCase testID="maxHeight_test6" keywords="[WindowedApplication,maxHeight]" description="Bindable" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="maxHeight" value="500" waitEvent="updateComplete" />
+        <AssertPropertyValue target="bindingTarget" propertyName="theMaxHeight" value="500" />
+    </body>
+</TestCase>
+
+
+<TestCase testID="maxWidth_test4" keywords="[WindowedApplication,maxWidth]" description="Decrease to reasonable value" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="maxWidth" value="140" waitEvent="updateComplete" />
+        <AssertPropertyValue target="" propertyName="width" value="140" />
+    </body>
+</TestCase>
+
+<TestCase testID="maxWidth_test4_mac" keywords="[WindowedApplication,maxWidth]" description="Decrease to reasonable value.  Take a screen shot for the Mac (SDK-22200)." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+        <SetStyle target="" styleName="skinClass" valueExpression="value = spark.skins.spark.SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="maxWidth" value="123" waitEvent="updateComplete" />
+        <AssertPropertyValue target="" propertyName="width" value="123" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="maxWidth_test5" keywords="[WindowedApplication,maxWidth]" description="Increase." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="maxWidth" value="500" />
+        <SetProperty target="" propertyName="width" value="600" waitEvent="updateComplete" />
+        <AssertPropertyValue target="" propertyName="width" value="500" />
+    </body>
+</TestCase>
+
+<TestCase testID="maxWidth_test6" keywords="[WindowedApplication,maxWidth]" description="Bindable" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="maxWidth" value="500" waitEvent="updateComplete" />
+        <AssertPropertyValue target="bindingTarget" propertyName="theMaxWidth" value="500" />
+    </body>
+</TestCase>
+
+<TestCase testID="minHeight_test4" keywords="[WindowedApplication,minHeight]" description="Greater than the height." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="height" value="50" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="minHeight" value="51" waitEvent="updateComplete" />
+        <AssertPropertyValue target="" propertyName="height" value="51" />
+    </body>
+</TestCase>
+
+<TestCase testID="minHeight_test5" keywords="[WindowedApplication,minHeight]" description="Less than the height. There's no event to wait for." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="height" value="50" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="minHeight" value="49" />
+        <Pause timeout="100" />
+        <AssertPropertyValue target="" propertyName="height" value="50" />
+    </body>
+</TestCase>
+
+<TestCase testID="minHeight_test6" keywords="[WindowedApplication,bindable]" description="Be sure it's bindable." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="minHeight" value="49" waitEvent="updateComplete" />
+        <AssertPropertyValue target="bindingTarget" propertyName="theMinHeight" value="49" />
+    </body>
+</TestCase>
+
+
+<TestCase testID="minWidth_test4" keywords="[WindowedApplication,minWidth]" description="Greater than the width." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="width" value="125" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="minWidth" value="140" waitEvent="updateComplete" />
+        <AssertPropertyValue target="" propertyName="width" value="140" />
+    </body>
+</TestCase>
+
+<TestCase testID="minWidth_test5" keywords="[WindowedApplication,minWidth]" description="Less than the width. There's no event to wait for." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="width" value="125" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="minWidth" value="140" />
+        <Pause timeout="100" />
+        <AssertPropertyValue target="" propertyName="width" value="140" />
+    </body>
+</TestCase>
+
+<TestCase testID="minWidth_test6" keywords="[WindowedApplication,bindable]" description="Be sure it's bindable." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="minWidth" value="140" waitEvent="updateComplete" />
+        <AssertPropertyValue target="bindingTarget" propertyName="theMinWidth" value="140" />
+    </body>
+</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_nativeApplication_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_nativeApplication_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_nativeApplication_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_nativeApplication_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,64 @@
+<?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 flash.desktop.NativeApplication;
+        import mx.core.FlexGlobals;
+
+	]]>
+	</mx:Script>
+
+	<testCases>
+
+<!--
+========================================================
+Just get nativeApplication.  It's read-only.
+========================================================
+-->
+
+<TestCase testID="nativeApplication_test1" keywords="[WindowedApplication,nativeApplication]" description="Just get it." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.nativeApplication is NativeApplication" value="true" />
+    </body>
+</TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_resizable_false.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_resizable_false.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_resizable_false.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_resizable_false.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,75 @@
+<?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_noresizing.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 resizable = false
+- Note that resizable can only be set in the AIR XML
+file, so here we can only test false.  True is handled
+in another file.
+========================================================
+-->
+<TestCase testID="resizable_false_test1" keywords="[WindowedApplication,resizable]" description="Be sure we have the value." >
+    <body>
+        <AssertPropertyValue target="" propertyName="resizable" value="false" />
+    </body>
+</TestCase>
+
+<TestCase testID="resizable_false_test2" keywords="[WindowedApplication,resizable]" description="Try to resize." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.width + 10" />
+        <SetProperty target="" propertyName="height" valueExpression="value = FlexGlobals.topLevelApplication.height + 10" />
+        <AssertNoEvent target="" eventName="resize" eventClass="mx.events::ResizeEvent" />
+    </body>
+</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_resizable_true.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_resizable_true.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_resizable_true.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_resizable_true.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,64 @@
+<?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 resizable
+- We resize many times in other tests.  Here, just
+be sure we get it correctly when it's true.
+========================================================
+-->
+<TestCase testID="resizable_true_test1" keywords="[WindowedApplication,resizable]" description="Just get it when it's true." >
+    <body>
+        <AssertPropertyValue target="" propertyName="resizable" value="true" />
+    </body>
+</TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_showStatusBar_systemchrome_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_showStatusBar_systemchrome_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_showStatusBar_systemchrome_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_showStatusBar_systemchrome_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,148 @@
+<?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 showStatusBar
+All pauses are needed.
+========================================================
+-->
+<TestCase testID="showStatusBar_test1_systemChrome" keywords="[WindowedApplication,showStatusBar]" description="true" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test2_systemChrome" keywords="[WindowedApplication,showStatusBar]" description="false" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+        <SetProperty target="" propertyName="showStatusBar" value="false" waitEvent="updateComplete" />
+    </setup>
+    <body>
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test3_systemChrome" keywords="[WindowedApplication,showStatusBar]" description="true when already true" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+        <SetProperty target="" propertyName="showStatusBar" value="true" />
+        <Pause timeout="100" />
+    </setup>
+    <body>
+        <AssertPropertyValue target="" propertyName="showStatusBar" value="true" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test4_systemChrome" keywords="[WindowedApplication,showStatusBar]" description="false when already false" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+        <SetProperty target="" propertyName="showStatusBar" value="false"/>
+        <Pause timeout="100" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="showStatusBar" value="false" />
+        <Pause timeout="100" />
+        <AssertPropertyValue target="" propertyName="showStatusBar" value="false" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test5_systemChrome" keywords="[WindowedApplication,showStatusBar]" description="wider" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.width + 20" waitEvent="updateComplete" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test6_systemChrome" keywords="[WindowedApplication,showStatusBar]" description="narrower" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.width - 30" waitEvent="updateComplete" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test7_systemChrome" keywords="[WindowedApplication,showStatusBar]" description="false to true while minimized" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="showStatusBar" value="false" waitEvent="updateComplete" />
+        <RunCode code="FlexGlobals.topLevelApplication.minimize()" waitTarget="" waitEvent="displayStateChange" />
+        <SetProperty target="" propertyName="showStatusBar" value="true" waitEvent="updateComplete" />
+        <RunCode code="FlexGlobals.topLevelApplication.restore()" waitTarget="" waitEvent="displayStateChange" />
+        <AssertPropertyValue target="" propertyName="showStatusBar" value="true" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test8_systemChrome" keywords="[WindowedApplication,showStatusBar]" description="true to false while minimized" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <RunCode code="FlexGlobals.topLevelApplication.minimize()" waitTarget="" waitEvent="displayStateChange" />
+        <SetProperty target="" propertyName="showStatusBar" value="false" waitEvent="updateComplete" />
+        <RunCode code="FlexGlobals.topLevelApplication.restore()" waitTarget="" waitEvent="displayStateChange" />
+        <AssertPropertyValue target="" propertyName="showStatusBar" value="false" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_showStatusBar_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_showStatusBar_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_showStatusBar_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_showStatusBar_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,355 @@
+<?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 showStatusBar
+All pauses are needed.
+========================================================
+-->
+<TestCase testID="showStatusBar_test1_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,showStatusBar]" description="true" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test1_SparkChromeWindowedApplicationSkin_win" keywords="[WindowedApplication,showStatusBar]" description="true" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test2_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,showStatusBar]" description="false" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+        <SetProperty target="" propertyName="showStatusBar" value="false" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test2_SparkChromeWindowedApplicationSkin_win" keywords="[WindowedApplication,showStatusBar]" description="false" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+        <SetProperty target="" propertyName="showStatusBar" value="false" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test3_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,showStatusBar]" description="false with a pause" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+        <SetProperty target="" propertyName="showStatusBar" value="false" />
+        <Pause timeout="1" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test3_SparkChromeWindowedApplicationSkin_win" keywords="[WindowedApplication,showStatusBar]" description="false with a pause" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+        <SetProperty target="" propertyName="showStatusBar" value="false" />
+        <Pause timeout="1" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test4_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,showStatusBar]" description="true when already true" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+        <SetProperty target="" propertyName="showStatusBar" value="true" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test4_SparkChromeWindowedApplicationSkin_win" keywords="[WindowedApplication,showStatusBar]" description="true when already true" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+        <SetProperty target="" propertyName="showStatusBar" value="true" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test5_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,showStatusBar]" description="false when already false" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+        <SetProperty target="" propertyName="showStatusBar" value="false"/>
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="showStatusBar" value="false" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test5_SparkChromeWindowedApplicationSkin_win" keywords="[WindowedApplication,showStatusBar]" description="false when already false" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+        <SetProperty target="" propertyName="showStatusBar" value="false"/>
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="showStatusBar" value="false" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test6_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,showStatusBar]" description="wider" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.width + 20" waitEvent="updateComplete" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test6_SparkChromeWindowedApplicationSkin_win" keywords="[WindowedApplication,showStatusBar]" description="wider" >
+    <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="600"/>
+        <SetProperty target="" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.width + 20" waitEvent="updateComplete" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test7_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,showStatusBar]" description="narrower" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.width - 30" waitEvent="updateComplete" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test7_SparkChromeWindowedApplicationSkin_win" keywords="[WindowedApplication,showStatusBar]" description="narrower" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.width - 30" waitEvent="updateComplete" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test8_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,showStatusBar]" description="false to true while minimized" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="showStatusBar" value="false" waitEvent="updateComplete" />
+        <RunCode code="FlexGlobals.topLevelApplication.minimize()" waitTarget="" waitEvent="displayStateChange" />
+        <SetProperty target="" propertyName="showStatusBar" value="true" waitEvent="updateComplete" />
+        <RunCode code="FlexGlobals.topLevelApplication.restore()" waitTarget="" waitEvent="displayStateChange" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test8_SparkChromeWindowedApplicationSkin_win" keywords="[WindowedApplication,showStatusBar]" description="false to true while minimized" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="showStatusBar" value="false" waitEvent="updateComplete" />
+        <RunCode code="FlexGlobals.topLevelApplication.minimize()" waitTarget="" waitEvent="displayStateChange" />
+        <SetProperty target="" propertyName="showStatusBar" value="true" waitEvent="updateComplete" />
+        <RunCode code="FlexGlobals.topLevelApplication.restore()" waitTarget="" waitEvent="displayStateChange" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test9_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,showStatusBar]" description="true to false while minimized" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <RunCode code="FlexGlobals.topLevelApplication.minimize()" waitTarget="" waitEvent="displayStateChange" />
+        <SetProperty target="" propertyName="showStatusBar" value="false" waitEvent="updateComplete" />
+        <RunCode code="FlexGlobals.topLevelApplication.restore()" waitTarget="" waitEvent="displayStateChange" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test9_SparkChromeWindowedApplicationSkin_win" keywords="[WindowedApplication,showStatusBar]" description="true to false while minimized" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin" waitEvent="updateComplete" />
+        <RunCode code="FlexGlobals.topLevelApplication.minimize()" waitTarget="" waitEvent="displayStateChange" />
+        <SetProperty target="" propertyName="showStatusBar" value="false" waitEvent="updateComplete" />
+        <RunCode code="FlexGlobals.topLevelApplication.restore()" waitTarget="" waitEvent="displayStateChange" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test1_WindowedApplicationSkin" keywords="[WindowedApplication,showStatusBar]" description="true" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test2_WindowedApplicationSkin" keywords="[WindowedApplication,showStatusBar]" description="false" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+        <SetProperty target="" propertyName="showStatusBar" value="false" waitEvent="updateComplete" />
+    </setup>
+    <body>
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test3_WindowedApplicationSkin" keywords="[WindowedApplication,showStatusBar]" description="true when already true" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+        <SetProperty target="" propertyName="showStatusBar" value="true" />
+        <Pause timeout="100" />
+    </setup>
+    <body>
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test4_WindowedApplicationSkin" keywords="[WindowedApplication,showStatusBar]" description="false when already false" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+        <SetProperty target="" propertyName="showStatusBar" value="false"/>
+        <Pause timeout="100" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="showStatusBar" value="false" />
+        <Pause timeout="100" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test5_WindowedApplicationSkin" keywords="[WindowedApplication,showStatusBar]" description="wider" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.width + 20" waitEvent="updateComplete" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test6_WindowedApplicationSkin" keywords="[WindowedApplication,showStatusBar]" description="narrower" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="width" valueExpression="value = FlexGlobals.topLevelApplication.width - 30" waitEvent="updateComplete" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test7_WindowedApplicationSkin" keywords="[WindowedApplication,showStatusBar]" description="false to true while minimized" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="showStatusBar" value="false" waitEvent="updateComplete" />
+        <RunCode code="FlexGlobals.topLevelApplication.minimize()" waitTarget="" waitEvent="displayStateChange" />
+        <SetProperty target="" propertyName="showStatusBar" value="true" waitEvent="updateComplete" />
+        <RunCode code="FlexGlobals.topLevelApplication.restore()" waitTarget="" waitEvent="displayStateChange" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="showStatusBar_test8_WindowedApplicationSkin" keywords="[WindowedApplication,showStatusBar]" description="true to false while minimized" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <RunCode code="FlexGlobals.topLevelApplication.minimize()" waitTarget="" waitEvent="displayStateChange" />
+        <SetProperty target="" propertyName="showStatusBar" value="false" waitEvent="updateComplete" />
+        <RunCode code="FlexGlobals.topLevelApplication.restore()" waitTarget="" waitEvent="displayStateChange" />
+        <CompareBitmap target="" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_skinParts_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_skinParts_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_skinParts_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_skinParts_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="apollo/spark/components/WindowedApplication/properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="wa_subclassed.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.*;
+
+        private function checkParts(parts:Object):String{
+            var part:Object;
+            var partCounter:int = 0;
+            var foundGripper:Boolean = false;
+            var foundStatusBar:Boolean = false;
+            var foundStatusText:Boolean = false;
+            var foundTitleBar:Boolean = false;
+            var foundContentGroup:Boolean = false;
+            var foundControlBarGroup:Boolean = false;
+            var newPart:String = "";
+            
+            for(part in parts){
+                ++partCounter;
+                
+                if(part.toString() == "gripper")
+                    foundGripper = true;
+                else if(part.toString() == "statusBar")
+                    foundStatusBar = true;
+                else if(part.toString() == "statusText")
+                    foundStatusText = true;
+                else if(part.toString() == "titleBar")
+                    foundTitleBar = true;
+                else if(part.toString() == "contentGroup")
+                    foundContentGroup = true;
+                else if(part.toString() == "controlBarGroup")
+                    foundControlBarGroup = true;
+                else
+                    newPart = ", unexpected part: " + part.toString();
+            }
+
+            if( foundGripper &&
+                foundStatusBar &&
+                foundStatusText &&
+                foundTitleBar &&
+                foundContentGroup &&
+                foundControlBarGroup &&
+                partCounter == 6){
+            
+                return "pass";
+            }else{
+                return ("foundGripper: " + foundGripper + ", foundStatusBar: " + foundStatusBar + ", foundStatusText: " + foundStatusText + ", foundTitleBar: " + foundTitleBar + ", foundContentGroup: " + foundContentGroup + ", partCounter: " + partCounter + newPart);
+            }
+        }
+
+	]]>
+	</mx:Script>
+
+	<testCases>
+
+<!--
+========================================================
+skinParts
+Get them.
+========================================================
+-->
+<TestCase testID="skinParts_test1" keywords="[WindowedApplication,skinParts]" description="Get the parts." >
+    <body>
+        <AssertMethodValue method="value = checkParts(FlexGlobals.topLevelApplication.getSkinParts())" value="pass" />
+    </body>
+</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_statusBar_systemchrome_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_statusBar_systemchrome_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_statusBar_systemchrome_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_statusBar_systemchrome_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,64 @@
+<?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.*;
+        import spark.components.*;
+        import spark.skins.spark.*;
+
+	]]>
+	</mx:Script>
+
+	<testCases>
+
+<!--
+========================================================
+Test the statusBar property
+========================================================
+-->
+<TestCase testID="statusBar_test1_systemChrome" keywords="[WindowedApplication,statusBar]" description="Just be sure we can access it." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.statusBar is IVisualElement" value="true" />
+    </body>
+</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_statusBar_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_statusBar_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_statusBar_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_statusBar_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<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.*;
+        import spark.components.*;
+        import spark.skins.spark.*;
+
+	]]>
+	</mx:Script>
+
+	<testCases>
+
+<!--
+========================================================
+Test the statusBar property
+========================================================
+-->
+<TestCase testID="statusBar_test1_SparkChromeWindowedApplicationSkin" keywords="[WindowedApplication,status]" description="Just be sure we can access it." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <AssertMethodValue method="value = FlexGlobals.topLevelApplication.statusBar is IVisualElement" value="true" />
+    </body>
+</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_status_systemchrome_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_status_systemchrome_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_status_systemchrome_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_status_systemchrome_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,98 @@
+<?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 status.
+========================================================
+-->
+<TestCase testID="status_test1_systemChrome" keywords="[WindowedApplication,status]" description="Set it." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="status" value="A slow, green, toad hopped under an active cat." waitEvent="updateComplete" />
+        <CompareBitmap target="skin.statusBar" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="status_test2_systemChrome" keywords="[WindowedApplication,status]" description="Set it and clear it." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="status" value="A slow, green, toad hopped under an active cat." waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="status" value="" waitEvent="updateComplete" />
+        <CompareBitmap target="skin.statusBar" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="status_test3_systemChrome" keywords="[WindowedApplication,status]" description="Set it and then decrease the width." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="status" value="A slow, green, toad hopped under an active cat.  A slow, green, toad hopped under an active cat." waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="width" value="140" waitEvent="updateComplete" />
+        <CompareBitmap target="skin.statusBar" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="status_test4_systemChrome" keywords="[WindowedApplication,status]" description="binding" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetProperty target="" propertyName="status" value="A slow, green, toad hopped under an active cat." waitEvent="updateComplete" />
+        <AssertPropertyValue target="bindingTarget" propertyName="theStatus" value="A slow, green, toad hopped under an active cat." />
+    </body>
+</TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_status_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_status_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_status_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_status_tests.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_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 status.
+========================================================
+-->
+<TestCase testID="status_test1_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,status]" description="Set it." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="status" value="A slow, green, toad hopped under an active cat." waitEvent="updateComplete" />
+        <CompareBitmap target="skin.statusBar" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="status_test1_SparkChromeWindowedApplicationSkin_win" keywords="[WindowedApplication,status]" description="Set it." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="status" value="A slow, green, toad hopped under an active cat." waitEvent="updateComplete" />
+        <CompareBitmap target="skin.statusBar" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="status_test2_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,status]" description="Set it and clear it." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="status" value="A slow, green, toad hopped under an active cat." waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="status" value="" waitEvent="updateComplete" />
+        <CompareBitmap target="skin.statusBar" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="status_test2_SparkChromeWindowedApplicationSkin_win" keywords="[WindowedApplication,status]" description="Set it and clear it." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="status" value="A slow, green, toad hopped under an active cat." waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="status" value="" waitEvent="updateComplete" />
+        <CompareBitmap target="skin.statusBar" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="status_test3_SparkChromeWindowedApplicationSkin_mac" keywords="[WindowedApplication,status]" description="Set it and then decrease the width." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="status" value="A slow, green, toad hopped under an active cat.  A slow, green, toad hopped under an active cat." waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="width" value="100" waitEvent="updateComplete" />
+        <CompareBitmap target="skin.statusBar" url="../properties/baselines/$testID.png" />
+    </body>
+</TestCase>
+
+
+<TestCase testID="status_test4_SparkChromeWindowedApplicationSkin" keywords="[WindowedApplication,status]" description="binding" >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="status" value="A slow, green, toad hopped under an active cat." waitEvent="updateComplete" />
+        <AssertPropertyValue target="bindingTarget" propertyName="theStatus" value="A slow, green, toad hopped under an active cat." />
+    </body>
+</TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_systemChrome_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_systemChrome_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_systemChrome_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_systemChrome_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,60 @@
+<?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.skins.spark.*;
+
+	]]>
+	</mx:Script>
+
+	<testCases>
+
+<!--
+========================================================
+Get the systemChrome property.  It's read-only...just a 
+simple test.
+========================================================
+-->
+<TestCase testID="systemChrome_test1" keywords="[WindowedApplication,systemChrome]" description="Get the systemChrome." >
+    <body>
+        <AssertPropertyValue target="" propertyName="systemChrome" value="standard" />
+    </body>
+</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_systemTrayIconMenu_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_systemTrayIconMenu_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_systemTrayIconMenu_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_systemTrayIconMenu_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,70 @@
+<?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.components.*;
+
+        /**
+        * Because we can't do it in XML.
+        **/
+        public function checkXMLString1(val:String):Boolean{
+            trace(val);
+            return (val.indexOf('<menuitem label="1">') > -1);
+        }
+    
+	]]>
+	</mx:Script>
+
+	<testCases>
+
+<!--
+========================================================
+systemTrayIconMenu
+We can't actually look at it.  But test set/get.
+========================================================
+-->
+<TestCase testID="systemTrayIconMenu_test1" keywords="[WindowedApplication,systemTrayIconMenu]" description="Set/get." >
+    <body>
+        <RunCode code="FlexGlobals.topLevelApplication.setUpMenu()" />
+        <SetProperty target="" propertyName="systemTrayIconMenu" valueExpression="value = FlexGlobals.topLevelApplication.mnu1" />
+        <AssertMethodValue method="value = checkXMLString1(FlexGlobals.topLevelApplication.systemTrayIconMenu.dataProvider.children().toString())" value="true" />
+    </body>
+</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_titleBar_tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_titleBar_tests.mxml?rev=1370009&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_titleBar_tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/apollo/spark/components/WindowedApplication/properties/wa_properties_titleBar_tests.mxml Mon Aug  6 20:51:08 2012
@@ -0,0 +1,79 @@
+<?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 mx.core.FlexGlobals;
+        import spark.components.*;
+        import spark.components.windowClasses.*;
+        import spark.skins.spark.*;
+
+	]]>
+	</mx:Script>
+
+	<testCases>
+
+<!--
+========================================================
+Test the titleBar skin part.  There's not much to test; 
+various parts of the titleBar are tested elsewhere.
+========================================================
+-->
+<TestCase testID="titleBar_test1_mac" keywords="[WindowedApplication,title]" description="Do a bitmap compare of it with some text." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="title" value="I II III IIII IIIII" waitEvent="updateComplete" />
+        <CompareBitmap target="skin.titleBar" url="../Properties/Baselines/$testID.png" />
+    </body>
+</TestCase>
+
+<TestCase testID="titleBar_test1_win" keywords="[WindowedApplication,title]" description="Do a bitmap compare of it with some text." >
+    <setup>
+        <RunCode code="FlexGlobals.topLevelApplication.doReset()" waitTarget="" waitEvent="resetComplete" />
+    </setup>
+    <body>
+        <SetStyle target="" styleName="skinClass" valueExpression="value = SparkChromeWindowedApplicationSkin " waitEvent="updateComplete" />
+        <SetProperty target="" propertyName="title" value="I II III IIII IIIII" waitEvent="updateComplete" />
+        <CompareBitmap target="skin.titleBar" url="../Properties/Baselines/$testID.png" />
+    </body>
+</TestCase>
+
+	</testCases>
+</UnitTester>



Mime
View raw message