incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1369975 [3/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
Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/PreferredModuleConstraints.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/PreferredModuleConstraints.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/PreferredModuleConstraints.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/Properties/PreferredModuleConstraints.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,421 @@
+<?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="PreferredModule.mxml">
+       <mx:Script>
+		<![CDATA[
+		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():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);
+			application.mainModule.constraintColumns = arr;
+		}
+
+		public function addConstraintRows():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);
+			application.mainModule.constraintRows = arr;
+		}
+
+		public function addFixedConstraintColumnsToEmptyModule():void
+		{
+			var arr:Array = [];
+			var col1:ConstraintColumn = new ConstraintColumn();
+			col1.id = "colA";
+			col1.width = 100;
+			arr.push(col1);
+			var col2:ConstraintColumn = new ConstraintColumn();
+			col2.id = "colB";
+			col2.width = 100;
+			arr.push(col2);
+			application.emptyModule.constraintColumns = arr;
+		}
+
+		]]>
+       </mx:Script>
+       <mx:Metadata>
+           <![CDATA[
+               [Mixin]
+           ]]>
+       </mx:Metadata>
+
+	<testCases>
+
+	<!-- Preferred Size Module Tests (with fixed size columns and rows) -->
+
+	<TestCase testID="constraintColumnsRows_initially_null_prefModule" keywords="[constraintColumns, constraintRows, initial, property, preferred size Module]" description="Verify the constraintColumns
+   	and constraintRows properties are null when unset">
+   	<setup>
+   	    <ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+   	</setup>
+   	<body>
+		<SetProperty target="mainModule" propertyName="constraintColumns" valueExpression="value=[]" waitTarget="mainModule" waitEvent="updateComplete" />
+		<SetProperty target="mainModule" propertyName="constraintRows" valueExpression="value=[]" waitTarget="mainModule" waitEvent="updateComplete" />
+		<AssertPropertyValue target="mainModule.constraintColumns" propertyName="length" value="0" />
+		<AssertPropertyValue target="mainModule.constraintColumns" propertyName="length" value="0" />
+		<AssertPropertyValue target="mainModule" propertyName="width" value="40" />
+		<AssertPropertyValue target="mainModule" propertyName="height" value="22" />
+		<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="x" value="0" />
+		<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="y" value="0" />
+   	</body>
+   	</TestCase>
+
+   	<TestCase testID="constraintColumns_set_validValues_prefModule" keywords="[constraintColumns, Property, valid, preferred size Module]" description="Verify the constraintColumns
+   	property is correct">
+	<setup>
+	   	<ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+   		<SetProperty target="mainModule" propertyName="constraintRows" valueExpression="value=[]" waitTarget="mainModule" waitEvent="updateComplete" />
+		<RunCode code="addConstraintColumns();" waitTarget="mainModule" waitEvent="updateComplete"/>
+	</setup>
+	<body>
+		<AssertPropertyValue target="mainModule.constraintColumns" propertyName="length" value="2" />
+		<AssertPropertyValue target="mainModule" propertyName="width" value="200" />
+		<AssertPropertyValue target="mainModule" propertyName="height" value="22" />
+	</body>
+	</TestCase>
+
+	<TestCase testID="constrainButtonToCol1HorizontalCenter_prefModule" keywords="[Button, constraint, horizontalCenter, constraintColumn, preferred size Module]" description="Verify the button
+	obeys its horizontalCenter style affixing it to the center of col1">
+   	    <setup>
+   	        <ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+   	    </setup>
+   	    <body>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="horizontalCenter" value="col1:0" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertStyleValue target="mainModule.getChildAt(0)" styleName="horizontalCenter" value="col1:0" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="width" value="40" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="x" value="30" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="constrainButtonToParentHorizontalCenter_prefModule" keywords="[Button, constraint, horizontalCenter, parent, preferred size Module]" description="Verify the button
+	is constrained to the center of the parent Module">
+   	    <setup>
+   	        <ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+   	    </setup>
+   	    <body>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="horizontalCenter" value="0" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertStyleValue target="mainModule.getChildAt(0)" styleName="horizontalCenter" value="0" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="width" value="40" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="x" value="80" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="constrainButtonToParentLeftRight_prefModule" keywords="[Button, constraint, left, right, parent, preferred size Module]" description="Verify the button
+	is constrained on the right and left to the parent edges">
+   	    <setup>
+   	        <ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+   	    </setup>
+   	    <body>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="left" value="10" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="right" value="10" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertStyleValue target="mainModule.getChildAt(0)" styleName="left" value="10" />
+			<AssertStyleValue target="mainModule.getChildAt(0)" styleName="right" value="10" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="x" value="10" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="width" value="180" />
+	    </body>
+	</TestCase>
+
+	<TestCase testID="constrainButtonToParentRegionsTopBottom_prefModule" keywords="[Button, constraint, top, bottom, parent, preferred size Module]" description="Verify the button added
+	is constrained on the top and bottom to the parent edges">
+		<setup>
+   	        <ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+   	        <SetProperty target="mainModule" propertyName="constraintRows" valueExpression="value=[]" waitTarget="mainModule" waitEvent="updateComplete" />
+		    <SetStyle target="mainModule.getChildAt(0)" styleName="left" value="10" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="right" value="10" waitEvent="updateComplete" waitTarget="mainModule"/>
+		</setup>
+   	    <body>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="top" value="5" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="bottom" value="5" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertPropertyValue target="mainModule" propertyName="height" value="32" />
+			<AssertStyleValue target="mainModule.getChildAt(0)" styleName="top" value="5" />
+			<AssertStyleValue target="mainModule.getChildAt(0)" styleName="bottom" value="5" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="y" value="5" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="height" valueExpression="value=application.mainModule.height - 10" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="addButtonConstrainedToSingleColumnWithOffset_prefModule" keywords="[Button, constraint, left, right, single column, preferred size Module]" description="Verify the button added
+	is constrained on the left and right to a single column">
+		<setup>
+   	        <ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+   	    </setup>
+   	    <body>
+   	        <SetStyle target="mainModule.getChildAt(0)" styleName="left" value="col1:10" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="right" value="col1:10" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertStyleValue target="mainModule.getChildAt(0)" styleName="left" value="col1:10" />
+			<AssertStyleValue target="mainModule.getChildAt(0)" styleName="right" value="col1:10" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="x" value="10" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="width" value="80" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="addButtonConstrainedToMultipleColumnsWithOffset_prefModule" keywords="[Button, constraint, left, right, multiple columns, preferred size Module]" description="Verify the button added
+	is constrained on the left and right to multiple columns">
+		<setup>
+   	        <ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+   	    </setup>
+   	    <body>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="left" value="col1:5" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="right" value="col2:5" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertStyleValue target="mainModule.getChildAt(0)" styleName="left" value="col1:5" />
+			<AssertStyleValue target="mainModule.getChildAt(0)" styleName="right" value="col2:5" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="x" value="5" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="width" value="190" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="constraintRows_set_validValues_prefModule" keywords="[constraintRows, Property, valid value, preferred size Module]" description="Verify that constraintRows have been
+	added">
+		<setup>
+			<ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<RunCode code="addConstraintRows()" waitTarget="mainModule" waitEvent="updateComplete"/>
+			<AssertPropertyValue target="mainModule.constraintRows" propertyName="length" value="2" />
+			<AssertPropertyValue target="mainModule" propertyName="width" value="200" />
+			<AssertPropertyValue target="mainModule" propertyName="height" value="200" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="constrainButtonToRow1VerticalCenter_prefModule" keywords="[Button, constraint, verticalCenter, constraintRow, preferred size Module]" description="Verify the button
+	obeys its verticalCenter style affixing it to the center of row1">
+		<setup>
+			<ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="verticalCenter" value="row1:0" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertStyleValue target="mainModule.getChildAt(0)" styleName="verticalCenter" value="row1:0" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="height" value="22" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="y" value="39" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="constrainButtonToParentVerticalCenter_prefModule" keywords="[Button, constraint, verticalCenter, parent, preferred size Module]" description="Verify the button
+	is constrained to the center of the parent Module">
+		<setup>
+			<ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="verticalCenter" value="0" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertStyleValue target="mainModule.getChildAt(0)" styleName="verticalCenter" value="0" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="height" value="22" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="y" value="89" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="addButtonConstrainedToSingleRowWithOffset_prefModule" keywords="[Button, constraint, top, bottom, single row, preferred size Module]" description="Verify the button added
+	is constrained on the top and bottom to a single row">
+		<setup>
+			<ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="top" value="row1:10" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="bottom" value="row1:10" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertStyleValue target="mainModule.getChildAt(0)" styleName="top" value="row1:10" />
+			<AssertStyleValue target="mainModule.getChildAt(0)" styleName="bottom" value="row1:10" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="y" value="10" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="height" value="80" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="addButtonConstrainedToMultipleRowsWithOffset_prefModule" keywords="[Button, constraint, top, bottom, multiple rows, preferred size Module]" description="Verify the button added
+	is constrained on the top and bottom to multiple rows" >
+		<setup>
+			<ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="top" value="row1:5" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="bottom" value="row2:10" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertStyleValue target="mainModule.getChildAt(0)" styleName="top" value="row1:5" />
+			<AssertStyleValue target="mainModule.getChildAt(0)" styleName="bottom" value="row2:10" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="y" value="5" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="height" value="185" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="makeButtonFixedSized" keywords="[Button, fixed sized]">
+		<setup>
+			<ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetProperty target="mainModule.getChildAt(0)" propertyName="width" value="150" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="width" value="150" />
+			<SetProperty target="mainModule.getChildAt(0)" propertyName="height" value="100" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="height" value="100" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="setLeftRightConstraintsOnFixedButton" keywords="[Button, fixed sized, left, right, constraints]">
+		<setup>
+			<ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+		    <SetProperty target="mainModule.getChildAt(0)" propertyName="width" value="150" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<SetProperty target="mainModule.getChildAt(0)" propertyName="height" value="100" waitEvent="updateComplete" waitTarget="mainModule"/>
+		</setup>
+		<body>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="left" value="col1:5" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="right" value="col2:5" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="width" value="190" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="setTopBottomConstraintsOnFixedButton" keywords="[Button, fixed sized, top, bottom, constraints]">
+		<setup>
+			<ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+		    <SetProperty target="mainModule.getChildAt(0)" propertyName="width" value="150" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<SetProperty target="mainModule.getChildAt(0)" propertyName="height" value="100" waitEvent="updateComplete" waitTarget="mainModule"/>
+		</setup>
+		<body>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="top" value="row1:5" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="bottom" value="row2:5" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="height" value="190" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="makeButtonPercentageSized" keywords="[Button, percentage sized]">
+		<setup>
+			<ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<AssertPropertyValue target="mainModule" propertyName="width" value="200" />
+			<SetProperty target="mainModule.getChildAt(0)" propertyName="percentWidth" value="80" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="percentWidth" value="80" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="width" value="160" />
+			<SetProperty target="mainModule.getChildAt(0)" propertyName="percentHeight" value="80" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="percentHeight" value="80" />
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="height" value="160" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="setLeftRightConstraintsOnPercentageButton" keywords="[Button, percentage sized, left, right, constraints]">
+		<setup>
+			<ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+		    <SetProperty target="mainModule.getChildAt(0)" propertyName="percentWidth" value="80" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<SetProperty target="mainModule.getChildAt(0)" propertyName="percentHeight" value="80" waitEvent="updateComplete" waitTarget="mainModule"/>
+		</setup>
+		<body>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="left" value="col1:5" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="right" value="col2:5" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="width" value="190" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="setTopBottomConstraintsOnPercentageButton" keywords="[Button, percentage sized, top, bottom, constraints]">
+		<setup>
+			<ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+		    <SetProperty target="mainModule.getChildAt(0)" propertyName="percentWidth" value="80" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<SetProperty target="mainModule.getChildAt(0)" propertyName="percentHeight" value="80" waitEvent="updateComplete" waitTarget="mainModule"/>
+		</setup>
+		<body>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="top" value="row1:5" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="bottom" value="row2:5" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="height" value="190" />
+		</body>
+	</TestCase>
+
+	<TestCase testID="emptyModuleInitiallyNull" keywords="[constraintColumns, preferred size Module, no children]" description="Verify the
+	preferred size Module sizes its columns correctly when the Module contains no children">
+		<setup>
+			<ResetComponent target="emptyModule" className="mx.modules.Module" waitTarget="emptyModule" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<AssertPropertyValue target="emptyModule.constraintColumns" propertyName="length" value="0" />
+			<AssertPropertyValue target="emptyModule.constraintColumns" propertyName="length" value="0" />
+	   	</body>
+   	</TestCase>
+
+	<TestCase testID="emptyModuleSizesColumnsCorrectly" keywords="[constraintColumns, preferred size Module, no children]" description="Verify the
+	preferred size Module sizes its columns correctly when the Module contains no children">
+		<setup>
+			<ResetComponent target="emptyModule" className="mx.modules.Module" waitTarget="emptyModule" waitEvent="updateComplete" />
+			<SetProperty target="emptyModule" propertyName="layout" value="absolute" waitTarget="emptyModule" waitEvent="updateComplete" />
+			<RunCode code="addFixedConstraintColumnsToEmptyModule();" waitTarget="emptyModule" waitEvent="updateComplete"/>
+		</setup>
+		<body>
+			<AssertPropertyValue target="emptyModule.constraintColumns" propertyName="length" value="2" />
+			<AssertPropertyValue target="emptyModule" propertyName="width" value="200" />
+			<AssertPropertyValue target="emptyModule" propertyName="height" value="0" />
+		</body>
+	</TestCase>
+<!-- horizontalCenter and verticalCenter tests -->
+	<TestCase testID="fixedColumns_PrefModule_horizontalCenter_positive" keywords="[horizontalCenter, percentage sized]">
+		<setup>
+			<ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetProperty target="mainModule.getChildAt(0)" propertyName="width" value="60" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="horizontalCenter" valueExpression="value='col1:10'" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="x" value="30" />
+		</body>
+	</TestCase>
+	<TestCase testID="fixedColumns_PrefModule_horizontalCenter_zero" keywords="[horizontalCenter, percentage sized]">
+		<setup>
+			<ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetProperty target="mainModule.getChildAt(0)" propertyName="width" value="60" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="horizontalCenter" valueExpression="value='col1:0'" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="x" value="20" />
+		</body>
+	</TestCase>
+	<TestCase testID="fixedColumns_PrefModule_verticalCenter_positive" keywords="[verticalCenter, percentage sized]">
+		<setup>
+			<ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetProperty target="mainModule.getChildAt(0)" propertyName="height" value="60" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="verticalCenter" valueExpression="value='row1:10'" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="y" value="30" />
+		</body>
+	</TestCase>
+	<TestCase testID="fixedColumns_PrefModule_verticalCenter_zero" keywords="[verticalCenter, percentage sized]">
+		<setup>
+			<ResetComponent target="mainModule" className="comps.PreferredModuleComp" waitTarget="mainModule" waitEvent="updateComplete" />
+		</setup>
+		<body>
+			<SetProperty target="mainModule.getChildAt(0)" propertyName="height" value="60" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<SetStyle target="mainModule.getChildAt(0)" styleName="verticalCenter" valueExpression="value='row1:0'" waitEvent="updateComplete" waitTarget="mainModule"/>
+			<AssertPropertyValue target="mainModule.getChildAt(0)" propertyName="y" value="20" />
+		</body>
+	</TestCase>
+   </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/ConstraintBasedLayout_Module.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/ConstraintBasedLayout_Module.compile?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/ConstraintBasedLayout_Module.compile (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/ConstraintBasedLayout_Module.compile Mon Aug  6 20:21:26 2012
@@ -0,0 +1 @@
+ -theme=${flexlib}/themes/Halo/halo.swc

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/ConstraintBasedLayout_Module.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/ConstraintBasedLayout_Module.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/ConstraintBasedLayout_Module.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/ConstraintBasedLayout_Module.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,45 @@
+<?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.
+
+-->
+   <mx:Application backgroundColor="0xFFFFFF" backgroundImage="" xmlns:mx="http://www.adobe.com/2006/mxml" width="900" height="800"
+       xmlns:comps="comps.*" >
+
+      <mx:Script>
+      <![CDATA[
+
+
+		import mx.managers.PopUpManager;
+		import mx.core.IFlexDisplayObject;
+
+		public var myPopUp:IFlexDisplayObject;
+
+        public function openPopUp(myPopUp:*): void
+        {
+           myPopUp = PopUpManager.createPopUp(this, myPopUp, true);
+        }
+
+      ]]>
+      </mx:Script>
+      <comps:PercentageRowColumnModuleComp id="module1" />
+
+      <comps:ContentRowColumnModuleComp id="module2" />
+
+      <comps:EmptyModuleComp id="emptyModule" />
+
+   </mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/ConstraintBasedLayout_PercentModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/ConstraintBasedLayout_PercentModule.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/ConstraintBasedLayout_PercentModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/ConstraintBasedLayout_PercentModule.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,27 @@
+<?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.
+
+-->
+   <mx:Application backgroundColor="0xFFFFFF"  xmlns:mx="http://www.adobe.com/2006/mxml" width="548" height="654"
+       xmlns:comps="comps.*" >
+
+      <comps:PercentageRowColumnPercentModuleComp id="module1" />
+
+      <!--comps:ContentRowColumnPercentModuleComp id="module2" /-->
+
+   </mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/FixedModule.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/FixedModule.compile?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/FixedModule.compile (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/FixedModule.compile Mon Aug  6 20:21:26 2012
@@ -0,0 +1 @@
+ -theme=${flexlib}/themes/Halo/halo.swc

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/FixedModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/FixedModule.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/FixedModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/FixedModule.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,27 @@
+<?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.
+
+-->
+   <mx:Application backgroundColor="0xFFFFFF" backgroundImage="" xmlns:mx="http://www.adobe.com/2006/mxml" width="700" height="700"
+       xmlns:comps="comps.*">
+
+      <comps:ButtonModuleComp id="module1" />
+
+      <comps:FixedModuleComp id="module2" />
+
+   </mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/Module_ConstraintBinding.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/Module_ConstraintBinding.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/Module_ConstraintBinding.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/Module_ConstraintBinding.mxml Mon Aug  6 20:21:26 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.
+
+-->
+   <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="900" height="800"
+       xmlns:comps="comps.*">
+
+      <mx:HBox>
+           <mx:Module width="400" height="300" backgroundColor="0xFF0000" layout="absolute" id="module1">
+               <mx:constraintColumns>
+			       <mx:ConstraintColumn id="col1" width="100" />
+			       <mx:ConstraintColumn id="col2" width="200" />
+			   </mx:constraintColumns>
+			   <mx:constraintRows>
+			       <mx:ConstraintRow id="row1" height="200" />
+			       <mx:ConstraintRow id="row2" height="150" />
+               </mx:constraintRows>
+               <mx:Button top="row1:10" left="col1:10" />
+          </mx:Module>
+          <mx:Panel id="panel2" width="400" height="300" backgroundColor="0x000000"
+              layout="absolute">
+             <mx:constraintColumns>
+			    <mx:ConstraintColumn id="col3" width="{col1.width}" />
+			    <mx:ConstraintColumn id="col4" width="{col2.width}" />
+			 </mx:constraintColumns>
+			 <mx:constraintRows>
+			    <mx:ConstraintRow id="row3" height="{row1.height}" />
+			    <mx:ConstraintRow id="row4" height="{row2.height}" />
+             </mx:constraintRows>
+             <mx:Button top="row3:10" left="col3:10" />
+          </mx:Panel>
+      </mx:HBox>
+
+      <mx:HBox>
+         <mx:Module id="module2" width="400" height="300" backgroundColor="0xFFDD00" layout="absolute">
+			 <mx:constraintColumns>
+				 <mx:ConstraintColumn id="col5" width="50%" minWidth="120" maxWidth="400"/>
+				 <mx:ConstraintColumn id="col6" width="40%" minWidth="200" maxWidth="300"/>
+			 </mx:constraintColumns>
+			 <mx:constraintRows>
+				 <mx:ConstraintRow id="row5" height="60%" minHeight="220" maxHeight="400"/>
+				 <mx:ConstraintRow id="row6" height="35%" minHeight="120" maxHeight="300"/>
+			 </mx:constraintRows>
+             <mx:Button top="row5:10" left="col5:10" />
+        </mx:Module>
+        <mx:Panel id="panel4" width="400" height="300" backgroundColor="0x22DDFF" layout="absolute">
+             <mx:constraintColumns>
+			    <mx:ConstraintColumn id="col7" width="50%" minWidth="{col5.minWidth}" maxWidth="{col5.maxWidth}" />
+			    <mx:ConstraintColumn id="col8" width="40%" minWidth="{col6.minWidth}" maxWidth="{col6.maxWidth}" />
+			 </mx:constraintColumns>
+			 <mx:constraintRows>
+			    <mx:ConstraintRow id="row7" height="60%" minHeight="{row5.minHeight}" maxHeight="{row5.maxHeight}" />
+			    <mx:ConstraintRow id="row8" height="35%" minHeight="{row6.minHeight}" maxHeight="{row6.maxHeight}" />
+             </mx:constraintRows>
+             <mx:Button top="row7:10" left="col8:10" />
+        </mx:Panel>
+     </mx:HBox>
+
+   </mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/PercentageModule.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/PercentageModule.compile?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/PercentageModule.compile (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/PercentageModule.compile Mon Aug  6 20:21:26 2012
@@ -0,0 +1 @@
+ -theme=${flexlib}/themes/Halo/halo.swc

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/PercentageModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/PercentageModule.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/PercentageModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/PercentageModule.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,27 @@
+<?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.
+
+-->
+   <mx:Application backgroundColor="0xFFFFFF" backgroundImage="" xmlns:mx="http://www.adobe.com/2006/mxml" width="600" height="600"
+       paddingLeft="0" paddingBottom="0" paddingRight="0" paddingTop="0"
+       xmlns:comps="comps.*">
+
+      <mx:Box id="canvasParent" width="300" height="300">
+          <comps:PercentageModuleComp id="mainModule" />
+      </mx:Box>
+   </mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/PreferredModule.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/PreferredModule.compile?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/PreferredModule.compile (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/PreferredModule.compile Mon Aug  6 20:21:26 2012
@@ -0,0 +1 @@
+ -theme=${flexlib}/themes/Halo/halo.swc

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/PreferredModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/PreferredModule.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/PreferredModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/PreferredModule.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,27 @@
+<?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.
+
+-->
+   <mx:Application backgroundColor="0xFFFFFF" backgroundImage="" xmlns:mx="http://www.adobe.com/2006/mxml" width="500" height="500"
+       xmlns:comps="comps.*" >
+
+      <comps:PreferredModuleComp id="mainModule" />
+
+      <mx:Module layout="absolute"  id="emptyModule" />
+
+   </mx:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/ButtonModuleComp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/ButtonModuleComp.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/ButtonModuleComp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/ButtonModuleComp.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,25 @@
+<?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.
+
+-->
+   <mx:Module xmlns:mx="http://www.adobe.com/2006/mxml"
+        layout="absolute" width="300" height="300">
+
+  <mx:Button id="btn" />
+
+   </mx:Module>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/ContentRowColumnModuleComp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/ContentRowColumnModuleComp.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/ContentRowColumnModuleComp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/ContentRowColumnModuleComp.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,45 @@
+<?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.
+
+-->
+    <mx:Module layout="absolute" xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
+
+		<mx:constraintColumns>
+			<mx:ConstraintColumn id="col1" />
+			<mx:ConstraintColumn id="col2" />
+			<mx:ConstraintColumn id="col3" />
+		</mx:constraintColumns>
+		<mx:constraintRows>
+			<mx:ConstraintRow id="row1" />
+			<mx:ConstraintRow id="row2" />
+			<mx:ConstraintRow id="row3" />
+		</mx:constraintRows>
+
+        <mx:TextArea id="textarea1" left="col2:20" right="col2:20" top="row1:20" bottom="row1:20"
+            width="200" height="50" />
+        <mx:ComboBox id="combo1" width="100" left="col1:25" right="col1:10">
+            <mx:dataProvider>
+                <mx:String>Tuscany</mx:String>
+                <mx:String>Paris</mx:String>
+                <mx:String>Maui</mx:String>
+            </mx:dataProvider>
+        </mx:ComboBox>
+        <mx:NumericStepper id="numeric1" top="row1:70" bottom="row2:30" height="30"/>
+        <mx:DateChooser top="row3:10" bottom="row3:10" />
+        <mx:Button label="Hello World!" left="col3:10" right="col3:10" />
+    </mx:Module>

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/ContentRowColumnPercentModuleComp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/ContentRowColumnPercentModuleComp.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/ContentRowColumnPercentModuleComp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/ContentRowColumnPercentModuleComp.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,42 @@
+<?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.
+
+-->
+    <mx:Module layout="absolute" xmlns:mx="http://www.adobe.com/2006/mxml" width="80%" height="50%">
+
+		<mx:constraintColumns>
+			<mx:ConstraintColumn id="col1" />
+			<mx:ConstraintColumn id="col2" />
+		</mx:constraintColumns>
+		<mx:constraintRows>
+			<mx:ConstraintRow id="row1" />
+			<mx:ConstraintRow id="row2" />
+		</mx:constraintRows>
+
+        <mx:TextArea id="textarea1" left="col2:20" right="col2:20" top="row1:20" bottom="row1:20"
+            width="200" height="50" />
+        <mx:ComboBox id="combo1" width="100" left="col1:25" right="col1:10">
+            <mx:dataProvider>
+                <mx:String>Tuscany</mx:String>
+                <mx:String>Paris</mx:String>
+                <mx:String>Maui</mx:String>
+            </mx:dataProvider>
+        </mx:ComboBox>
+        <mx:NumericStepper id="numeric1" top="row1:220" bottom="row2:30" height="30"/>
+
+    </mx:Module>

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/EmptyModuleComp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/EmptyModuleComp.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/EmptyModuleComp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/EmptyModuleComp.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,24 @@
+<?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.
+
+-->
+<mx:Module layout="absolute" xmlns:mx="http://www.adobe.com/2006/mxml"
+    width="300" height="300">
+
+
+</mx:Module>

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/FixedModuleComp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/FixedModuleComp.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/FixedModuleComp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/FixedModuleComp.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,32 @@
+<?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.
+
+-->
+<mx:Module layout="absolute" xmlns:mx="http://www.adobe.com/2006/mxml" width="300" height="300">
+    <mx:constraintColumns>
+        <mx:ConstraintColumn id="col1" width="100" />
+        <mx:ConstraintColumn id="col2" width="100" />
+    </mx:constraintColumns>
+    <mx:constraintRows>
+        <mx:ConstraintRow id="row1" height="100" />
+        <mx:ConstraintRow id="row2" height="100" />
+    </mx:constraintRows>
+
+  <mx:Button id="btn" />
+
+</mx:Module>

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/PercentageModuleComp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/PercentageModuleComp.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/PercentageModuleComp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/PercentageModuleComp.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,32 @@
+<?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.
+
+-->
+<mx:Module layout="absolute" xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" backgroundColor="0xFFCCCD">
+    <mx:constraintColumns>
+        <mx:ConstraintColumn id="col1" width="100" />
+        <mx:ConstraintColumn id="col2" width="100" />
+    </mx:constraintColumns>
+    <mx:constraintRows>
+        <mx:ConstraintRow id="row1" height="100" />
+        <mx:ConstraintRow id="row2" height="100" />
+    </mx:constraintRows>
+
+    <mx:Button id="btn" />
+
+</mx:Module>

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/PercentageRowColumnModuleComp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/PercentageRowColumnModuleComp.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/PercentageRowColumnModuleComp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/PercentageRowColumnModuleComp.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,37 @@
+<?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.
+
+-->
+    <mx:Module layout="absolute" xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
+
+		<mx:constraintColumns>
+			<mx:ConstraintColumn id="col1" width="30%" />
+			<mx:ConstraintColumn id="col2" width="50%" />
+		</mx:constraintColumns>
+		<mx:constraintRows>
+			<mx:ConstraintRow id="row1" height="25%" />
+			<mx:ConstraintRow id="row2" height="45%" />
+		</mx:constraintRows>
+
+        <mx:TextInput id="textinput1" left="col1:10" right="col2:40" />
+        <mx:DateChooser id="datechooser1" top="row1:10" bottom="row2:15" />
+        <mx:TextArea id="textarea1" left="col1:20" right="col2:20" top="row1:20" bottom="row2:20" />
+        <mx:NumericStepper id="ns1" verticalCenter="row1:20" height="30" />
+        <mx:Button id="button1" horizontalCenter="col2:30" width="50" label="hello" />
+        <mx:Button id="button2" />
+    </mx:Module>

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/PercentageRowColumnPercentModuleComp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/PercentageRowColumnPercentModuleComp.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/PercentageRowColumnPercentModuleComp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/PercentageRowColumnPercentModuleComp.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,34 @@
+<?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.
+
+-->
+    <mx:Module layout="absolute" xmlns:mx="http://www.adobe.com/2006/mxml" width="80%" height="50%">
+
+		<mx:constraintColumns>
+			<mx:ConstraintColumn id="col1" width="30%" />
+			<mx:ConstraintColumn id="col2" width="50%" />
+		</mx:constraintColumns>
+		<mx:constraintRows>
+			<mx:ConstraintRow id="row1" height="25%" />
+			<mx:ConstraintRow id="row2" height="45%" />
+		</mx:constraintRows>
+
+        <mx:TextInput id="textinput1" left="col1:10" right="col2:40" />
+        <mx:DateChooser id="datechooser1" top="row1:10" bottom="row2:15" />
+        <mx:TextArea id="textarea1" left="col1:20" right="col2:20" top="row1:20" bottom="row2:20" />
+    </mx:Module>

Added: incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/PreferredModuleComp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/PreferredModuleComp.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/PreferredModuleComp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Constraints/SWFs/comps/PreferredModuleComp.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,33 @@
+<?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.
+
+-->
+    <mx:Module layout="absolute" xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="0xFFFFFF">
+
+		<mx:constraintColumns>
+			<mx:ConstraintColumn id="col1" width="100" />
+			<mx:ConstraintColumn id="col2" width="100" />
+		</mx:constraintColumns>
+		<mx:constraintRows>
+			<mx:ConstraintRow id="row1" height="100" />
+			<mx:ConstraintRow id="row2" height="100" />
+		</mx:constraintRows>
+
+        <mx:Button id="btn" />
+
+    </mx:Module>

Added: incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFAppUsingFontFromModule.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFAppUsingFontFromModule.compile?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFAppUsingFontFromModule.compile (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFAppUsingFontFromModule.compile Mon Aug  6 20:21:26 2012
@@ -0,0 +1 @@
+-theme+=${flexlib}/projects/spark/MXFTEText.css
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFAppUsingFontFromModule.log.1
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFAppUsingFontFromModule.log.1?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFAppUsingFontFromModule.log.1 (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFAppUsingFontFromModule.log.1 Mon Aug  6 20:21:26 2012
@@ -0,0 +1,20 @@
+Warning: 'flash' has no property 'prototype'
+Warning: 'flash' has no property 'prototype'
+Hello from excludes at: Wed Jun 22 00:34:23 GMT-0700 2011
+excludes loadTryFile Wed Jun 22 00:34:23 GMT-0700 2011
+Exclude: try load from: file:///Users/aharui/Perforce/faramir/flex/qa/sdk/testsuites/mustella/tests/ExcludeListMac.txt
+Created new test output instance
+Excludes: Reading from file system at file:///Users/aharui/Perforce/faramir/flex/qa/sdk/testsuites/mustella/tests
+runid.properties ERROR handler with: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://localhost:80/runid.properties?0.0023069903254508971308728063423"]
+timeout_plus is: 0
+LengthOfTestcases: 1
+sending: http://localhost:9999/testCaseLength?1 at: Wed Jun 22 00:34:24 GMT-0700 2011
+testComplete
+[Event type="open" bubbles=false cancelable=false eventPhase=2]
+ScriptComplete: completely done
+sending: http://localhost:9999/ScriptComplete?1 at: Wed Jun 22 00:34:24 GMT-0700 2011
+[Event type="open" bubbles=false cancelable=false eventPhase=2]
+[ProgressEvent type="progress" bubbles=false cancelable=false eventPhase=2 bytesLoaded=30 bytesTotal=0]
+[HTTPStatusEvent type="httpStatus" bubbles=false cancelable=false eventPhase=2 status=200 responseURL=null]
+[Event type="complete" bubbles=false cancelable=false eventPhase=2]
+aharui
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFAppUsingFontFromModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFAppUsingFontFromModule.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFAppUsingFontFromModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFAppUsingFontFromModule.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,105 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 		
+		xmlns:s="library://ns.adobe.com/flex/spark" 
+		xmlns:mx="library://ns.adobe.com/flex/mx"
+		creationComplete="loadFontModule()"
+		width="800" height="600">
+	<fx:Script>
+	<![CDATA[
+
+		import spark.layouts.*;
+		import mx.core.UIComponent;
+
+		import mx.core.UIFTETextField;
+		import mx.modules.IModuleInfo;
+		import mx.modules.ModuleManager;
+		import mx.events.ModuleEvent;
+		import flash.events.MouseEvent;
+
+		private var dp:Array = [{ first: 'Main', last: 'App'}, {first: 'Loads', last: 'Modules' }];
+		
+		private var fontModuleInfo:IModuleInfo;
+
+		private function loadFontModule():void
+		{
+			fontModuleInfo = ModuleManager.getModule("assets/TLFEmbedTestFontModule.swf");
+			fontModuleInfo.addEventListener(ModuleEvent.READY, readyHandler);
+			fontModuleInfo.load();
+		}
+
+		private function readyHandler(event:Event):void
+		{
+			fontModuleInfo.factory.create();
+		}
+
+	]]>
+	</fx:Script>	    	
+<fx:Style>
+ 	@namespace mx "library://ns.adobe.com/flex/mx";
+	@namespace s "library://ns.adobe.com/flex/spark";	
+		
+		@font-face{
+			src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+			fontFamily: myVeraSpark;
+			embedAsCFF: true;
+		}
+		@font-face{
+			src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+			fontWeight: bold;
+			fontFamily: myVeraSpark;
+			embedAsCFF: true;
+		}
+
+		@font-face{
+			src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+			fontStyle: italic;
+			fontFamily: myVeraSpark;
+			embedAsCFF: true;
+		}
+		@font-face{
+			src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-BoldItalic.ttf");
+			fontWeight: bold;
+    			fontStyle: italic;
+			fontFamily: myVeraSpark;
+			embedAsCFF: true;
+		}
+	
+		global {
+		    fontFamily: "myVeraSpark";
+		    fontAntiAliasType: "normal";
+		}
+
+	 	
+</fx:Style>	
+
+	<s:layout> <s:VerticalLayout/> </s:layout>
+
+	<s:Button id="changeFonts" label="Change Font" click="pnl.setStyle('fontFamily', 'myCourier')"/>
+	<s:Panel id="pnl" title="Gumbo Main Panel" height="300"  rotation="-10">
+	<s:layout> <s:VerticalLayout/> </s:layout>
+	<s:TextArea id="gumbo_textArea" height="40" />
+	<s:Button id="gumbo_button" label="gumbo button" />
+	<mx:Button id="halo_button" label="halo button" textFieldClass="mx.core.UIFTETextField" />
+
+	<mx:DataGrid id="dg" initialize="dg.dataProvider=dp"  textFieldClass="mx.core.UIFTETextField" itemRenderer="mx.controls.dataGridClasses.FTEDataGridItemRenderer" height="80"/>
+
+	</s:Panel>
+</s:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFFontsApp.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFFontsApp.compile?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFFontsApp.compile (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFFontsApp.compile Mon Aug  6 20:21:26 2012
@@ -0,0 +1 @@
+-theme+=${flexlib}/projects/spark/MXFTEText.css
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFFontsApp.log.1
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFFontsApp.log.1?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFFontsApp.log.1 (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFFontsApp.log.1 Mon Aug  6 20:21:26 2012
@@ -0,0 +1,20 @@
+Warning: 'flash' has no property 'prototype'
+Warning: 'flash' has no property 'prototype'
+Hello from excludes at: Wed Jun 22 00:34:27 GMT-0700 2011
+excludes loadTryFile Wed Jun 22 00:34:27 GMT-0700 2011
+Exclude: try load from: file:///Users/aharui/Perforce/faramir/flex/qa/sdk/testsuites/mustella/tests/ExcludeListMac.txt
+Created new test output instance
+Excludes: Reading from file system at file:///Users/aharui/Perforce/faramir/flex/qa/sdk/testsuites/mustella/tests
+runid.properties ERROR handler with: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://localhost:80/runid.properties?0.373634568881243471308728067781"]
+timeout_plus is: 0
+LengthOfTestcases: 1
+sending: http://localhost:9999/testCaseLength?1 at: Wed Jun 22 00:34:29 GMT-0700 2011
+testComplete
+[Event type="open" bubbles=false cancelable=false eventPhase=2]
+ScriptComplete: completely done
+sending: http://localhost:9999/ScriptComplete?1 at: Wed Jun 22 00:34:29 GMT-0700 2011
+[Event type="open" bubbles=false cancelable=false eventPhase=2]
+[ProgressEvent type="progress" bubbles=false cancelable=false eventPhase=2 bytesLoaded=30 bytesTotal=0]
+[HTTPStatusEvent type="httpStatus" bubbles=false cancelable=false eventPhase=2 status=200 responseURL=null]
+[Event type="complete" bubbles=false cancelable=false eventPhase=2]
+aharui
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFFontsApp.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFFontsApp.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFFontsApp.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/TLFFontsApp.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 		
+		xmlns:s="library://ns.adobe.com/flex/spark" 
+		xmlns:mx="library://ns.adobe.com/flex/mx"
+		creationComplete="loadFontModule()"
+		width="800" height="600">
+	<fx:Script>
+	<![CDATA[
+
+		import spark.layouts.*;
+		import mx.core.UIComponent;
+
+		import mx.core.UIFTETextField;
+		import mx.modules.IModuleInfo;
+		import mx.modules.ModuleManager;
+		import mx.events.ModuleEvent;
+		import flash.events.MouseEvent;
+
+		private var dp:Array = [{ first: 'Main', last: 'App'}, {first: 'Loads', last: 'Modules' }];
+		
+		private var fontModuleInfo:IModuleInfo;
+
+		private function loadFontModule():void
+		{
+			fontModuleInfo = ModuleManager.getModule("assets/TLFEmbedTestFontModule.swf");
+			fontModuleInfo.addEventListener(ModuleEvent.READY, readyHandler);
+			fontModuleInfo.load();
+		}
+
+		private function readyHandler(event:Event):void
+		{
+			fontModuleInfo.factory.create();
+		}
+
+	]]>
+	</fx:Script>	    	
+	
+	<s:layout> <s:VerticalLayout/> </s:layout>
+
+	<s:Panel id="pnl" title="Gumbo Main Panel" height="300">
+	<s:layout> <s:VerticalLayout/> </s:layout>
+	<s:TextArea id="gumbo_textArea" />
+	<s:Button id="gumbo_button" label="change font" click="ml.child['pnl'].setStyle('fontFamily', 'myCourier')" />
+	<mx:Button id="halo_button" label="halo button" textFieldClass="mx.core.UIFTETextField" />
+
+	<mx:DataGrid id="dg" initialize="dg.dataProvider=dp" textFieldClass="mx.core.UIFTETextField" itemRenderer="mx.controls.dataGridClasses.FTEDataGridItemRenderer"/>
+
+	</s:Panel>
+
+	<mx:ModuleLoader id="ml" url="assets/TLFEmbedTestModule.swf" />
+
+</s:Application>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/assets/TLFEmbedTestFontModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/assets/TLFEmbedTestFontModule.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/assets/TLFEmbedTestFontModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/assets/TLFEmbedTestFontModule.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,43 @@
+<?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.
+
+-->
+<mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" height="600" width="500"
+    xmlns:s="library://ns.adobe.com/flex/spark">
+<fx:Script>
+<![CDATA[
+
+]]>
+</fx:Script>
+<fx:Style>
+@font-face {
+        src:url("../../../../../Assets/Fonts/Cousine/Cousine-Regular.ttf");
+		embedAsCFF: true;
+        fontFamily: myCourier;
+     }
+
+@font-face {
+        src:url("../../../../../Assets/Fonts/Cousine/Cousine-Bold.ttf");
+		embedAsCFF: true;
+		fontWeight: bold;
+        fontFamily: myCourier;
+     }
+
+</fx:Style>
+
+</mx:Module>

Added: incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/assets/TLFEmbedTestModule.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/assets/TLFEmbedTestModule.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/assets/TLFEmbedTestModule.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/assets/TLFEmbedTestModule.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,56 @@
+<?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.
+
+-->
+<mx:Module xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" 
+    xmlns:s="library://ns.adobe.com/flex/spark">
+<fx:Script>
+<![CDATA[
+import mx.core.UIFTETextField;
+
+private var dp:Array = [{ first: 'Flex', last: 'SDK'}, {first: 'Module', last: 'Controls' }]
+]]>
+</fx:Script>
+<fx:Style>
+@font-face {
+        src:url("../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Regular.ttf");
+		embedAsCFF: true;
+        fontFamily: myArial;
+     }
+
+@font-face {
+        src:url("../../../../../Assets/Fonts/PT_Serif/PT_Serif-Web-Bold.ttf");
+		embedAsCFF: true;
+		fontWeight: bold;
+        fontFamily: myArial;
+     }
+
+</fx:Style>
+
+<s:Panel id="pnl" scaleY="2" rotation="-10" fontFamily="myArial" title="Gumbo Panel">
+<s:layout> <s:VerticalLayout/> </s:layout>
+<s:TextArea id="gumbo_textArea" height="30"/>
+<s:Button id="gumbo_button" label="gumbo button" />
+<mx:Button id="halo_button" label="halo button" textFieldClass="mx.core.UIFTETextField" />
+
+<mx:DataGrid id="dg" editable="true" initialize="dg.dataProvider=dp" textFieldClass="mx.core.UIFTETextField" 
+			defaultDataGridItemRenderer="mx.controls.dataGridClasses.FTEDataGridItemRenderer" height="80"/>
+
+</s:Panel>
+
+</mx:Module>

Added: incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/pre_compile.sh
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/pre_compile.sh?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/pre_compile.sh (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/pre_compile.sh Mon Aug  6 20:21:26 2012
@@ -0,0 +1,31 @@
+#!/bin/sh
+################################################################################
+##
+##  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.
+##
+################################################################################
+cd assets
+
+echo "Removing previously compiled files..."
+rm -f `find . -name "*.swf"`
+
+
+echo "Compiling module SWFs..."
+$SDK_DIR/bin/mxmlc  -theme+=$SDK_DIR/frameworks/projects/spark/MXFTEText.css TLFEmbedTestFontModule.mxml
+$SDK_DIR/bin/mxmlc  -theme+=$SDK_DIR/frameworks/projects/spark/MXFTEText.css TLFEmbedTestModule.mxml
+
+
+

Propchange: incubator/flex/trunk/mustella/tests/Modules/Fonts/SWFs/pre_compile.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/baselines/fontsEmbedInModule_after.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/baselines/fontsEmbedInModule_after.png?rev=1369975&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/baselines/fontsEmbedInModule_after.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/baselines/fontsEmbedInModule_before.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/baselines/fontsEmbedInModule_before.png?rev=1369975&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/baselines/fontsEmbedInModule_before.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/baselines/useFontFromModule_after.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/baselines/useFontFromModule_after.png?rev=1369975&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/baselines/useFontFromModule_after.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/baselines/useFontFromModule_before.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/baselines/useFontFromModule_before.png?rev=1369975&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/baselines/useFontFromModule_before.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/switchFonts.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/switchFonts.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/switchFonts.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/switchFonts.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,57 @@
+<?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/Fonts/tests/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="TLFFontsApp.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+<fx:Script>
+<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+	}
+	]]>
+	</fx:Script>
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+
+<TestCase testID="fontsEmbedInModule" keywords="[TLF,Fonts,Module]" description="Test for font embeded in module being used at other locations in the application" >
+    <setup>
+	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="4"/>
+    </setup>
+    
+    <body>		
+	<CompareBitmap url="../tests/baselines/$testID_before.png" target="ml"   numColorVariances="20" ignoreMaxColorVariance="true">
+				<ConditionalValue os="mac" />
+			</CompareBitmap>
+	<DispatchMouseClickEvent target="gumbo_button" waitEvent="click" waitTarget="gumbo_button" />
+	<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="4"/>
+	<CompareBitmap url="../tests/baselines/$testID_after.png" target="ml"   numColorVariances="20" ignoreMaxColorVariance="true">
+				<ConditionalValue os="mac" />
+			</CompareBitmap>
+    </body>
+</TestCase>
+</testCases>
+
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/useFonts.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/useFonts.mxml?rev=1369975&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/useFonts.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Modules/Fonts/tests/useFonts.mxml Mon Aug  6 20:21:26 2012
@@ -0,0 +1,53 @@
+<?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/Fonts/tests/"  xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns="*" testSWF="TLFAppUsingFontFromModule.mxml">
+
+	<!-- this set of lines form a template that must be in each unit test -->
+	<fx:Script>
+	<![CDATA[
+		public static function init(o:DisplayObject):void
+		{
+		}
+		]]>
+	</fx:Script>
+
+	<fx:Metadata>
+		<![CDATA[
+		[Mixin]
+	]]>
+	</fx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<testCases>
+		<TestCase testID="useFontFromModule" keywords="[TLF,Fonts,Module]" description="Test for font embeded in module being used at other locations in the application" >
+		    <setup>
+			<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="4"/>
+		    </setup>
+		    <body>		
+			<CompareBitmap url="../tests/baselines/$testID_before.png" target="pnl"   numColorVariances="20" ignoreMaxColorVariance="true"/>
+			<DispatchMouseClickEvent target="changeFonts" waitEvent="click" waitTarget="changeFonts" />
+			<WaitForEvent target="stage" eventName="enterFrame" numExpectedEvents="4"/>
+			<CompareBitmap url="../tests/baselines/$testID_after.png" target="pnl"   numColorVariances="20" ignoreMaxColorVariance="true"/>
+
+		    </body>
+		</TestCase>
+	</testCases>
+
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Modules/RSLs/Integration/baselines/modulesRSLs_anotherDataGrid.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/RSLs/Integration/baselines/modulesRSLs_anotherDataGrid.png?rev=1369975&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Modules/RSLs/Integration/baselines/modulesRSLs_anotherDataGrid.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Modules/RSLs/Integration/baselines/modulesRSLs_comboModule.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/RSLs/Integration/baselines/modulesRSLs_comboModule.png?rev=1369975&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Modules/RSLs/Integration/baselines/modulesRSLs_comboModule.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Modules/RSLs/Integration/baselines/modulesRSLs_dataGrid.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Modules/RSLs/Integration/baselines/modulesRSLs_dataGrid.png?rev=1369975&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Modules/RSLs/Integration/baselines/modulesRSLs_dataGrid.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



Mime
View raw message