incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1369933 [7/11] - in /incubator/flex/trunk/mustella/tests/Application: ./ Application_HaloSkin/ Application_HaloSkin/Events/ Application_HaloSkin/Methods/ Application_HaloSkin/Properties/ Application_HaloSkin/SWFs/ Application_HaloSkin/SWFs...
Date Mon, 06 Aug 2012 19:22:31 GMT
Propchange: incubator/flex/trunk/mustella/tests/Application/Application_HaloSkin/Styles/Baselines/style_paddingTop_test1_halo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Application/Application_HaloSkin/Styles/Baselines/style_paddingTop_test2_halo.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_HaloSkin/Styles/Baselines/style_paddingTop_test2_halo.png?rev=1369933&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Application/Application_HaloSkin/Styles/Baselines/style_paddingTop_test2_halo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Application/Application_HaloSkin/Styles/Baselines/style_paddingTop_test3_halo.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_HaloSkin/Styles/Baselines/style_paddingTop_test3_halo.png?rev=1369933&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Application/Application_HaloSkin/Styles/Baselines/style_paddingTop_test3_halo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Application/Application_HaloSkin/Styles/Baselines/style_paddingTop_test4_halo.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_HaloSkin/Styles/Baselines/style_paddingTop_test4_halo.png?rev=1369933&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Application/Application_HaloSkin/Styles/Baselines/style_paddingTop_test4_halo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Application/Application_HaloSkin/Styles/Baselines/style_paddingTop_test5_halo.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_HaloSkin/Styles/Baselines/style_paddingTop_test5_halo.png?rev=1369933&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Application/Application_HaloSkin/Styles/Baselines/style_paddingTop_test5_halo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Application/Application_HaloSkin/Styles/Baselines/style_paddingTop_test6_halo.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_HaloSkin/Styles/Baselines/style_paddingTop_test6_halo.png?rev=1369933&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Application/Application_HaloSkin/Styles/Baselines/style_paddingTop_test6_halo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Events/Application_Events.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Events/Application_Events.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Events/Application_Events.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Events/Application_Events.mxml Mon Aug  6 19:22:23 2012
@@ -0,0 +1,62 @@
+<?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="Application/Application_SparkSkin/Events/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="ApplicationApp4.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.Application;
+    ]]>
+    </mx:Script>
+
+
+	<testCases>
+
+
+        <TestCase testID="event_applicationComplete" keywords="[application, applicationComplete]" description="Test applicationComplete.  See ApplicationApp4.mxml to see what gets checked.">
+            <body>
+                <AssertMethodValue method="value=Application.application.verifyAppCompleteEvent()" value="true" />
+            </body>
+        </TestCase>
+
+        <TestCase testID="event_error" keywords="[application, error]" description="Test applicationComplete.  See ApplicationApp4.mxml to see what gets checked.">
+            <body>
+                <RunCode code="Application.application.theService.send()" />
+                <AssertMethodValue method="value=Application.application.eventArray.indexOf('error') > -1" value="true" />
+            </body>
+        </TestCase>
+	
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Methods/Application_Methods_AddToCreationQueue.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Methods/Application_Methods_AddToCreationQueue.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Methods/Application_Methods_AddToCreationQueue.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Methods/Application_Methods_AddToCreationQueue.mxml Mon Aug  6 19:22:23 2012
@@ -0,0 +1,74 @@
+<?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="Application/Application_SparkSkin/Methods/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="ApplicationApp5.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.Application;
+        
+    ]]>
+    </mx:Script>
+
+	<testCases>
+
+
+<!--
+================================================================================
+addToCreationQueue
+================================================================================
+-->	
+
+    <TestCase testID="method_addToCreationQueue_test1" keywords="[application, addToCreationQueue]" description="Test the first parameter. Add some containers to the queue, and be sure they really get added in that order.">
+        <setup>
+            <RunCode code="Application.application.creationQueueArray = new Array()" />
+        </setup>
+        <body>
+            <RunCode code="Application.application.populateCreationQueue1()" waitTarget="bx2" waitEvent="updateComplete" />
+            <AssertMethodValue method="value=Application.application.verifyCreation('bx3','bx1','bx2')" value="true" />
+        </body>
+    </TestCase>
+
+    <TestCase testID="method_addToCreationQueue_test2" keywords="[application, addToCreationQueue]" description="Test the second parameter. Add some containers to the queue, and be sure they really get added in that order.">
+        <setup>
+            <RunCode code="Application.application.creationQueueArray = new Array()" />
+        </setup>
+        <body>
+            <RunCode code="Application.application.populateCreationQueue2()" waitTarget="bx5" waitEvent="updateComplete" />
+            <AssertMethodValue method="value=Application.application.verifyCreation('bx4','bx6','bx5')" value="true" />
+        </body>
+    </TestCase>
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Methods/Application_methods.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Methods/Application_methods.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Methods/Application_methods.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Methods/Application_methods.mxml Mon Aug  6 19:22:23 2012
@@ -0,0 +1,140 @@
+<?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="Application/Application_SparkSkin/Methods/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="FixedApplication2.mxml">
+       <mx:Script>
+		<![CDATA[
+
+
+			import mx.controls.Button;
+			import mx.containers.*;
+
+			public static function init(o:DisplayObject):void
+			{
+				}
+
+			public function addChildToApplication(buttonLabel:String):void
+			{
+				var bt:Button= new Button();
+				bt.label=buttonLabel;
+				application.addChild(bt);
+			}
+
+			public function addChildAtToApplication(buttonLabel:String, i:int):void
+			{
+				var bt:Button= new Button();
+				bt.label=buttonLabel;
+				application.addChildAt(bt,i);
+			}
+
+			public function addContainer():void
+			{
+
+				var myP:Panel  = new Panel();
+				myP.width=100;
+				myP.height=100;
+				application.addChild(myP);
+			}
+
+			public function removeAllChildrenOfApplication():void
+			{
+				application.removeAllChildren();
+			}
+
+			public function resetApplication(): void
+			{
+				application.removeAllChildren();
+				var btn:Button = new Button();
+				btn.id = "btn";
+				application.addChild(btn);
+			}
+
+
+		]]>
+       </mx:Script>
+
+       <mx:Metadata>
+           <![CDATA[
+               [Mixin]
+           ]]>
+       </mx:Metadata>
+
+	<testCases>
+		<TestCase testID="application_method_addChild" keywords="[Application, removeChildAt]" description="To verify the method Application removeChildAt">
+			<setup>
+			    <RunCode code="resetApplication()" waitEvent="updateComplete" waitTarget=""  />
+				<RunCode code="addChildToApplication('blah')"  waitTarget="" waitEvent="updateComplete" />
+				<RunCode code="addContainer()"  waitTarget="" waitEvent="updateComplete" />
+				<RunCode code="addChildToApplication('blue')" waitTarget="" waitEvent="updateComplete" />
+				<RunCode code="addContainer()" waitTarget="" waitEvent="updateComplete" />
+				<RunCode code="addChildToApplication('tahiti')" waitTarget="" waitEvent="updateComplete" />
+				<RunCode code="addContainer()" waitTarget="" waitEvent="added" />
+				<RunCode code="addChildToApplication('jordan')" waitTarget="" waitEvent="added" />
+				<RunCode code="addContainer()" waitTarget="" waitEvent="added" />
+			</setup>
+			<body>
+				<AssertPropertyValue target ="" propertyName="numChildren" value="9" />
+			</body>
+		</TestCase>
+		<TestCase testID="application_method_addChildAt_1" keywords="[Application, addChild]" description="To verify the method Application addChildAt">
+			<setup>
+			    <RunCode code="resetApplication()" waitEvent="updateComplete" waitTarget=""  />
+				<RunCode code="addChildToApplication('BlahButton')" waitTarget="" waitEvent="added" />
+				<RunCode code="addChildAtToApplication('MyButton', 1)" waitTarget="" waitEvent="added" />
+			</setup>
+			<body>
+				<AssertPropertyValue target="" propertyName="numChildren" value="3" />
+				<AssertPropertyValue target="getChildAt(1)" propertyName="label" value="MyButton" />
+			</body>
+		</TestCase>
+		<TestCase testID="application_method_addChildAt_01" keywords="[Application, addChildAt]" description="To verify the method Application addChildAt">
+			<setup>
+			    <RunCode code="resetApplication()" waitEvent="updateComplete" waitTarget=""  />
+				<RunCode code="addChildAtToApplication('MyButton', 0)" waitTarget="" waitEvent="added" />
+				<RunCode code="addChildAtToApplication('PinkBear', 1)" waitTarget="" waitEvent="added" />
+			</setup>
+			<body>
+                <AssertPropertyValue target="getChildAt(1)" propertyName="label" value="PinkBear" />
+				<AssertPropertyValue target="" propertyName="numChildren" value="3" />
+			</body>
+		</TestCase>
+		<TestCase testID="application_method_removeChildAt" keywords="[Application, removeChildAt]" description="To verify the method Application removeChildAt">
+			<setup>
+			    <RunCode code="resetApplication()" waitEvent="updateComplete" waitTarget=""  />
+				<RunCode code="addChildAtToApplication('MyButton', 0)" waitTarget="" waitEvent="added" />
+				<RunCode code="addChildAtToApplication('PinkBear', 1)" waitTarget="" waitEvent="added" />
+				<RunCode code="application.removeChildAt(2)" waitTarget="" waitEvent="removed" />
+			</setup>
+			<body>
+				<AssertPropertyValue target="" propertyName="numChildren" value="2" />
+			</body>
+		</TestCase>
+		<TestCase testID="application_method_removeAll" keywords="[Application, removeAll]" description="To verify the method Application removeAll">
+			<setup>
+			    <RunCode code="resetApplication()" waitEvent="updateComplete" waitTarget=""  />
+				<RunCode code="addChildAtToApplication('MyButton', 0)" waitTarget="" waitEvent="added" />
+				<RunCode code="addChildAtToApplication('PinkBear', 1)" waitTarget="" waitEvent="updateComplete" />
+				<RunCode code="removeAllChildrenOfApplication()" waitTarget="" waitEvent="updateComplete" />
+			</setup>
+			<body>
+				<AssertPropertyValue target="" propertyName="numChildren" value="0" />
+			</body>
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/Application_Binding_ExplicitConstraints_Tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/Application_Binding_ExplicitConstraints_Tests.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/Application_Binding_ExplicitConstraints_Tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/Application_Binding_ExplicitConstraints_Tests.mxml Mon Aug  6 19:22:23 2012
@@ -0,0 +1,74 @@
+<?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="Application/Application_SparkSkin/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Application_Binding_ExplicitConstraints.mxml">
+
+    <mx:Script>
+	<![CDATA[
+
+       public static function init(o:DisplayObject):void
+		{
+
+		}
+
+
+	]]>
+	</mx:Script>
+
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+
+	<testCases>
+	  <TestCase testID="ConstraintColumn_Binding_width_mxml" description="Test that you can bind to the ConstraintColumn width property" keywords="[Binding, width, ConstraintColumn]">
+		<body>
+		    <AssertPropertyValue value="100" propertyName="width" target="col3" />
+		    <AssertPropertyValue value="200" propertyName="width" target="col4" />
+	    </body>
+	  </TestCase>
+	  <TestCase testID="ConstraintColumn_Binding_width_runtime" description="Test that you can bind to the ConstraintColumn width property and change
+	      it at runtime" keywords="[Binding, width, ConstraintColumn]">
+		<body>
+		    <SetProperty propertyName="width" value="140" target="col1"  />
+		    <SetProperty propertyName="width" value="240" target="col2"  />
+		    <AssertPropertyValue value="140" propertyName="width" target="col3" />
+		    <AssertPropertyValue value="240" propertyName="width" target="col4" />
+	    </body>
+	  </TestCase>
+	  <TestCase testID="ConstraintRow_Binding_height_mxml" description="Test that you can bind to the ConstraintRow height property" keywords="[Binding, height, ConstraintRow]">
+		<body>
+		    <AssertPropertyValue value="200" propertyName="height" target="row3" />
+		    <AssertPropertyValue value="150" propertyName="height" target="row4" />
+	    </body>
+	  </TestCase>
+	  <TestCase testID="ConstraintRow_Binding_height_runtime" description="Test that you can bind to the ConstraintRow height property and change
+	      it at runtime" keywords="[Binding, height, ConstraintRow]">
+		<body>
+		    <SetProperty propertyName="height" value="140" target="row1" />
+		    <SetProperty propertyName="height" value="240" target="row2" />
+		    <AssertPropertyValue value="140" propertyName="height" target="row3" />
+		    <AssertPropertyValue value="240" propertyName="height" target="row4" />
+	    </body>
+	  </TestCase>
+</testCases>
+
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/Application_Binding_PercentConstraints_Tests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/Application_Binding_PercentConstraints_Tests.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/Application_Binding_PercentConstraints_Tests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/Application_Binding_PercentConstraints_Tests.mxml Mon Aug  6 19:22:23 2012
@@ -0,0 +1,108 @@
+<?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="Application/Application_SparkSkin/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Application_Binding_PercentConstraints.mxml">
+
+    <mx:Script>
+    <![CDATA[
+
+       public static function init(o:DisplayObject):void
+        {
+
+        }
+
+
+    ]]>
+    </mx:Script>
+
+    <mx:Metadata>
+    <![CDATA[
+        [Mixin]
+    ]]>
+    </mx:Metadata>
+
+    <testCases>
+<!-- Adding Pause because this test seems to timeout for no reason on flexqa01-->
+      <TestCase testID="ConstraintColumn_Binding_minWidth_mxml" description="Test that you can bind to the ConstraintColumn minWidth property" keywords="[Binding, minWidth, ConstraintColumn]">
+        <setup>
+            <Pause timeout="500" />
+        </setup>
+        <body>
+            <AssertPropertyValue value="120" propertyName="minWidth" target="col7" />
+            <AssertPropertyValue value="200" propertyName="minWidth" target="col8" />
+        </body>
+      </TestCase>
+      <TestCase testID="ConstraintColumn_Binding_minWidth_runtime" description="Test that you can bind to the ConstraintColumn minWidth property and change
+         it at runtime." keywords="[Binding, minWidth, ConstraintColumn]">
+        <body>
+            <SetProperty propertyName="minWidth" value="200" target="col5"   />
+            <SetProperty propertyName="minWidth" value="160" target="col6" />
+            <AssertPropertyValue value="200" propertyName="minWidth" target="col7" />
+            <AssertPropertyValue value="160" propertyName="minWidth" target="col8" />
+        </body>
+      </TestCase>
+      <TestCase testID="ConstraintColumn_Binding_maxWidth_mxml" description="Test that you can bind to the ConstraintColumn maxWidth property" keywords="[Binding, maxWidth, ConstraintColumn]">
+        <body>
+            <AssertPropertyValue value="400" propertyName="maxWidth" target="col7" />
+            <AssertPropertyValue value="300" propertyName="maxWidth" target="col8" />
+        </body>
+      </TestCase>
+      <TestCase testID="ConstraintColumn_Binding_maxWidth_runtime" description="Test that you can bind to the ConstraintColumn maxWidth property and change
+         it at runtime." keywords="[Binding, maxWidth, ConstraintColumn]">
+        <body>
+            <SetProperty propertyName="maxWidth" value="400" target="col5" />
+            <SetProperty propertyName="maxWidth" value="360" target="col6" />
+            <AssertPropertyValue value="400" propertyName="maxWidth" target="col7" />
+            <AssertPropertyValue value="360" propertyName="maxWidth" target="col8" />
+        </body>
+      </TestCase>
+      <TestCase testID="ConstraintRow_Binding_minHeight_mxml" description="Test that you can bind to the ConstraintRow minHeight property" keywords="[Binding, minHeight, ConstraintRow]">
+        <body>
+            <AssertPropertyValue value="220" propertyName="minHeight" target="row7" />
+            <AssertPropertyValue value="120" propertyName="minHeight" target="row8" />
+        </body>
+      </TestCase>
+      <TestCase testID="ConstraintRow_Binding_minHeight_runtime" description="Test that you can bind to the ConstraintRow minHeight property and change
+         it at runtime." keywords="[Binding, minHeight, ConstraintRow]">
+        <body>
+            <SetProperty propertyName="minHeight" value="200" target="row5"   />
+            <SetProperty propertyName="minHeight" value="160" target="row6"   />
+            <AssertPropertyValue value="200" propertyName="minHeight" target="row7" />
+            <AssertPropertyValue value="160" propertyName="minHeight" target="row8" />
+        </body>
+      </TestCase>
+      <TestCase testID="ConstraintRow_Binding_maxHeight_mxml" description="Test that you can bind to the ConstraintRow maxHeight property" keywords="[Binding, maxHeight, ConstraintRow]">
+        <body>
+            <AssertPropertyValue value="400" propertyName="maxHeight" target="row7" />
+            <AssertPropertyValue value="300" propertyName="maxHeight" target="row8" />
+        </body>
+      </TestCase>
+      <TestCase testID="ConstraintRow_Binding_maxHeight_runtime" description="Test that you can bind to the ConstraintRow maxHeight property and change
+         it at runtime." keywords="[Binding, maxHeight, ConstraintRow]">
+        <body>
+            <SetProperty propertyName="maxHeight" value="400" target="row5" />
+            <SetProperty propertyName="maxHeight" value="360" target="row6" />
+            <AssertPropertyValue value="400" propertyName="maxHeight" target="row7" />
+            <AssertPropertyValue value="360" propertyName="maxHeight" target="row8" />
+        </body>
+      </TestCase>
+</testCases>
+
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/Application_PreloaderTester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/Application_PreloaderTester.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/Application_PreloaderTester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/Application_PreloaderTester.mxml Mon Aug  6 19:22:23 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="Application/Application_SparkSkin/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Application_Preloader.mxml">
+
+
+
+	<mx:Script>
+
+	<![CDATA[
+
+
+
+	public static function init(o:DisplayObject):void
+
+	{
+
+
+
+	}
+
+
+
+
+
+	]]>
+
+	</mx:Script>
+
+
+
+	<mx:Metadata>
+
+	<![CDATA[
+
+	[Mixin]
+
+	]]>
+
+	</mx:Metadata>
+
+
+
+	<testCases>
+
+		<TestCase testID="Application_Preloader" description="Tests that the preloader set to false does not RTE" keywords="[Application,preloader]">
+
+			<body>
+
+				<SetProperty target="lbl" propertyName="text" value="Preloader test passed if this does not RTE" waitEvent="updateComplete" waitTarget="lbl"/>
+
+			</body>
+
+		</TestCase>
+
+	</testCases>
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/Application_Properties.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/Application_Properties.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/Application_Properties.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/Application_Properties.mxml Mon Aug  6 19:22:23 2012
@@ -0,0 +1,145 @@
+<?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="Application/Application_SparkSkin/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="ApplicationApp1.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.*;
+        import flash.display.Stage;
+
+        public function measureScriptTimeLimit():int{
+            var theSeconds:int = -1;
+            var secondsPassed:int = -1;
+            var theDate:Date;
+            
+            try{
+
+                while(true){
+                    theDate = new Date();
+                    
+                    if(theDate.seconds != theSeconds){
+                        ++secondsPassed;
+                        theSeconds = theDate.seconds;
+                        trace(secondsPassed);
+                    }
+                        
+                    // Be sure we don't run forever, in case scriptTimeLimit is broken.
+                    if(secondsPassed > 10)
+                        break;
+                }
+            }catch(e:Error){
+                // We should normally get an exception.
+            }
+
+            return secondsPassed;
+        }
+
+    ]]>
+    </mx:Script>
+
+	<testCases>
+
+    <TestCase testID="property_application_test1" keywords="[application]"
+        description="Make sure we can get the application property (read-only).">
+        <body>
+            <AssertMethodValue method="value = (application.toString().indexOf('ApplicationApp1') != -1)"  value="true" />
+        </body>
+    </TestCase>
+
+    
+    <TestCase testID="property_controlBar_test1" keywords="[application, controlBar]"
+        description="Make sure we can get the applicationControlBar when there is an undocked one.">
+        <setup>
+            <ResetComponent target="acb1" className="mx.containers.ApplicationControlBar" waitEvent="updateComplete" />
+        </setup>
+
+        <body>
+            <AssertMethodValue method="value=application.controlBar" value="acb1" />
+        </body>
+    </TestCase>
+
+
+    <TestCase testID="property_controlBar_test2" keywords="[application, controlBar]"
+        description="Check controlBar when there is an undocked ApplicationControlBar.">
+        <setup>
+            <ResetComponent target="acb1" className="mx.containers.ApplicationControlBar" waitEvent="updateComplete" />
+            <SetProperty target="acb1" propertyName="dock" value="true" waitEvent="updateComplete" />
+        </setup>
+
+        <body>
+            <AssertMethodValue method="value=application.controlBar.id" value="acb1" />
+        </body>
+    </TestCase>
+
+
+    <TestCase testID="property_frameRate_test1" keywords="[application, frameRate]"
+        description="Be sure the stage gets the frameRate which was specified for the application.">
+        <body>
+            <AssertPropertyValue target="stage" propertyName="frameRate" value="136" />
+        </body>
+    </TestCase>
+
+
+    <TestCase testID="property_frameRate_test2" keywords="[application, frameRate]"
+        description="Be sure the application returns the frameRate specified.">
+        <body>
+            <AssertMethodValue method="value=FlexGlobals.topLevelApplication.frameRate" value="136" />
+        </body>
+    </TestCase>
+
+    <TestCase testID="property_scriptTimeLimit_test1" keywords="[application, scriptTimeLimit]"	
+        description="Be sure the application returns the scriptTimeLimit.">
+        <body>
+            <AssertMethodValue method="value=FlexGlobals.topLevelApplication.scriptTimeLimit" value="5" />
+        </body>
+    </TestCase>
+
+    <TestCase testID="property_usePreloader_false" keywords="[application, usePreloader]"	
+        description="Be sure usePreloader is false when set to false.">
+            <body>
+                <AssertMethodValue method="value=FlexGlobals.topLevelApplication.usePreloader" value="false" />
+            </body>
+    </TestCase>
+
+
+    <TestCase testID="property_viewSourceURL" keywords="[application, viewSourceURL]"
+        description="Be sure we can get the viewSourceURL when it has been set.">
+            <body>
+                <AssertMethodValue method="value=FlexGlobals.topLevelApplication.viewSourceURL" value="http://www.adobe.com" />
+            </body>
+    </TestCase>
+
+
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/Application_Properties_Default.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/Application_Properties_Default.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/Application_Properties_Default.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/Application_Properties_Default.mxml Mon Aug  6 19:22:23 2012
@@ -0,0 +1,91 @@
+<?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="Application/Application_SparkSkin/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="ApplicationApp2.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.Application;
+        import flash.display.Stage;
+
+        public function measureScriptTimeLimit():int{
+            var theSeconds:int = -1;
+            var secondsPassed:int = -1;
+            var theDate:Date;
+            
+            try{
+
+                while(true){
+                    theDate = new Date();
+                    
+                    if(theDate.seconds != theSeconds){
+                        ++secondsPassed;
+                        theSeconds = theDate.seconds;
+                        
+                        if(secondsPassed % 20 == 0)
+                            trace(secondsPassed);
+                    }
+                        
+                    // Be sure we don't run forever, in case scriptTimeLimit is broken.
+                    if(secondsPassed > 70)
+                        break;
+                }
+            }catch(e:Error){
+                // We should normally get an exception.
+            }
+
+            return secondsPassed;
+        }
+    ]]>
+    </mx:Script>
+
+	<testCases>
+
+    <TestCase testID="property_usePreloader_default" keywords="[application]"	
+        description="Be sure the default for usePreloader is correct.">
+            <body>
+                <AssertMethodValue method="value=Application.application.usePreloader" value="true" />
+            </body>
+    </TestCase>
+
+
+    <TestCase testID="property_viewSourceURL_default" keywords="[application]"	
+        description="Be sure the default for viewSourceURL is correct.">
+            <body>
+                <AssertMethodValue method="value=Application.application.viewSourceURL" value="null" />
+            </body>
+    </TestCase>
+
+        	
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/ContentSizedConstraints_Application.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/ContentSizedConstraints_Application.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/ContentSizedConstraints_Application.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/ContentSizedConstraints_Application.mxml Mon Aug  6 19:22:23 2012
@@ -0,0 +1,146 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="Application/Application_SparkSkin/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Application_ContentSizedConstraints.mxml">
+       <mx:Script>
+		<![CDATA[
+
+        import comps.TextAreaComp2;
+        import comps.NumericStepperComp2;
+        import comps.ComboBoxComp;
+        import comps.DateChooserComp2;
+        import comps.ButtonComp2;
+		import mx.containers.utilityClasses.ConstraintColumn;
+		import mx.containers.utilityClasses.ConstraintRow;
+		import mx.controls.Button;
+
+		public static function init(o:DisplayObject):void
+		{
+        }
+
+        public var newColumns:Array = [];
+        public var newConstraintColumn:ConstraintColumn;
+        public var newConstraintRow:ConstraintRow;
+        public var newConstraintColumn2:ConstraintColumn;
+        public var newConstraintRow2:ConstraintRow;
+        public var newRows:Array = [];
+        public var newButton:Button;
+
+		]]>
+       </mx:Script>
+       <mx:Metadata>
+           <![CDATA[
+               [Mixin]
+           ]]>
+       </mx:Metadata>
+
+	<testCases>
+
+	<!-- Tests for ConstraintColumns with width as content-sizeds -->
+	<TestCase testID="constraintColumnsRows_contentSized_mxml_allConstraints" keywords="[constraintColumns, constraintRows, MXML]"
+	    description="Verify the constraintColumns and constraintRows work correctly when their width/height is a content-sized set in mxml">
+		<body>
+			<AssertPropertyValue target="textarea1" propertyName="width" value="200" />
+			<AssertPropertyValue target="textarea1" propertyName="x" value="155" />
+			<AssertPropertyValue target="textarea1" propertyName="height" value="50" />
+			<AssertPropertyValue target="textarea1" propertyName="y" value="20" />
+			<AssertPropertyValue target="constraintRows.0" propertyName="height" value="90" />
+			<AssertPropertyValue target="constraintColumns.1" propertyName="width" value="240" />
+		</body>
+	</TestCase>
+    <TestCase testID="constraintColumn_contentSized_mxml" keywords="[constraintColumns, MXML]"
+	    description="Verify the constraintColumns work correctly when their width is a content-sized set in mxml">
+		<body>
+			<AssertPropertyValue target="constraintColumns.0" propertyName="width" value="135" />
+			<AssertPropertyValue target="combo1" propertyName="width" value="100" />
+			<AssertPropertyValue target="combo1" propertyName="x" value="25" />
+			<AssertPropertyValue target="combo1" propertyName="y" value="0" />
+		</body>
+	</TestCase>
+    <TestCase testID="constraintRow_contentSized_mxml" keywords="[constraintRows, MXML]"
+	    description="Verify the constraintRows work correctly when their height is a content-sized set in mxml">
+		<body>
+			<AssertPropertyValue target="numeric1" propertyName="height" value="35" />
+			<AssertPropertyValue target="numeric1" propertyName="x" value="0" />
+			<AssertPropertyValue target="numeric1" propertyName="y" value="70" />
+		</body>
+	</TestCase>
+    <TestCase testID="constraintRow_contentSized_mxml_noHeightOnComponent" keywords="[constraintRows, MXML]"
+	    description="Verify the constraintRows has the right height when its children have no explicit height set in mxml">
+		<body>
+			<AssertPropertyValue target="constraintRows.2" propertyName="height" valueExpression="value=application.datechooser1.height + 20" />
+			<AssertPropertyValue target="datechooser1" propertyName="height" value="194" />
+			<AssertPropertyValue target="datechooser1" propertyName="x" value="0" />
+			<AssertPropertyValue target="datechooser1" propertyName="y" valueExpression="value=application.constraintRows[0].height + application.constraintRows[1].height + 10" />
+		</body>
+	</TestCase>
+
+    <TestCase testID="constraintRow_contentSized_mxml_noHeightOnComponent_mac" keywords="[constraintRows, MXML]"
+	    description="Verify the constraintRows has the right height when its children have no explicit height set in mxml">
+		<body>
+			<AssertPropertyValue target="constraintRows.2" propertyName="height" valueExpression="value=application.datechooser1.height + 20" />
+			<AssertPropertyValue target="datechooser1" propertyName="height" value="194" />
+			<AssertPropertyValue target="datechooser1" propertyName="x" value="0" />
+			<AssertPropertyValue target="datechooser1" propertyName="y" valueExpression="value=application.constraintRows[0].height + application.constraintRows[1].height + 10" />
+		</body>
+	</TestCase>
+    <TestCase testID="constraintColumn_contentSized_mxml_noWidthOnComponent" keywords="[constraintRows, MXML]"
+	    description="Verify the constraintRows has the right width when its children have no explicit width set in mxml">
+		<body>
+			<AssertPropertyValue target="constraintColumns.2" propertyName="width" valueExpression="value=application.getChildAt(4).width + 20" />
+			<AssertPropertyValue target="getChildAt(4)" propertyName="width" value="83" />
+			<AssertPropertyValue target="getChildAt(4)" propertyName="y" value="0" />
+			<AssertPropertyValue target="getChildAt(4)" propertyName="x" valueExpression="value=application.constraintColumns[0].width + application.constraintColumns[1].width + 10" />
+		</body>
+	</TestCase>
+
+    <TestCase testID="constraintColumn_contentSized_mxml_noWidthOnComponent" keywords="[constraintRows, MXML]"
+	    description="Verify the constraintRows has the right width when its children have no explicit width set in mxml">
+		<body>
+			<AssertPropertyValue target="constraintColumns.2" propertyName="width" valueExpression="value=application.getChildAt(4).width + 20" />
+			<AssertPropertyValue target="getChildAt(4)" propertyName="width" value="83" />
+			<AssertPropertyValue target="getChildAt(4)" propertyName="y" value="0" />
+			<AssertPropertyValue target="getChildAt(4)" propertyName="x" valueExpression="value=application.constraintColumns[0].width + application.constraintColumns[1].width + 10" />
+		</body>
+	</TestCase>
+
+    <TestCase testID="constraintColumn_contentSized_mxml_noWidthOnComponent_mac" keywords="[constraintRows, MXML]"
+	    description="Verify the constraintRows has the right width when its children have no explicit width set in mxml">
+		<body>
+			<AssertPropertyValue target="constraintColumns.2" propertyName="width" valueExpression="value=application.getChildAt(4).width + 20" />
+			<AssertPropertyValue target="getChildAt(4)" propertyName="width" value="83" />
+			<AssertPropertyValue target="getChildAt(4)" propertyName="y" value="0" />
+			<AssertPropertyValue target="getChildAt(4)" propertyName="x" valueExpression="value=application.constraintColumns[0].width + application.constraintColumns[1].width + 10" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="constraintColumns_contentsized_mxml_resizeComponent" keywords="[content-sized sized, Canvas, constraintColumn]"
+	    description="ConstraintColumns with content-sized width and then resize a component changing the column size">
+		<setup>
+		    <ResetComponent target="textarea1" className="comps.TextAreaComp2" waitTarget="textarea1" waitEvent="updateComplete" />
+		</setup>
+		<body>
+		    <SetProperty target="textarea1" propertyName="minWidth" value="200" waitEvent="updateComplete" waitTarget="textarea1"/>
+			<AssertPropertyValue target="textarea1" propertyName="width" value="200" />
+			<AssertPropertyValue target="constraintColumns.1" propertyName="width" value="240" />
+		</body>
+	</TestCase>
+
+	</testCases>
+</UnitTester>



Mime
View raw message