flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1369975 [1/5] - in /incubator/flex/trunk/mustella/tests/Modules: ./ Constraints/ Constraints/Properties/ Constraints/SWFs/ Constraints/SWFs/comps/ Fonts/ Fonts/SWFs/ Fonts/SWFs/assets/ Fonts/tests/ Fonts/tests/baselines/ RSLs/ RSLs/Integra...
Date Mon, 06 Aug 2012 20:21:29 GMT
Author: pent
Date: Mon Aug  6 20:21:26 2012
New Revision: 1369975

URL: http://svn.apache.org/viewvc?rev=1369975&view=rev
Log:
Mustella submission

Added:
    incubator/flex/trunk/mustella/tests/Modules/
    incubator/flex/trunk/mustella/tests/Modules/Constraints/
    incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/
    incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/ContentSizedConstraints_Module.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/FixedModuleConstraints.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/Module_ConstraintBindingTests.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/PercentConstraints_Module.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/PercentConstraints_PercentModule.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/PercentageModuleConstraints.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/PreferredModuleConstraints.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/ConstraintBasedLayout_Module.compile
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/ConstraintBasedLayout_Module.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/ConstraintBasedLayout_PercentModule.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/FixedModule.compile
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/FixedModule.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/Module_ConstraintBinding.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/PercentageModule.compile
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/PercentageModule.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/PreferredModule.compile
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/PreferredModule.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/ButtonModuleComp.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/ContentRowColumnModuleComp.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/ContentRowColumnPercentModuleComp.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/EmptyModuleComp.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/FixedModuleComp.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/PercentageModuleComp.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/PercentageRowColumnModuleComp.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/PercentageRowColumnPercentModuleComp.mxml
    incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/PreferredModuleComp.mxml
    incubator/flex/trunk/mustella/tests/Modules/Fonts/
    incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/
    incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFAppUsingFontFromModule.compile
    incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFAppUsingFontFromModule.log.1
    incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFAppUsingFontFromModule.mxml
    incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFFontsApp.compile
    incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFFontsApp.log.1
    incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFFontsApp.mxml
    incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/assets/
    incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/assets/TLFEmbedTestFontModule.mxml
    incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/assets/TLFEmbedTestModule.mxml
    incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/pre_compile.sh   (with props)
    incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/
    incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/baselines/
    incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/baselines/fontsEmbedInModule_after.png   (with props)
    incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/baselines/fontsEmbedInModule_before.png   (with props)
    incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/baselines/useFontFromModule_after.png   (with props)
    incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/baselines/useFontFromModule_before.png   (with props)
    incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/switchFonts.mxml
    incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/useFonts.mxml
    incubator/flex/trunk/mustella/tests/Modules/RSLs/
    incubator/flex/trunk/mustella/tests/Modules/RSLs/Integration/
    incubator/flex/trunk/mustella/tests/Modules/RSLs/Integration/baselines/
    incubator/flex/trunk/mustella/tests/Modules/RSLs/Integration/baselines/modulesRSLs_anotherDataGrid.png   (with props)
    incubator/flex/trunk/mustella/tests/Modules/RSLs/Integration/baselines/modulesRSLs_comboModule.png   (with props)
    incubator/flex/trunk/mustella/tests/Modules/RSLs/Integration/baselines/modulesRSLs_dataGrid.png   (with props)
    incubator/flex/trunk/mustella/tests/Modules/RSLs/Integration/checkModules.mxml
    incubator/flex/trunk/mustella/tests/Modules/RSLs/SWFs/
    incubator/flex/trunk/mustella/tests/Modules/RSLs/SWFs/MainApp.compile
    incubator/flex/trunk/mustella/tests/Modules/RSLs/SWFs/MainApp.mxml
    incubator/flex/trunk/mustella/tests/Modules/RSLs/SWFs/assets/
    incubator/flex/trunk/mustella/tests/Modules/RSLs/SWFs/assets/AnotherDataGridModule-config.xml
    incubator/flex/trunk/mustella/tests/Modules/RSLs/SWFs/assets/AnotherDataGridModule.compile
    incubator/flex/trunk/mustella/tests/Modules/RSLs/SWFs/assets/AnotherDataGridModule.mxml
    incubator/flex/trunk/mustella/tests/Modules/RSLs/SWFs/assets/ComboModule-config.xml
    incubator/flex/trunk/mustella/tests/Modules/RSLs/SWFs/assets/ComboModule.compile
    incubator/flex/trunk/mustella/tests/Modules/RSLs/SWFs/assets/ComboModule.mxml
    incubator/flex/trunk/mustella/tests/Modules/RSLs/SWFs/assets/DataGridModule-config.xml
    incubator/flex/trunk/mustella/tests/Modules/RSLs/SWFs/assets/DataGridModule.compile
    incubator/flex/trunk/mustella/tests/Modules/RSLs/SWFs/assets/DataGridModule.mxml
    incubator/flex/trunk/mustella/tests/Modules/RSLs/SWFs/pre_compile.sh   (with props)
    incubator/flex/trunk/mustella/tests/Modules/SubModules/
    incubator/flex/trunk/mustella/tests/Modules/SubModules/Integration/
    incubator/flex/trunk/mustella/tests/Modules/SubModules/Integration/subModules_tester1.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/Integration/subModules_tester2.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/Integration/subModules_tester3.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/SubModuleTest_basic1.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/SubModuleTest_basic2.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/SubModuleTest_basic3.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/assets/
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/assets/MXTitleWindowModule.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/assets/Module1.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/assets/Module2.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/assets/Module3.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/assets/Module4.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/assets/Module5.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/assets/Module6.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/assets/ModuleLoadSubApp2.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/assets/ModuleLoadSubApp3.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/assets/MyMXTitleWindow.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/assets/SimpleASModuleTest.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/assets/SimpleModule.as
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/assets/SimpleModuleWithLabel.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/assets/SimpleTitleWindow.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/assets/SubApp1.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/assets/SubApp2.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/assets/SubApp3.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/assets/SubApp4.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/assets/TitleWindowModule.mxml
    incubator/flex/trunk/mustella/tests/Modules/SubModules/SWFs/pre_compile.sh   (with props)

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/ContentSizedConstraints_Module.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/ContentSizedConstraints_Module.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/ContentSizedConstraints_Module.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/ContentSizedConstraints_Module.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,404 @@
+<?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="Modules/Constraints/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="ConstraintBasedLayout_Module.mxml">
+       <mx:Script>
+		<![CDATA[
+
+        import comps.ContentRowColumnModuleComp;
+        import comps.ContentRowColumnModuleComp;
+		import mx.containers.utilityClasses.ConstraintColumn;
+		import mx.containers.utilityClasses.ConstraintRow;
+		import mx.modules.*;
+		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="module2.getChildAt(0)" propertyName="width" value="200" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="x" value="155" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="height" value="50" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="y" value="20" />
+			<AssertPropertyValue target="module2.constraintRows.0" propertyName="height" value="90" />
+			<AssertPropertyValue target="module2.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="module2.constraintColumns.0" propertyName="width" value="135" />
+			<AssertPropertyValue target="module2.getChildAt(1)" propertyName="width" value="100" />
+			<AssertPropertyValue target="module2.getChildAt(1)" propertyName="x" value="25" />
+			<AssertPropertyValue target="module2.getChildAt(1)" 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="module2.getChildAt(2)" propertyName="height" value="35" />
+			<AssertPropertyValue target="module2.getChildAt(2)" propertyName="x" value="0" />
+			<AssertPropertyValue target="module2.getChildAt(2)" 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="module2.constraintRows.2" propertyName="height" valueExpression="value=application.module2.getChildAt(3).height + 20" />
+			<AssertPropertyValue target="module2.getChildAt(3)" propertyName="height" value="180" />
+			<AssertPropertyValue target="module2.getChildAt(3)" propertyName="x" value="0" />
+			<AssertPropertyValue target="module2.getChildAt(3)" propertyName="y" valueExpression="value=application.module2.constraintRows[0].height + application.module2.constraintRows[1].height + 10" />
+		</body>
+	</TestCase>
+    <TestCase testID="constraintColumn_contentSized_mxml_noWidthOnComponent" keywords="[constraintRows, MXML]"
+	    description="Verify the constraintRows has the right height when its children have no explicit height set in mxml">
+		<body>
+			<AssertPropertyValue target="module2.constraintColumns.2" propertyName="width" valueExpression="value=application.module2.getChildAt(4).width + 20" />
+			<AssertPropertyValue target="module2.getChildAt(4)" propertyName="width" value="95" />
+			<AssertPropertyValue target="module2.getChildAt(4)" propertyName="y" value="0" />
+			<AssertPropertyValue target="module2.getChildAt(4)" propertyName="x" valueExpression="value=application.module2.constraintColumns[0].width + application.module2.constraintColumns[1].width + 10" />
+		</body>
+	</TestCase>
+	<TestCase testID="constraintColumns_contentsized_mxml_resizeComponent" keywords="[content-sized sized, Module, constraintColumn]"
+	    description="ConstraintColumns with content-sized width and then resize a component changing the column size">
+		<setup>
+		    <ResetComponent target="module2" className="comps.ContentRowColumnModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+		    <SetProperty target="module2.getChildAt(0)" propertyName="width" value="100" waitEvent="updateComplete" waitTarget="module2.getChildAt(0)"/>
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="width" value="100" />
+			<AssertPropertyValue target="module2.constraintColumns.1" propertyName="width" value="140" />
+		</body>
+	</TestCase>
+
+    <TestCase testID="constraintRows_contentsized_mxml_resizeComponent" keywords="[content-sized sized, Module, constraintRow]"
+	    description="ConstraintRows with content-sized height and then resize Component">
+		<setup>
+		    <ResetComponent target="module2" className="comps.ContentRowColumnModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetProperty target="module2.getChildAt(0)" propertyName="height" value="120" waitEvent="updateComplete" waitTarget="module2.getChildAt(0)"/>
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="height" value="120" />
+			<AssertPropertyValue target="module2.constraintRows.0" propertyName="height" value="160" />
+		</body>
+	</TestCase>
+	<TestCase testID="constraintColumns_empty" keywords="[content-sized sized, Module, constraintColumn, minWidth]"
+	description="Ensure that width is zero for ConstraintRows that are empty.">
+		<setup>
+		    <ResetComponent target="emptyModule" className="comps.EmptyModuleComp" waitTarget="emptyModule" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<RunCode code="newConstraintColumn = new ConstraintColumn()" />
+			<RunCode code="newColumns.push(newConstraintColumn)" />
+			<SetProperty target="emptyModule" propertyName="constraintColumns" valueExpression="value=newColumns" waitEvent="updateComplete" waitTarget="emptyModule"/>
+			<AssertPropertyValue target="emptyModule.constraintColumns" propertyName="length" value="1" />
+		    <AssertPropertyValue target="emptyModule.constraintColumns.0" propertyName="width" value="0" />
+		</body>
+	</TestCase>
+    <TestCase testID="constraintRows_empty" keywords="[content-sized sized, Module, constraintRows, minHeight]"
+	description="Ensure that height is zero for constraintRows that are empty.">
+		<setup>
+		    <ResetComponent target="emptyModule" className="comps.EmptyModuleComp" waitTarget="emptyModule" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<RunCode code="newConstraintRow = new ConstraintRow()" />
+			<RunCode code="newRows.push(newConstraintRow)" />
+			<SetProperty target="emptyModule" propertyName="constraintRows" valueExpression="value=newRows" waitEvent="updateComplete" waitTarget="emptyModule"/>
+			<AssertPropertyValue target="emptyModule.constraintRows" propertyName="length" value="1" />
+		    <AssertPropertyValue target="emptyModule.constraintRows.0" propertyName="height" value="0" />
+		</body>
+	</TestCase>
+<!-- minWidth/minHeight-->
+    <TestCase testID="constraintColumns_minWidth_empty" keywords="[content-sized sized, Module, constraintColumn, minWidth]"
+	description="Ensure that minWidth is honored for ConstraintRows that are empty.">
+		<setup>
+		    <ResetComponent target="emptyModule" className="comps.EmptyModuleComp" waitTarget="emptyModule" waitEvent="updateComplete" />
+		</setup>
+		<body>
+		    <RunCode code="newColumns=[]" />
+		    <RunCode code="newConstraintColumn = new ConstraintColumn()" />
+			<SetProperty target="script:newConstraintColumn" propertyName="minWidth" value="100" />
+			<RunCode code="newColumns.push(newConstraintColumn)" />
+			<SetProperty target="emptyModule" propertyName="constraintColumns" valueExpression="value=newColumns" waitEvent="updateComplete" waitTarget="emptyModule"/>
+			<AssertPropertyValue target="emptyModule.constraintColumns.0" propertyName="width" value="100" />
+		</body>
+	</TestCase>
+    <TestCase testID="constraintRows_minHeight_empty" keywords="[content-sized sized, Module, constraintRows, minHeight]"
+	description="Ensure that minHeight is honored for constraintRows that are empty.">
+		<setup>
+		    <ResetComponent target="emptyModule" className="comps.EmptyModuleComp" waitTarget="emptyModule" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<RunCode code="newRows=[]" />
+		    <RunCode code="newConstraintRow = new ConstraintRow()" />
+			<SetProperty target="script:newConstraintRow" propertyName="minHeight" value="100" />
+			<RunCode code="newRows.push(newConstraintRow)" />
+			<SetProperty target="emptyModule" propertyName="constraintRows" valueExpression="value=newRows" waitEvent="updateComplete" waitTarget="emptyModule"/>
+			<AssertPropertyValue target="emptyModule.constraintRows.0" propertyName="height" value="100" />
+		</body>
+	</TestCase>
+    <TestCase testID="constraintColumns_minWidth_validChild" keywords="[content-sized sized, Module, constraintColumn, minWidth]"
+	description="Ensure that minWidth is honored for ConstraintRows that have valid constrained children.">
+		<setup>
+		    <ResetComponent target="emptyModule" className="comps.EmptyModuleComp" waitTarget="emptyModule" waitEvent="updateComplete" />
+			<RunCode code="newColumns=[]" />
+		</setup>
+		<body>
+			<RunCode code="newConstraintColumn = new ConstraintColumn()" />
+			<SetProperty target="script:newConstraintColumn" propertyName="minWidth" value="300" />
+			<SetProperty target="script:newConstraintColumn" propertyName="id" value="col1" />
+			<RunCode code="newColumns.push(newConstraintColumn)" />
+			<SetProperty target="emptyModule" propertyName="constraintColumns" valueExpression="value=newColumns" />
+			<RunCode code="newButton = new Button()" />
+			<SetProperty propertyName="label" target="script:newButton" value="Tooth Fairy" />
+			<SetStyle styleName="left" valueExpression="value='col1:20'" target="script:newButton"  />
+			<SetProperty propertyName="width" value="200" target="script:newButton" />
+			<RunCode code="application.emptyModule.addChild(newButton)" waitTarget="emptyModule" waitEvent="updateComplete" />
+			<AssertPropertyValue target="emptyModule.constraintColumns.0" propertyName="width" value="300" />
+			<AssertPropertyValue target="emptyModule.getChildAt(0)" propertyName="x" value="20" />
+			<AssertPropertyValue target="emptyModule.getChildAt(0)" propertyName="width" value="200" />
+		</body>
+	</TestCase>
+    <TestCase testID="constraintColumns_minWidth_percentChild" keywords="[content-sized sized, Module, constraintColumn, minWidth]"
+	description="Ensure that minWidth is honored for ConstraintColumns that have percent-sized constrained children.">
+		<setup>
+		    <ResetComponent target="emptyModule" className="comps.EmptyModuleComp" waitTarget="emptyModule" waitEvent="updateComplete" />
+			<RunCode code="newColumns=[]" />
+		</setup>
+		<body>
+			<RunCode code="newConstraintColumn = new ConstraintColumn()" />
+			<SetProperty target="script:newConstraintColumn" propertyName="minWidth" value="150" />
+			<SetProperty target="script:newConstraintColumn" propertyName="id" value="col1" />
+			<RunCode code="newColumns.push(newConstraintColumn)" />
+			<SetProperty target="emptyModule" propertyName="constraintColumns" valueExpression="value=newColumns" />
+			<RunCode code="newButton = new Button()" />
+			<SetProperty propertyName="label" target="script:newButton" value="Tooth Fairy" />
+			<SetProperty propertyName="percentWidth" target="script:newButton" value="80" />
+			<SetStyle styleName="left" valueExpression="value='col1:20'" target="script:newButton"  />
+	        <RunCode code="application.emptyModule.addChild(newButton)" waitTarget="emptyModule" waitEvent="updateComplete" />
+			<AssertPropertyValue target="emptyModule.constraintColumns.0" propertyName="width" value="150" />
+			<AssertPropertyValue target="emptyModule.getChildAt(0)" propertyName="x" value="20" />
+			<AssertPropertyValue target="emptyModule.getChildAt(0)" propertyName="width" value="240" />
+		</body>
+	</TestCase>
+    <TestCase testID="constraintColumns_minWidth_smallChild" keywords="[content-sized sized, Module, constraintColumn, minWidth]"
+	description="Ensure that minWidth of a ConstraintColumn overrides the width of its children.">
+		<setup>
+		    <ResetComponent target="emptyModule" className="comps.EmptyModuleComp" waitTarget="emptyModule" waitEvent="updateComplete" />
+			<RunCode code="newColumns=[]" />
+		</setup>
+		<body>
+			<RunCode code="newConstraintColumn = new ConstraintColumn()" />
+			<SetProperty target="script:newConstraintColumn" propertyName="minWidth" value="300" />
+			<SetProperty target="script:newConstraintColumn" propertyName="id" value="col1" />
+			<RunCode code="newColumns.push(newConstraintColumn)" />
+			<SetProperty target="emptyModule" propertyName="constraintColumns" valueExpression="value=newColumns" />
+			<RunCode code="newButton = new Button()" />
+			<SetProperty propertyName="label" target="script:newButton" value="Easter Bunny" />
+			<SetStyle styleName="left" valueExpression="value='col1:20'" target="script:newButton"  />
+			<SetStyle styleName="right" valueExpression="value='col1:20'" target="script:newButton"  />
+			<SetProperty propertyName="width" value="200" target="script:newButton" />
+			<RunCode code="application.emptyModule.addChild(newButton)" waitTarget="emptyModule" waitEvent="updateComplete" />
+			<AssertPropertyValue target="emptyModule.constraintColumns.0" propertyName="width" value="300" />
+			<AssertPropertyValue target="emptyModule.getChildAt(0)" propertyName="x" value="20" />
+			<AssertPropertyValue target="emptyModule.getChildAt(0)" propertyName="width" value="260" />
+		</body>
+	</TestCase>
+    <TestCase testID="constraintRows_minHeight_validChild" keywords="[content-sized sized, Module, constraintColumn, minHeight]"
+	description="Ensure that minHeight is honored for ConstraintRows that have valid constrained children.">
+		<setup>
+		    <ResetComponent target="emptyModule" className="comps.EmptyModuleComp" waitTarget="emptyModule" waitEvent="updateComplete" />
+			<RunCode code="newRows=[]" />
+		</setup>
+		<body>
+			<RunCode code="newConstraintRow = new ConstraintRow()" />
+			<SetProperty target="script:newConstraintRow" propertyName="minHeight" value="300" />
+			<SetProperty target="script:newConstraintRow" propertyName="id" value="row1" />
+			<RunCode code="newRows.push(newConstraintRow)" />
+			<SetProperty target="emptyModule" propertyName="constraintRows" valueExpression="value=newRows" />
+			<RunCode code="newButton = new Button()" />
+			<SetProperty propertyName="label" target="script:newButton" value="Tooth Fairy" />
+			<SetStyle styleName="top" valueExpression="value='row1:20'" target="script:newButton"  />
+			<SetProperty propertyName="height" value="200" target="script:newButton" />
+			<RunCode code="application.emptyModule.addChild(newButton)" waitTarget="emptyModule" waitEvent="updateComplete" />
+			<AssertPropertyValue target="emptyModule.constraintRows.0" propertyName="height" value="300" />
+			<AssertPropertyValue target="emptyModule.getChildAt(0)" propertyName="y" value="20" />
+			<AssertPropertyValue target="emptyModule.getChildAt(0)" propertyName="height" value="200" />
+		</body>
+	</TestCase>
+    <TestCase testID="constraintRows_minHeight_percentChild" keywords="[content-sized sized, Module, constraintColumn, minHeight]"
+	description="Ensure that minHeight is honored for ConstraintRows that have valid constrained children.">
+		<setup>
+		    <ResetComponent target="emptyModule" className="comps.EmptyModuleComp" waitTarget="emptyModule" waitEvent="updateComplete" />
+			<RunCode code="newRows=[]" />
+		</setup>
+		<body>
+			<RunCode code="newConstraintRow = new ConstraintRow()" />
+			<SetProperty target="script:newConstraintRow" propertyName="minHeight" value="150" />
+			<SetProperty target="script:newConstraintRow" propertyName="id" value="row1" />
+			<RunCode code="newRows.push(newConstraintRow)" />
+			<SetProperty target="emptyModule" propertyName="constraintRows" valueExpression="value=newRows" />
+			<RunCode code="newButton = new Button()" />
+			<SetProperty propertyName="label" target="script:newButton" value="Tooth Fairy" />
+			<SetProperty propertyName="percentHeight" target="script:newButton" value="80" />
+			<SetStyle styleName="top" valueExpression="value='row1:20'" target="script:newButton"  />
+	        <RunCode code="application.emptyModule.addChild(newButton)" waitTarget="emptyModule" waitEvent="updateComplete" />
+			<AssertPropertyValue target="emptyModule.constraintRows.0" propertyName="height" value="150" />
+			<AssertPropertyValue target="emptyModule.getChildAt(0)" propertyName="y" value="20" />
+			<AssertPropertyValue target="emptyModule.getChildAt(0)" propertyName="height" value="240" />
+		</body>
+	</TestCase>
+    <TestCase testID="constraintRows_minHeight_smallChild" keywords="[content-sized sized, Module, constraintColumn, minHeight]"
+	description="Ensure that minHeight of a ConstraintRows overrides the height of its children.">
+		<setup>
+		    <ResetComponent target="emptyModule" className="comps.EmptyModuleComp" waitTarget="emptyModule" waitEvent="updateComplete" />
+			<RunCode code="newRows=[]" />
+		</setup>
+		<body>
+			<RunCode code="newConstraintRow = new ConstraintRow()" />
+			<SetProperty target="script:newConstraintRow" propertyName="minHeight" value="300" />
+			<SetProperty target="script:newConstraintRow" propertyName="id" value="row1" />
+			<RunCode code="newRows.push(newConstraintRow)" />
+			<SetProperty target="emptyModule" propertyName="constraintRows" valueExpression="value=newRows"/>
+			<RunCode code="newButton = new Button()" />
+			<SetProperty propertyName="label" target="script:newButton" value="Tooth Fairy" />
+			<SetStyle styleName="top" valueExpression="value='row1:20'" target="script:newButton"  />
+			<SetStyle styleName="bottom" valueExpression="value='row1:20'" target="script:newButton"  />
+			<SetProperty propertyName="height" value="200" target="script:newButton" />
+			<RunCode code="application.emptyModule.addChild(newButton)" waitTarget="emptyModule" waitEvent="updateComplete" />
+			<AssertPropertyValue target="emptyModule.constraintRows.0" propertyName="height" value="300" />
+			<AssertPropertyValue target="emptyModule.getChildAt(0)" propertyName="y" value="20" />
+			<AssertPropertyValue target="emptyModule.getChildAt(0)" propertyName="height" value="260" />
+		</body>
+	</TestCase>
+    <TestCase testID="constraintColumns_maxWidth_validChild" keywords="[content-sized sized, Module, constraintColumn, maxWidth]"
+	description="Ensure that maxWidth is honored for ConstraintRows that have valid constrained children.">
+		<setup>
+		    <ResetComponent target="emptyModule" className="comps.EmptyModuleComp" waitTarget="emptyModule" waitEvent="updateComplete" />
+			<RunCode code="newColumns=[]" />
+		</setup>
+		<body>
+			<RunCode code="newConstraintColumn = new ConstraintColumn()" />
+			<SetProperty target="script:newConstraintColumn" propertyName="id" value="col1" />
+			<SetProperty target="script:newConstraintColumn" propertyName="maxWidth" value="150" />
+			<RunCode code="newColumns.push(newConstraintColumn)" />
+			<SetProperty target="emptyModule" propertyName="constraintColumns" valueExpression="value=newColumns" waitEvent="updateComplete" waitTarget="emptyModule" />
+			<RunCode code="newButton = new Button()" />
+			<SetProperty propertyName="label" target="script:newButton" value="Tooth Fairy" />
+			<SetStyle styleName="left" valueExpression="value='col1:20'" target="script:newButton"  />
+			<SetStyle styleName="right" valueExpression="value='col1:20'" target="script:newButton"  />
+			<SetProperty propertyName="width" value="200" target="script:newButton" />
+			<RunCode code="application.emptyModule.addChild(newButton)" waitEvent="updateComplete" waitTarget="emptyModule" />
+			<AssertPropertyValue target="emptyModule.constraintColumns.0" propertyName="width" value="150" />
+			<AssertPropertyValue target="emptyModule.getChildAt(0)" propertyName="x" value="20" />
+			<AssertPropertyValue target="emptyModule.getChildAt(0)" propertyName="width" value="110" />
+		</body>
+	</TestCase>
+    <TestCase testID="constraintColumns_maxWidth_TooManyConstraints" keywords="[content-sized sized, Module, constraintColumn, maxWidth]"
+	description="Ensure that maxWidth is honored over width if a Button cannot obey its constraints.">
+		<setup>
+		    <ResetComponent target="emptyModule" className="comps.EmptyModuleComp" waitTarget="emptyModule" waitEvent="updateComplete" />
+			<RunCode code="newColumns=[]" />
+        </setup>
+		<body>
+			<RunCode code="newConstraintColumn = new ConstraintColumn()" />
+			<SetProperty target="script:newConstraintColumn" propertyName="id" value="col1" />
+			<SetProperty target="script:newConstraintColumn" propertyName="maxWidth" value="150" />
+			<RunCode code="newColumns.push(newConstraintColumn)" />
+			<SetProperty target="emptyModule" propertyName="constraintColumns" valueExpression="value=newColumns" waitEvent="updateComplete" waitTarget="emptyModule" />
+			<RunCode code="newButton = new Button()" />
+			<SetProperty propertyName="label" target="script:newButton" value="Tooth Fairy" />
+			<SetStyle styleName="left" valueExpression="value='col1:20'" target="script:newButton"  />
+			<SetStyle styleName="right" valueExpression="value='col1:20'" target="script:newButton" />
+			<SetProperty propertyName="width" value="200" target="script:newButton" />
+			<RunCode code="application.emptyModule.addChild(newButton)" waitEvent="updateComplete" waitTarget="emptyModule" />
+			<AssertPropertyValue target="emptyModule.getChildAt(0)" propertyName="x" value="20" />
+			<AssertPropertyValue target="emptyModule.getChildAt(0)" propertyName="width" value="110" />
+		</body>
+	</TestCase>
+    <TestCase testID="constraintRows_maxHeight_validChild" keywords="[content-sized sized, Module, constraintRow, maxHeight]"
+	description="Ensure that maxHeight is honored for ConstraintRows that have valid constrained children.">
+		<setup>
+		    <ResetComponent target="emptyModule" className="comps.EmptyModuleComp" waitTarget="emptyModule" waitEvent="updateComplete" />
+			<RunCode code="newRows=[]" />
+		    <SetProperty propertyName="width" target="emptyModule" value="400" waitTarget="emptyModule" waitEvent="updateComplete" />
+		    <SetProperty propertyName="height" target="emptyModule" value="400" waitTarget="emptyModule" waitEvent="updateComplete" />
+		</setup>
+		<body>
+		    <RunCode code="newConstraintRow = new ConstraintRow()" />
+			<SetProperty target="script:newConstraintRow" propertyName="id" value="row1" />
+			<SetProperty target="script:newConstraintRow" propertyName="maxHeight" value="150" />
+			<RunCode code="newRows.push(newConstraintRow)" />
+			<SetProperty target="emptyModule" propertyName="constraintRows" valueExpression="value=newRows" waitEvent="updateComplete" waitTarget="emptyModule" />
+			<RunCode code="newButton = new Button()" />
+			<SetProperty propertyName="label" target="script:newButton" value="Tooth Fairy" />
+			<SetStyle styleName="top" valueExpression="value='row1:20'" target="script:newButton"  />
+			<SetProperty propertyName="height" value="200" target="script:newButton" />
+			<RunCode code="application.emptyModule.addChild(newButton)"  waitEvent="updateComplete" waitTarget="emptyModule" />
+			<AssertPropertyValue target="emptyModule.constraintRows.0" propertyName="height" value="150" />
+			<AssertPropertyValue target="emptyModule.getChildAt(0)" propertyName="y" value="20" />
+			<AssertPropertyValue target="emptyModule.getChildAt(0)" propertyName="height" value="200" />
+		</body>
+	</TestCase>
+    <TestCase testID="constraintRows_maxHeight_TooManyConstraints" keywords="[content-sized sized, Module, constraintRow, maxHeight]"
+	description="Ensure that maxHeight is honored over height if a Button cannot obey its constraints.">
+		<setup>
+		    <ResetComponent target="emptyModule" className="comps.EmptyModuleComp" waitTarget="emptyModule" waitEvent="updateComplete" />
+			<RunCode code="newRows=[]" />
+		</setup>
+		<body>
+		    <RunCode code="newConstraintRow = new ConstraintRow()" />
+			<SetProperty target="script:newConstraintRow" propertyName="id" value="row1" />
+			<SetProperty target="script:newConstraintRow" propertyName="maxHeight" value="150" />
+			<RunCode code="newRows.push(newConstraintRow)" />
+			<SetProperty target="emptyModule" propertyName="constraintRows" valueExpression="value=newRows"  waitEvent="updateComplete" waitTarget="emptyModule" />
+			<RunCode code="newButton = new Button()" />
+			<SetProperty propertyName="label" target="script:newButton" value="Tooth Fairy" />
+			<SetStyle styleName="top" valueExpression="value='row1:20'" target="script:newButton"  />
+			<SetStyle styleName="bottom" valueExpression="value='row1:50'" target="script:newButton" />
+			<SetProperty propertyName="height" value="200" target="script:newButton" />
+			<RunCode code="application.emptyModule.addChild(newButton)"  waitEvent="updateComplete" waitTarget="emptyModule" />
+			<AssertPropertyValue target="emptyModule.constraintRows.0" propertyName="height" value="150" />
+			<AssertPropertyValue target="emptyModule.getChildAt(0)" propertyName="y" value="20" />
+			<AssertPropertyValue target="emptyModule.getChildAt(0)" propertyName="height" value="80" />
+		</body>
+	</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/FixedModuleConstraints.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/FixedModuleConstraints.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/FixedModuleConstraints.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/FixedModuleConstraints.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,418 @@
+<?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="Modules/Constraints/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="FixedModule.mxml">
+       <mx:Script>
+		<![CDATA[
+        import comps.FixedModuleComp;
+		import mx.containers.utilityClasses.ConstraintColumn;
+		import mx.containers.utilityClasses.ConstraintRow;
+		import mx.modules.*;
+		import mx.controls.Button;
+		public static function init(o:DisplayObject):void
+		{
+        }
+
+		public function addConstraintColumns(myModule:Module):void
+		{
+			var arr:Array = [];
+			var col1:ConstraintColumn = new ConstraintColumn();
+			col1.id = "col1";
+			col1.width = 100;
+			arr.push(col1);
+			var col2:ConstraintColumn = new ConstraintColumn();
+			col2.id = "col2";
+			col2.width = 100;
+			arr.push(col2);
+			myModule.constraintColumns = arr;
+		}
+
+		public function addConstraintRows(myModule:Module):void
+		{
+			var arr:Array = [];
+			var row1:ConstraintRow = new ConstraintRow();
+			row1.id = 'row1';
+			row1.height = 100;
+			arr.push(row1);
+			var row2:ConstraintRow = new ConstraintRow();
+			row2.id = 'row2';
+			row2.height = 100;
+			arr.push(row2);
+			myModule.constraintRows = arr;
+		}
+
+		]]>
+       </mx:Script>
+       <mx:Metadata>
+           <![CDATA[
+               [Mixin]
+           ]]>
+       </mx:Metadata>
+
+	<testCases>
+
+	<!-- Fixed Size Module Tests (with fixed size columns and rows) -->
+	<TestCase testID="constraintColumnsRows_initially_null_fixedModule" keywords="[constraintColumns, constraintRows, initial,
+		property, fixed size Module]" description="Verify the constraintColumns and constraintRows properties are null when unset">
+		<body>
+			<AssertPropertyValue target="module1.constraintColumns" propertyName="length" value="0" />
+			<AssertPropertyValue target="module1.constraintRows" propertyName="length" value="0" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="constraintColumns_set_validValues_fixedModule" keywords="[constraintColumns, Property, valid, fixed size Module]" description="Verify the constraintColumns
+	   property is correct">
+        <body>
+		    <RunCode code="addConstraintColumns(application.module1);" waitTarget="module1" waitEvent="updateComplete"/>
+            <AssertPropertyValue target="module1.constraintColumns" propertyName="length" value="2" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="constraintColumns_set_validValues_fixedModule_mxml" keywords="[constraintColumns, Property, valid, fixed size Module]" description="Verify the constraintColumns
+	   property is correct when set in mxml">
+        <body>
+		    <AssertPropertyValue target="module2.constraintColumns" propertyName="length" value="2" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="constrainButtonToCol1HorizontalCenter_fixedModule" keywords="[Button, constraint, horizontalCenter, constraintColumn, fixed size Module]" description="Verify the button
+	obeys its horizontalCenter style affixing it to the center of col1">
+		<setup>
+		    <ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetStyle target="module2.getChildAt(0)" styleName="horizontalCenter" value="col1:0" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertStyleValue target="module2.getChildAt(0)" styleName="horizontalCenter" value="col1:0" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="width" value="40" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="x" value="30" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="constrainButtonToParentHorizontalCenter_fixedModule" keywords="[Button, constraint, horizontalCenter, parent, fixed size Module]" description="Verify the button
+	is constrained to the center of the parent Module">
+		<setup>
+		    <ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetStyle target="module2.getChildAt(0)" styleName="horizontalCenter" value="0" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertStyleValue target="module2.getChildAt(0)" styleName="horizontalCenter" value="0" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="width" value="40" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="x" value="130" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="constrainButtonToParentLeftRight_fixedModule" keywords="[Button, constraint, left, right, parent, fixed size Module]" description="Verify the button
+	is constrained on the right and left to the parent edges">
+		<setup>
+		    <ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+        </setup>
+		<body>
+			<SetStyle target="module2.getChildAt(0)" styleName="left" value="10" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="right" value="10" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertStyleValue target="module2.getChildAt(0)" styleName="left" value="10" />
+			<AssertStyleValue target="module2.getChildAt(0)" styleName="right" value="10" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="x" value="10" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="width" value="280" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="constrainButtonToParentRegionsTopBottom_fixedModule" keywords="[Button, constraint, top, bottom, parent, fixed size Module]" description="Verify the button added
+	is constrained on the top and bottom to the parent edges">
+		<setup>
+		    <ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetStyle target="module2.getChildAt(0)" styleName="top" value="5" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="bottom" value="5" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertStyleValue target="module2.getChildAt(0)" styleName="top" value="5" />
+			<AssertStyleValue target="module2.getChildAt(0)" styleName="bottom" value="5" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="y" value="5" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="height" value="290" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="addButtonConstrainedToSingleColumnWithOffset_fixedModule" keywords="[Button, constraint, left, right, single column, fixed size Module]" description="Verify the button added
+	is constrained on the left and right to a single column">
+		<setup>
+		    <ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetStyle target="module2.getChildAt(0)" styleName="left" value="col1:10" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="right" value="col1:10" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertStyleValue target="module2.getChildAt(0)" styleName="left" value="col1:10" />
+			<AssertStyleValue target="module2.getChildAt(0)" styleName="right" value="col1:10" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="x" value="10" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="width" value="80" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="addButtonConstrainedToMultipleColumnsWithOffset_fixedModule" keywords="[Button, constraint, left, right, multiple columns, fixed size Module]" description="Verify the button added
+	is constrained on the left and right to multiple columns">
+		<setup>
+		    <ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetStyle target="module2.getChildAt(0)" styleName="left" value="col1:5" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="right" value="col2:5" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertStyleValue target="module2.getChildAt(0)" styleName="left" value="col1:5" />
+			<AssertStyleValue target="module2.getChildAt(0)" styleName="right" value="col2:5" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="x" value="5" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="width" value="190" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="constraintRows_set_validValues_fixedModule" keywords="[constraintRows, Property, valid value, fixed size Module]" description="Verify that constraintRows have been
+	added">
+		<setup>
+			<RunCode code="addConstraintRows(application.module1)"/>
+		</setup>
+		<body>
+			<AssertPropertyValue target="module1.constraintRows" propertyName="length" value="2" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="constraintRows_set_validValues_fixedModule_mxml" keywords="[constraintRows, Property, valid value, fixed size Module]" description="Verify that constraintRows have been
+	set correctly in mxml">
+		<body>
+			<AssertPropertyValue target="module2.constraintRows" propertyName="length" value="2" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="constrainButtonToRow1VerticalCenter_fixedModule" keywords="[Button, constraint, verticalCenter, constraintRow, fixed size Module]" description="Verify the button
+	obeys its verticalCenter style affixing it to the center of row1">
+		<setup>
+		    <ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetStyle target="module2.getChildAt(0)" styleName="verticalCenter" value="row1:0" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetProperty target="module2.getChildAt(0)" propertyName="height" value="40" waitEvent="updateComplete" waitTarget="module2.getChildAt(0)" />
+			<AssertStyleValue target="module2.getChildAt(0)" styleName="verticalCenter" value="row1:0" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="height" value="40" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="y" value="30" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="constrainButtonToParentVerticalCenter_fixedModule" keywords="[Button, constraint, verticalCenter, parent, fixed size Module]" description="Verify the button
+	is constrained to the center of the parent Module">
+		<setup>
+		    <ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetStyle target="module2.getChildAt(0)" styleName="verticalCenter" value="0" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetProperty target="module2.getChildAt(0)" propertyName="height" value="40" waitEvent="updateComplete" waitTarget="module2.getChildAt(0)" />
+			<AssertStyleValue target="module2.getChildAt(0)" styleName="verticalCenter" value="0" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="height" value="40" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="y" value="130" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="buttonConstrainedToSingleRowWithOffset_fixedModule" keywords="[Button, constraint, top, bottom, single row, fixed size Module]" description="Verify the button added
+	is constrained on the top and bottom to a single row">
+		<setup>
+		    <ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetStyle target="module2.getChildAt(0)" styleName="top" value="row1:10" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="bottom" value="row1:10" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertStyleValue target="module2.getChildAt(0)" styleName="top" value="row1:10" />
+			<AssertStyleValue target="module2.getChildAt(0)" styleName="bottom" value="row1:10" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="y" value="10" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="height" value="80" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="buttonConstrainedToMultipleRowsWithOffset_fixedModule" keywords="[Button, constraint, top, bottom, multiple rows, fixed size Module]" description="Verify the button added
+	is constrained on the top and bottom to multiple rows" >
+		<setup>
+		    <ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetStyle target="module2.getChildAt(0)" styleName="top" value="row1:5" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="bottom" value="row2:10" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertStyleValue target="module2.getChildAt(0)" styleName="top" value="row1:5" />
+			<AssertStyleValue target="module2.getChildAt(0)" styleName="bottom" value="row2:10" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="y" value="5" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="height" value="185" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="makeButtonFixedSized" keywords="[Button, fixed sized]">
+		<setup>
+		    <ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetProperty target="module2.getChildAt(0)" propertyName="width" value="150" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="width" value="150" />
+			<SetProperty target="module2.getChildAt(0)" propertyName="height" value="100" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="height" value="100" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="setLeftRightConstraintsOnFixedButton" keywords="[Button, fixed sized, left, right, constraints]">
+		<setup>
+		    <ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		    <SetProperty target="module2.getChildAt(0)" propertyName="width" value="150" waitEvent="updateComplete" waitTarget="module2"/>
+		    <SetProperty target="module2.getChildAt(0)" propertyName="height" value="100" waitEvent="updateComplete" waitTarget="module2"/>
+		</setup>
+		<body>
+			<SetStyle target="module2.getChildAt(0)" styleName="left" value="col1:5" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="right" value="col2:5" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="width" value="190" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="setTopBottomConstraintsOnFixedButton" keywords="[Button, fixed sized, top, bottom, constraints]">
+		<setup>
+		    <ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		    <SetProperty target="module2.getChildAt(0)" propertyName="width" value="150" waitEvent="updateComplete" waitTarget="module2"/>
+		    <SetProperty target="module2.getChildAt(0)" propertyName="height" value="100" waitEvent="updateComplete" waitTarget="module2"/>
+		</setup>
+		<body>
+			<SetStyle target="module2.getChildAt(0)" styleName="top" value="row1:5" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="bottom" value="row2:5" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="height" value="190" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="makeButtonPercentageSized" keywords="[Button, percentage sized]">
+		<setup>
+		    <ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetProperty target="module2.getChildAt(0)" propertyName="percentWidth" value="80" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="percentWidth" value="80" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="width" value="240" />
+			<SetProperty target="module2.getChildAt(0)" propertyName="percentHeight" value="80" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="percentHeight" value="80" />
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="height" value="240" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="setLeftRightConstraintsOnPercentageButton" keywords="[Button, percentage sized, left, right, constraints]">
+		<setup>
+		    <ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		    <SetProperty target="module2.getChildAt(0)" propertyName="percentWidth" value="80" waitEvent="updateComplete" waitTarget="module2"/>
+		    <SetProperty target="module2.getChildAt(0)" propertyName="percentHeight" value="80" waitEvent="updateComplete" waitTarget="module2"/>
+		</setup>
+		<body>
+			<SetStyle target="module2.getChildAt(0)" styleName="left" value="col1:5" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="right" value="col2:5" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="width" value="190" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="setTopBottomConstraintsOnPercentageButton" keywords="[Button, percentage sized, top, bottom, constraints]">
+		<setup>
+		    <ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		    <SetProperty target="module2.getChildAt(0)" propertyName="percentWidth" value="80" waitEvent="updateComplete" waitTarget="module2"/>
+		    <SetProperty target="module2.getChildAt(0)" propertyName="percentHeight" value="80" waitEvent="updateComplete" waitTarget="module2"/>
+		</setup>
+		<body>
+			<SetStyle target="module2.getChildAt(0)" styleName="top" value="row1:5" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="bottom" value="row2:5" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="height" value="190" />
+		</body>
+	</TestCase>
+<!-- horizontalCenter and verticalCenter tests -->
+	<TestCase testID="fixedColumns_FixedModule_horizontalCenter_positive" keywords="[horizontalCenter, percentage sized]">
+		<setup>
+			<ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetProperty target="module2.getChildAt(0)" propertyName="width" value="60" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="horizontalCenter" valueExpression="value='col1:10'" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="x" value="30" />
+		</body>
+	</TestCase>
+	<TestCase testID="fixedColumns_FixedModule_horizontalCenter_zero" keywords="[horizontalCenter, percentage sized]">
+		<setup>
+			<ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetProperty target="module2.getChildAt(0)" propertyName="width" value="60" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="horizontalCenter" valueExpression="value='col1:0'" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="x" value="20" />
+		</body>
+	</TestCase>
+	<TestCase testID="fixedColumns_FixedModule_verticalCenter_positive" keywords="[verticalCenter, percentage sized]">
+		<setup>
+			<ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetProperty target="module2.getChildAt(0)" propertyName="height" value="60" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="verticalCenter" valueExpression="value='row1:10'" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="y" value="30" />
+		</body>
+	</TestCase>
+	<TestCase testID="fixedColumns_FixedModule_verticalCenter_zero" keywords="[verticalCenter, percentage sized]">
+		<setup>
+			<ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetProperty target="module2.getChildAt(0)" propertyName="height" value="60" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="verticalCenter" valueExpression="value='row1:0'" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="y" value="20" />
+		</body>
+	</TestCase>
+	<TestCase testID="fixedColumns_FixedModule_horizontalCenter_negative" keywords="[horizontalCenter, percentage sized]">
+		<setup>
+			<ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetProperty target="module2.getChildAt(0)" propertyName="width" value="60" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="horizontalCenter" valueExpression="value='col1:-10'" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="x" value="10" />
+		</body>
+	</TestCase>
+	<TestCase testID="fixedColumns_FixedModule_verticalCenter_negative" keywords="[verticalCenter, percentage sized]">
+		<setup>
+			<ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetProperty target="module2.getChildAt(0)" propertyName="height" value="60" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="verticalCenter" valueExpression="value='row1:-10'" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="y" value="10" />
+		</body>
+	</TestCase>
+	<TestCase testID="fixedColumns_FixedModule_horizontalCenter_overrideLeftRight" keywords="[horizontalCenter, percentage sized]">
+		<setup>
+			<ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetProperty target="module2.getChildAt(0)" propertyName="width" value="60" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="horizontalCenter" valueExpression="value='col1:-10'" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="left" valueExpression="value='col1:20'" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="right" valueExpression="value='col1:20'" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="x" value="10" />
+		</body>
+	</TestCase>
+	<TestCase testID="fixedColumns_FixedModule_verticalCenter_overrideTopBottom" keywords="[verticalCenter, percentage sized]">
+		<setup>
+			<ResetComponent target="module2" className="comps.FixedModuleComp" waitTarget="module2" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetProperty target="module2.getChildAt(0)" propertyName="height" value="60" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="verticalCenter" valueExpression="value='row1:-10'" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="top" valueExpression="value='row1:20'" waitEvent="updateComplete" waitTarget="module2"/>
+			<SetStyle target="module2.getChildAt(0)" styleName="bottom" valueExpression="value='row1:20'" waitEvent="updateComplete" waitTarget="module2"/>
+			<AssertPropertyValue target="module2.getChildAt(0)" propertyName="y" value="10" />
+		</body>
+	</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/Module_ConstraintBindingTests.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/Module_ConstraintBindingTests.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/Module_ConstraintBindingTests.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/Module_ConstraintBindingTests.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,137 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="Modules/Constraints/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Module_ConstraintBinding.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 binding in MXML to the ConstraintColumn width property works."
+	      keywords="[Binding, width, ConstraintColumn]">
+		<body>
+		    <!--Pause timeout="300" /-->
+		    <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 binding at runtime to the ConstraintColumn width property and change
+	      it at runtime" keywords="[Binding, width, ConstraintColumn]">
+		<body>
+		    <SetProperty propertyName="width" value="140" target="col1" waitTarget="module1" waitEvent="updateComplete" />
+		    <SetProperty propertyName="width" value="240" target="col2" waitTarget="module1" waitEvent="updateComplete" />
+		    <AssertPropertyValue value="140" propertyName="width" target="col3" />
+		    <AssertPropertyValue value="240" propertyName="width" target="col4" />
+	    </body>
+	  </TestCase>
+	  <TestCase testID="ConstraintColumn_Binding_minWidth_mxml" description="Test that you can bind to the ConstraintColumn minWidth property" keywords="[Binding, minWidth, ConstraintColumn]">
+		<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" waitTarget="module2" waitEvent="updateComplete"  />
+		    <SetProperty propertyName="minWidth" value="160" target="col6" waitTarget="module2" waitEvent="updateComplete"  />
+		    <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_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" waitTarget="module1" waitEvent="updateComplete" />
+		    <SetProperty propertyName="height" value="240" target="row2" waitTarget="module1" waitEvent="updateComplete" />
+		    <AssertPropertyValue value="140" propertyName="height" target="row3" />
+		    <AssertPropertyValue value="240" propertyName="height" target="row4" />
+	    </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" waitTarget="module2" waitEvent="updateComplete"  />
+		    <SetProperty propertyName="minHeight" value="160" target="row6" waitTarget="module2" waitEvent="updateComplete"  />
+		    <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>



Mime
View raw message