You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pe...@apache.org on 2012/08/06 21:22:31 UTC
svn commit: r1369933 [9/11] - in
/incubator/flex/trunk/mustella/tests/Application: ./ Application_HaloSkin/
Application_HaloSkin/Events/ Application_HaloSkin/Methods/
Application_HaloSkin/Properties/ Application_HaloSkin/SWFs/
Application_HaloSkin/SWFs...
Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/PercentConstraints_Application.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/PercentConstraints_Application.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/PercentConstraints_Application.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/Properties/PercentConstraints_Application.mxml Mon Aug 6 19:22:23 2012
@@ -0,0 +1,1018 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<UnitTester testDir="Application/Application_SparkSkin/Properties/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Application_PercentageSizedConstraints.mxml">
+ <mx:Script>
+ <![CDATA[
+
+ import comps.TextInputComp;
+ import comps.TextAreaComp;
+ import comps.DateChooserComp;
+ import comps.NumericStepperComp;
+ import comps.ButtonComp;
+
+ import mx.containers.utilityClasses.ConstraintColumn;
+ import mx.containers.utilityClasses.ConstraintRow;
+ import mx.controls.Button;
+ public static function init(o:DisplayObject):void
+ {
+ }
+
+ public var arr:Array;
+ public var col1:ConstraintColumn;
+ public var col2:ConstraintColumn;
+ public var row1:ConstraintRow;
+ public var row2:ConstraintRow;
+
+ ]]>
+ </mx:Script>
+ <mx:Metadata>
+ <![CDATA[
+ [Mixin]
+ ]]>
+ </mx:Metadata>
+
+ <testCases>
+
+ <!-- Tests for ConstraintColumns with width as percentages -->
+ <TestCase testID="constraintColumns_percentage_mxml" keywords="[constraintColumns, constraintRows, MXML]"
+ description="Verify the constraintColumns and constraintRows work correctly when their width/height is a percentage set in mxml">
+ <body>
+ <AssertPropertyValue target="getChildAt(0)" propertyName="width" value="300" />
+ <AssertPropertyValue target="getChildAt(0)" propertyName="x" value="10" />
+ <AssertPropertyValue target="getChildAt(1)" propertyName="height" value="185" />
+ <AssertPropertyValue target="getChildAt(1)" propertyName="y" value="10" />
+ <AssertPropertyValue target="getChildAt(2)" propertyName="width" value="280" />
+ <AssertPropertyValue target="getChildAt(2)" propertyName="height" value="170" />
+ <AssertPropertyValue target="getChildAt(2)" propertyName="y" value="20" />
+ <AssertPropertyValue target="getChildAt(2)" propertyName="x" value="20" />
+ </body>
+ </TestCase>
+ <TestCase testID="constraintColumns_percentage_changeAtRuntime" keywords="[percentage sized, Canvas, constraintColumn]"
+ description="ConstraintColumns with percentage width set at runtime">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ </setup>
+ <body>
+ <SetProperty target="constraintColumns.0" propertyName="percentWidth" value="40" waitEvent="updateComplete" waitTarget=""/>
+ <AssertPropertyValue target="getChildAt(0)" propertyName="width" value="340" />
+ <AssertPropertyValue target="getChildAt(0)" propertyName="x" value="10" />
+ </body>
+ </TestCase>
+ <TestCase testID="constraintColumns_percentage_changeCol2AtRuntime" keywords="[percentage sized, Canvas, constraintColumn]"
+ description="ConstraintColumns 2 with percentage width set at runtime">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ </setup>
+ <body>
+ <SetProperty target="constraintColumns.1" propertyName="percentWidth" value="40" waitEvent="updateComplete" waitTarget=""/>
+ <AssertPropertyValue target="getChildAt(0)" propertyName="width" value="260" />
+ <AssertPropertyValue target="getChildAt(0)" propertyName="x" value="10" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="constraintRows_percentage_changeAtRuntime" keywords="[Button, percentage sized, Canvas, constraintRow]"
+ description="ConstraintRows with percentage height set at runtime">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ </setup>
+ <body>
+ <SetProperty target="constraintRows.0" propertyName="percentHeight" value="50" waitEvent="updateComplete" waitTarget=""/>
+ <AssertPropertyValue target="getChildAt(1)" propertyName="height" value="260" />
+ <AssertPropertyValue target="getChildAt(1)" propertyName="y" value="10" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="constraintRows_percentage_changeRow2AtRuntime" keywords="[Button, percentage sized, Canvas, constraintRow]"
+ description="ConstraintRows with percentage height set at runtime">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ </setup>
+ <body>
+ <SetProperty target="constraintRows.1" propertyName="percentHeight" value="30" waitEvent="updateComplete" waitTarget=""/>
+ <AssertPropertyValue target="getChildAt(1)" propertyName="height" value="140" />
+ <AssertPropertyValue target="getChildAt(1)" propertyName="y" value="10" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="constraintRows_percentage_changeRow2AtRuntime_mac" keywords="[Button, percentage sized, Canvas, constraintRow]"
+ description="ConstraintRows with percentage height set at runtime">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ </setup>
+ <body>
+ <SetProperty target="constraintRows.1" propertyName="percentHeight" value="30" waitEvent="updateComplete" waitTarget=""/>
+ <AssertPropertyValue target="getChildAt(1)" propertyName="height" value="140" />
+ <AssertPropertyValue target="getChildAt(1)" propertyName="y" value="10" />
+ </body>
+ </TestCase>
+ <TestCase testID="constraintRowsColumns_percentage_changeAtRuntime" keywords="[percentage sized, Canvas, constraintRow]"
+ description="ConstraintRows and ConstraintColumns with percentage height and width set at runtime">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ </setup>
+ <body>
+ <SetProperty target="constraintColumns.0" propertyName="percentWidth" value="35" waitEvent="updateComplete" waitTarget=""/>
+ <SetProperty target="constraintRows.1" propertyName="percentHeight" value="40" waitEvent="updateComplete" waitTarget=""/>
+ <AssertPropertyValue target="getChildAt(2)" propertyName="height" value="155" />
+ <AssertPropertyValue target="getChildAt(2)" propertyName="y" value="20" />
+ <AssertPropertyValue target="getChildAt(2)" propertyName="width" value="300" />
+ <AssertPropertyValue target="getChildAt(2)" propertyName="x" value="20" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="constraintColumns_percentage_mxml_changeleftright" keywords="[Button, percentage sized, Canvas, constraintColumn]"
+ description="change left value on a component constrained by percentage-constraintColumns">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="textinput1" className="comps.TextInputComp" waitEvent="updateComplete" waitTarget="textinput1" />
+ </setup>
+ <body>
+ <SetStyle target="getChildAt(0)" styleName="left" value="col1:30" waitEvent="updateComplete" waitTarget="getChildAt(0)"/>
+ <AssertPropertyValue target="getChildAt(0)" propertyName="width" value="280" />
+ <AssertPropertyValue target="getChildAt(0)" propertyName="x" value="30" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="constraintRows_percentage_mxml_changetopbottom" keywords="[Button, percentage sized, Canvas, constraintRow]"
+ description="change top value on a component constrained by percentage-constraintRows">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="datechooser1" className="comps.DateChooserComp" waitEvent="updateComplete" waitTarget="datechooser1" />
+ </setup>
+ <body>
+ <SetStyle target="getChildAt(1)" styleName="top" value="row1:45" waitEvent="updateComplete" waitTarget="getChildAt(1)"/>
+ <AssertPropertyValue target="getChildAt(1)" propertyName="height" value="150" />
+ <AssertPropertyValue target="getChildAt(1)" propertyName="y" value="45" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="constraintColumnspercentage_rightCanvas" keywords="[Button, percentage sized, Canvas, constraintColumn]"
+ description="change right value on a component constrained by percentage-constraintColumns and the Canvas">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="textinput1" className="comps.TextInputComp" waitEvent="updateComplete" waitTarget="textinput1" />
+ </setup>
+ <body>
+ <SetStyle target="getChildAt(0)" styleName="right" value="25" waitEvent="updateComplete" waitTarget="getChildAt(0)"/>
+ <AssertPropertyValue target="getChildAt(0)" propertyName="width" value="365" />
+ <AssertPropertyValue target="getChildAt(0)" propertyName="x" value="10" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="constraintRowspercentage_bottomCanvas" keywords="[Button, percentage sized, Canvas, constraintRow]"
+ description="change bottom value on a component constrained by percentage-constraintRows and the Canvas">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="datechooser1" className="comps.DateChooserComp" waitEvent="updateComplete" waitTarget="datechooser1" />
+ </setup>
+ <body>
+ <SetStyle target="getChildAt(1)" styleName="bottom" value="50" waitEvent="updateComplete" waitTarget="getChildAt(1)"/>
+ <AssertPropertyValue target="getChildAt(1)" propertyName="height" value="240" />
+ <AssertPropertyValue target="getChildAt(1)" propertyName="y" value="10" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="Canvas_verticalCenter_mxml" keywords="[verticalCenter, percentage sized, Canvas, constraintColumn]"
+ description="Verify verticalCenter works when set in mxml and is relative to a constraintColumn">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="ns1" className="comps.NumericStepperComp" waitEvent="updateComplete" waitTarget="ns1" />
+ </setup>
+ <body>
+ <AssertPropertyValue target="getChildAt(3)" propertyName="y" valueExpression="value=Math.round((application.constraintRows[0].height/2) +5)" />
+ </body>
+ </TestCase>
+ <TestCase testID="Canvas_verticalCenter_zero" keywords="[verticalCenter, percentage sized, Canvas, constraintColumn]"
+ description="Verify verticalCenter works when set to zero and is relative to a constraintColumn">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="ns1" className="comps.NumericStepperComp" waitEvent="updateComplete" waitTarget="ns1" />
+ </setup>
+ <body>
+ <SetStyle target="getChildAt(3)" styleName="verticalCenter" valueExpression="value='row1:0'" waitTarget="" waitEvent="updateComplete" />
+ <AssertPropertyValue target="getChildAt(3)" propertyName="y" valueExpression="value=Math.round((application.constraintRows[0].height/2) -15)" />
+ </body>
+ </TestCase>
+ <TestCase testID="Canvas_verticalCenter_positive" keywords="[verticalCenter, percentage sized, Canvas, constraintColumn]"
+ description="Verify verticalCenter works when set at runtime and is relative to a constraintColumn">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="ns1" className="comps.NumericStepperComp" waitEvent="updateComplete" waitTarget="ns1" />
+ </setup>
+ <body>
+ <SetStyle target="getChildAt(3)" styleName="verticalCenter" valueExpression="value='row1:50'" waitTarget="" waitEvent="updateComplete" />
+ <AssertPropertyValue target="getChildAt(3)" propertyName="y" valueExpression="value=Math.round((application.constraintRows[0].height/2)+35)" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="Canvas_horizontalCenter_mxml" keywords="[horizontalCenter, percentage sized, Canvas, constraintColumn]"
+ description="Verify horizontalCenter works when set in mxml and is relative to a constraintColumn">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="button1" className="comps.ButtonComp" waitEvent="updateComplete" waitTarget="button1" />
+ </setup>
+ <body>
+ <AssertPropertyValue target="getChildAt(4)" propertyName="x" valueExpression="value=Math.round((application.constraintColumns[1].width/2)+125)" />
+ </body>
+ </TestCase>
+ <TestCase testID="Canvas_horizontalCenter_zero" keywords="[horizontalCenter, percentage sized, Canvas, constraintColumn]"
+ description="Verify horizontalCenter works when set to zero and is relative to a constraintColumn">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="button1" className="comps.ButtonComp" waitEvent="updateComplete" waitTarget="button1" />
+ </setup>
+ <body>
+ <SetStyle target="getChildAt(4)" styleName="horizontalCenter" valueExpression="value='col2:0'" waitTarget="" waitEvent="updateComplete" />
+ <AssertPropertyValue target="getChildAt(4)" propertyName="x" valueExpression="value=Math.round((application.constraintColumns[1].width/2) +95)" />
+ </body>
+ </TestCase>
+ <TestCase testID="Canvas_horizontalCenter_positive" keywords="[horizontalCenter, percentage sized, Canvas, constraintColumn]"
+ description="Verify horizontalCenter works when set at runtime and is relative to a constraintColumn">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="button1" className="comps.ButtonComp" waitEvent="updateComplete" waitTarget="button1" />
+ </setup>
+ <body>
+ <SetStyle target="getChildAt(4)" styleName="horizontalCenter" valueExpression="value='col2:50'" waitTarget="" waitEvent="updateComplete" />
+ <AssertPropertyValue target="getChildAt(4)" propertyName="x" valueExpression="value=Math.round((application.constraintColumns[1].width/2)+145)" />
+ </body>
+ </TestCase>
+<!-- horizontalCenter and verticalCenter tests -->
+ <TestCase testID="fixedColumns_PercentColumns_horizontalCenter_positive" keywords="[horizontalCenter, percentage sized]">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="button2" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="button2" />
+ </setup>
+ <body>
+ <SetProperty target="getChildAt(5)" propertyName="width" value="60" waitEvent="updateComplete" waitTarget=""/>
+ <SetStyle target="getChildAt(5)" styleName="horizontalCenter" valueExpression="value='col1:10'" waitEvent="updateComplete" waitTarget=""/>
+ <AssertPropertyValue target="getChildAt(5)" propertyName="x" value="40" />
+ </body>
+ </TestCase>
+ <TestCase testID="fixedColumns_PercentColumns_horizontalCenter_zero" keywords="[horizontalCenter, percentage sized]">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="button2" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="button2" />
+ </setup>
+ <body>
+ <SetProperty target="getChildAt(5)" propertyName="width" value="60" waitEvent="updateComplete" waitTarget=""/>
+ <SetStyle target="getChildAt(5)" styleName="horizontalCenter" valueExpression="value='col1:0'" waitEvent="updateComplete" waitTarget=""/>
+ <AssertPropertyValue target="getChildAt(5)" propertyName="x" value="30" />
+ </body>
+ </TestCase>
+ <TestCase testID="fixedColumns_PercentRows_verticalCenter_positive" keywords="[verticalCenter, percentage sized]">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="button2" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="button2" />
+ </setup>
+ <body>
+ <SetProperty target="getChildAt(5)" propertyName="height" value="60" waitEvent="updateComplete" waitTarget=""/>
+ <SetStyle target="getChildAt(5)" styleName="verticalCenter" valueExpression="value='row1:10'" waitEvent="updateComplete" waitTarget=""/>
+ <AssertPropertyValue target="getChildAt(5)" propertyName="y" value="18" />
+ </body>
+ </TestCase>
+ <TestCase testID="fixedColumns_PercentRows_verticalCenter_zero" keywords="[verticalCenter, percentage sized]">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="button2" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="button2" />
+ </setup>
+ <body>
+ <SetProperty target="getChildAt(5)" propertyName="height" value="60" waitEvent="updateComplete" waitTarget=""/>
+ <SetStyle target="getChildAt(5)" styleName="verticalCenter" valueExpression="value='row1:0'" waitEvent="updateComplete" waitTarget=""/>
+ <AssertPropertyValue target="getChildAt(5)" propertyName="y" value="8" />
+ </body>
+ </TestCase>
+ <TestCase testID="fixedColumns_PercentColumns_horizontalCenter_negative" keywords="[horizontalCenter, percentage sized]">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="button2" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="button2" />
+ </setup>
+ <body>
+ <SetProperty target="getChildAt(5)" propertyName="width" value="60" waitEvent="updateComplete" waitTarget=""/>
+ <SetStyle target="getChildAt(5)" styleName="horizontalCenter" valueExpression="value='col1:-10'" waitEvent="updateComplete" waitTarget=""/>
+ <AssertPropertyValue target="getChildAt(5)" propertyName="x" value="20" />
+ </body>
+ </TestCase>
+ <TestCase testID="fixedColumns_PercentRows_verticalCenter_negative" keywords="[verticalCenter, percentage sized]">
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="button2" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="button2" />
+ </setup>
+ <body>
+ <SetProperty target="getChildAt(5)" propertyName="height" value="60" waitEvent="updateComplete" waitTarget=""/>
+ <SetStyle target="getChildAt(5)" styleName="verticalCenter" valueExpression="value='row1:-10'" waitEvent="updateComplete" waitTarget=""/>
+ <AssertPropertyValue target="getChildAt(5)" propertyName="y" value="-2" />
+ </body>
+ </TestCase>
+ <!-- minWidth/maxWidth/minHeight/maxHeight -->
+ <TestCase testID="percentRows_minHeight_basic" keywords="[minHeight, ConstraintRow, percentage sized]"
+ description="Ensure that minHeight works for percentage sized rows" >
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="datechooser1" className="comps.DateChooserComp" waitEvent="updateComplete" waitTarget="datechooser1" />
+ <ResetComponent target="textarea1" className="comps.TextAreaComp" waitEvent="updateComplete" waitTarget="textarea1" />
+ <ResetComponent target="ns1" className="comps.NumericStepperComp" waitEvent="updateComplete" waitTarget="ns1" />
+ </setup>
+ <body>
+ <SetProperty target="constraintRows.0" propertyName="minHeight" value="100" waitEvent="updateComplete" waitTarget=""/>
+ <AssertPropertyValue target="constraintRows.0" propertyName="height" value="100" />
+ <AssertPropertyValue target="getChildAt(1)" propertyName="height" value="210" />
+ <AssertPropertyValue target="getChildAt(2)" propertyName="height" value="195" />
+ <AssertPropertyValue target="getChildAt(3)" propertyName="y" valueExpression="value=Math.round((100/2) + 20 - 15)" />
+ </body>
+ </TestCase>
+ <TestCase testID="percentColumns_minWidth_basic" keywords="[minWidth, ConstraintColumn, percentage sized]"
+ description="Ensure that minWidth works for percentage sized columns" >
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="textinput1" className="comps.TextInputComp" waitEvent="updateComplete" waitTarget="textinput1" />
+ <ResetComponent target="textarea1" className="comps.TextAreaComp" waitEvent="updateComplete" waitTarget="textarea1" />
+ <ResetComponent target="button1" className="comps.ButtonComp" waitEvent="updateComplete" waitTarget="button1" />
+ </setup>
+ <body>
+ <SetProperty target="constraintColumns.1" propertyName="minWidth" value="250" waitEvent="updateComplete" waitTarget=""/>
+ <AssertPropertyValue target="constraintColumns.1" propertyName="width" value="250" />
+ <AssertPropertyValue target="getChildAt(0)" propertyName="width" value="350" />
+ <AssertPropertyValue target="getChildAt(2)" propertyName="width" value="330" />
+ <AssertPropertyValue target="getChildAt(4)" propertyName="x" valueExpression="value=Math.round(120 + (250/2) + 30 - 25)" />
+ </body>
+ </TestCase>
+ <TestCase testID="percentRows_minHeight_overrideHeight" keywords="[minHeight, ConstraintRow, percentage sized]"
+ description="Ensure that minHeight works for percentage sized rows" >
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="button2" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="button2" />
+ </setup>
+ <body>
+ <SetProperty target="constraintRows.0" propertyName="minHeight" value="100" waitEvent="updateComplete" waitTarget=""/>
+ <SetProperty target="getChildAt(5)" propertyName="height" value="40" waitEvent="updateComplete" waitTarget="getChildAt(5)"/>
+ <SetStyle target="getChildAt(5)" styleName="top" valueExpression="value='row1:5'" waitEvent="updateComplete" waitTarget=""/>
+ <SetStyle target="getChildAt(5)" styleName="bottom" valueExpression="value='row1:10'" waitEvent="updateComplete" waitTarget=""/>
+ <AssertPropertyValue target="getChildAt(5)" propertyName="height" value="85" />
+ </body>
+ </TestCase>
+ <TestCase testID="percentColumns_minWidth_overrideWidth" keywords="[minWidth, ConstraintColumn, percentage sized]"
+ description="Ensure that minWidth works for percentage sized columns" >
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="button2" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="button2" />
+ </setup>
+ <body>
+ <SetProperty target="constraintColumns.0" propertyName="minWidth" value="150" waitEvent="updateComplete" waitTarget=""/>
+ <SetProperty target="getChildAt(5)" propertyName="width" value="50" waitEvent="updateComplete" waitTarget="getChildAt(5)"/>
+ <SetStyle target="getChildAt(5)" styleName="left" valueExpression="value='col1:20'" waitEvent="updateComplete" waitTarget=""/>
+ <SetStyle target="getChildAt(5)" styleName="right" valueExpression="value='col1:10'" waitEvent="updateComplete" waitTarget=""/>
+ <AssertPropertyValue target="getChildAt(5)" propertyName="width" value="120" />
+ </body>
+ </TestCase>
+ <TestCase testID="percentRows_maxHeight_basic" keywords="[maxHeight, ConstraintRow, percentage sized]"
+ description="Ensure that maxHeight works for percentage sized rows" >
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="datechooser1" className="comps.DateChooserComp" waitEvent="updateComplete" waitTarget="datechooser1" />
+ <ResetComponent target="ns1" className="comps.NumericStepperComp" waitEvent="updateComplete" waitTarget="ns1" />
+ </setup>
+ <body>
+ <SetProperty target="constraintRows.0" propertyName="maxHeight" value="100" waitEvent="updateComplete" waitTarget=""/>
+ <SetProperty target="constraintRows.0" propertyName="percentHeight" value="50" waitEvent="updateComplete" waitTarget=""/>
+ <AssertPropertyValue target="constraintRows.0" propertyName="height" value="100" />
+ <AssertPropertyValue target="getChildAt(1)" propertyName="height" value="210" />
+ <AssertPropertyValue target="getChildAt(3)" propertyName="y" valueExpression="value=Math.round((100/2) + 20 - 15)" />
+ </body>
+ </TestCase>
+ <TestCase testID="percentColumns_maxWidth_basic" keywords="[maxWidth, ConstraintColumn, percentage sized]"
+ description="Ensure that maxWidth works for percentage sized columns" >
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="textinput1" className="comps.TextInputComp" waitEvent="updateComplete" waitTarget="textinput1" />
+ <ResetComponent target="textarea1" className="comps.TextAreaComp" waitEvent="updateComplete" waitTarget="textarea1" />
+ <ResetComponent target="button1" className="comps.ButtonComp" waitEvent="updateComplete" waitTarget="button1" />
+ </setup>
+ <body>
+ <SetProperty target="constraintColumns.1" propertyName="maxWidth" value="150" waitEvent="updateComplete" waitTarget=""/>
+ <AssertPropertyValue target="constraintColumns.1" propertyName="width" value="150" />
+ <AssertPropertyValue target="getChildAt(0)" propertyName="width" value="250" />
+ <AssertPropertyValue target="getChildAt(2)" propertyName="width" value="230" />
+ <AssertPropertyValue target="getChildAt(4)" propertyName="x" valueExpression="value=Math.round(120 + (150/2) + 30 - 25)" />
+ </body>
+ </TestCase>
+ <TestCase testID="percentRows_maxHeight_spillingComponent" keywords="[maxHeight, ConstraintRow, percentage sized]"
+ description="Ensure that maxHeight works for percentage sized rows" >
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="button2" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="button2" />
+ </setup>
+ <body>
+ <SetProperty target="constraintRows.0" propertyName="maxHeight" value="100" waitEvent="updateComplete" waitTarget=""/>
+ <SetProperty target="constraintRows.0" propertyName="percentHeight" value="50" waitEvent="updateComplete" waitTarget=""/>
+ <SetStyle target="getChildAt(5)" styleName="top" valueExpression="value='row1:50'" waitEvent="updateComplete" waitTarget=""/>
+ <SetProperty target="getChildAt(5)" propertyName="height" value="90" waitEvent="updateComplete" waitTarget=""/>
+ <AssertPropertyValue target="constraintRows.0" propertyName="height" value="100" />
+ <AssertPropertyValue target="getChildAt(5)" propertyName="height" value="90" />
+ <AssertPropertyValue target="getChildAt(5)" propertyName="y" value="50" />
+ </body>
+ </TestCase>
+ <TestCase testID="percentColumns_maxWidth_spillingComponent" keywords="[maxWidth, ConstraintColumn, percentage sized]"
+ description="Ensure that maxWidth works for percentage sized columns" >
+ <setup>
+ <RunCode code="arr = []" />
+ <RunCode code="row1 = new ConstraintRow()" />
+ <RunCode code="row1.id = 'row1'" />
+ <RunCode code="row1.percentHeight = 25" />
+ <RunCode code="arr.push(row1);" />
+ <RunCode code="row2 = new ConstraintRow();" />
+ <RunCode code="row2.id = 'row2';" />
+ <RunCode code="row2.percentHeight = 45;" />
+ <RunCode code="arr.push(row2);" />
+ <RunCode code="application.constraintRows = arr;" />
+ <RunCode code="arr = []" />
+ <RunCode code="col1 = new ConstraintColumn()" />
+ <RunCode code="col1.id = 'col1'" />
+ <RunCode code="col1.percentWidth = 30" />
+ <RunCode code="arr.push(col1);" />
+ <RunCode code="col2 = new ConstraintColumn();" />
+ <RunCode code="col2.id = 'col2';" />
+ <RunCode code="col2.percentWidth = 50;" />
+ <RunCode code="arr.push(col2);" />
+ <RunCode code="application.constraintColumns = arr;" />
+ <ResetComponent target="button2" className="mx.controls.Button" waitEvent="updateComplete" waitTarget="button2" />
+ </setup>
+ <body>
+ <SetProperty target="constraintColumns.0" propertyName="maxWidth" value="100" waitEvent="updateComplete" waitTarget=""/>
+ <SetStyle target="getChildAt(5)" styleName="left" valueExpression="value='col1:50'" waitEvent="updateComplete" waitTarget=""/>
+ <SetProperty target="getChildAt(5)" propertyName="width" value="90" waitEvent="updateComplete" waitTarget=""/>
+ <AssertPropertyValue target="constraintColumns.0" propertyName="width" value="100" />
+ <AssertPropertyValue target="getChildAt(5)" propertyName="width" value="90" />
+ <AssertPropertyValue target="getChildAt(5)" propertyName="x" value="50" />
+ </body>
+ </TestCase>
+ </testCases>
+</UnitTester>
Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/ApplicationApp1.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/ApplicationApp1.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/ApplicationApp1.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/ApplicationApp1.mxml Mon Aug 6 19:22:23 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:Application backgroundColor="0xFFFFFF" width="800" height="600"
+xmlns:mx="http://www.adobe.com/2006/mxml"
+frameRate="136"
+scriptRecursionLimit="50"
+scriptTimeLimit="5"
+usePreloader="false"
+viewSourceURL="http://www.adobe.com" >
+
+<mx:Script>
+<![CDATA[
+
+]]>
+</mx:Script>
+
+<!-- Note that we cannot call ResetComponent on a docked ACB, so don't set dock=true. -->
+<mx:ApplicationControlBar id="acb1" />
+
+</mx:Application>
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/ApplicationApp2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/ApplicationApp2.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/ApplicationApp2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/ApplicationApp2.mxml Mon Aug 6 19:22:23 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:Application backgroundColor="0xFFFFFF" width="800" height="600"
+xmlns:mx="http://www.adobe.com/2006/mxml" >
+
+<!--
+Note: This file is used for testing default properties. Don't
+set any other properties in MXML!
+-->
+
+<mx:Script>
+<![CDATA[
+
+]]>
+</mx:Script>
+
+</mx:Application>
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/ApplicationApp3.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/ApplicationApp3.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/ApplicationApp3.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/ApplicationApp3.mxml Mon Aug 6 19:22:23 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:Application backgroundColor="0xFFFFFF" width="800" height="600"
+xmlns:mx="http://www.adobe.com/2006/mxml">
+
+<mx:Script>
+<![CDATA[
+
+]]>
+</mx:Script>
+
+<mx:Box id="bx1" width="200" height="200" borderStyle="solid" borderColor="0x000000" >
+ <mx:SWFLoader id="sl1" width="100%" height="100%" />
+</mx:Box>
+
+</mx:Application>
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/ApplicationApp4.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/ApplicationApp4.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/ApplicationApp4.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/ApplicationApp4.mxml Mon Aug 6 19:22:23 2012
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<comps:CustomApp backgroundColor="0xFFFFFF" width="800" height="600"
+xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:comps="comps.*">
+
+<mx:Script>
+<![CDATA[
+
+ public function verifyAppCompleteEvent():Boolean{
+ var i:int;
+ var initializeIndex:int = -1;
+ var addedToStageIndex:int = -1;
+ var appCompleteIndex:int = -1;
+ var ret:Boolean = false;
+
+ initializeIndex = eventArray.indexOf("initialize");
+ addedToStageIndex = eventArray.indexOf("addedToStage");
+ appCompleteIndex = eventArray.indexOf("applicationComplete");
+
+ if( initializeIndex > -1 &&
+ addedToStageIndex > -1 &&
+ appCompleteIndex > -1 &&
+ initializeIndex < appCompleteIndex &&
+ addedToStageIndex < appCompleteIndex &&
+ inDisplayList){
+
+ ret = true;
+ }else{
+ trace("initializeIndex: " + initializeIndex);
+ trace("addedToStageIndex: " + addedToStageIndex);
+ trace("appCompleteIndex: " + appCompleteIndex);
+ trace("initializeIndex: " + initializeIndex);
+ trace("addedToStageIndex: " + addedToStageIndex);
+ trace("inDisplayList: " + inDisplayList);
+ }
+
+ return ret;
+ }
+
+]]>
+</mx:Script>
+
+<mx:HTTPService id="theService" rootURL="hotdog" destination="home" />
+
+</comps:CustomApp>
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/ApplicationApp5.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/ApplicationApp5.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/ApplicationApp5.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/ApplicationApp5.mxml Mon Aug 6 19:22:23 2012
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<mx:Application backgroundColor="0xFFFFFF" width="800" height="600"
+xmlns:mx="http://www.adobe.com/2006/mxml">
+
+<mx:Script>
+<![CDATA[
+
+ import mx.core.Application;
+
+ public var creationQueueArray:Array;
+
+ public function populateCreationQueue1():void{
+ addToCreationQueue(bx3);
+ addToCreationQueue(bx1);
+ addToCreationQueue(bx2);
+ }
+
+ public function populateCreationQueue2():void{
+ addToCreationQueue(bx4, 1);
+ addToCreationQueue(bx5, 3);
+ addToCreationQueue(bx6, 2);
+ }
+
+ public function verifyCreation(first:String, second:String, third:String):Boolean{
+
+ var ret:Boolean = false;
+
+ if(
+ creationQueueArray[0] == first &&
+ creationQueueArray[1] == second &&
+ creationQueueArray[2] == third){
+ ret = true;
+ }else{
+ trace("Error! Actual: " + creationQueueArray);
+ }
+
+ return ret;
+ }
+
+]]>
+</mx:Script>
+
+<mx:Box id="bx1" creationComplete="creationQueueArray.push('bx1')" creationPolicy="none" >
+ <mx:Spacer />
+</mx:Box>
+
+<mx:Box id="bx2" creationComplete="creationQueueArray.push('bx2')" creationPolicy="none" >
+ <mx:Spacer />
+</mx:Box>
+
+<mx:Box id="bx3" creationComplete="creationQueueArray.push('bx3')" creationPolicy="none" >
+ <mx:Spacer />
+</mx:Box>
+
+<mx:Box id="bx4" creationComplete="creationQueueArray.push('bx4')" creationPolicy="none" >
+ <mx:Spacer />
+</mx:Box>
+
+<mx:Box id="bx5" creationComplete="creationQueueArray.push('bx5')" creationPolicy="none" >
+ <mx:Spacer />
+</mx:Box>
+
+<mx:Box id="bx6" creationComplete="creationQueueArray.push('bx6')" creationPolicy="none" >
+ <mx:Spacer />
+</mx:Box>
+
+</mx:Application>
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_Binding_ExplicitConstraints.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_Binding_ExplicitConstraints.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_Binding_ExplicitConstraints.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_Binding_ExplicitConstraints.mxml Mon Aug 6 19:22:23 2012
@@ -0,0 +1,44 @@
+<?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="600" height="500">
+
+ <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:Canvas id="canvas2" width="400" height="300" backgroundColor="0x000000">
+ <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:Canvas>
+
+ </mx:Application>
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_Binding_PercentConstraints.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_Binding_PercentConstraints.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_Binding_PercentConstraints.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_Binding_PercentConstraints.mxml Mon Aug 6 19:22:23 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 xmlns:mx="http://www.adobe.com/2006/mxml" width="600" height="500">
+
+ <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:Canvas id="canvas4" width="400" height="300" backgroundColor="0x22DDFF">
+ <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:Canvas>
+
+
+</mx:Application>
\ No newline at end of file
Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ContentSizedConstraints.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ContentSizedConstraints.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ContentSizedConstraints.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ContentSizedConstraints.mxml Mon Aug 6 19:22:23 2012
@@ -0,0 +1,39 @@
+<?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="400" height="300"
+ layout="absolute" xmlns:comps="comps.*">
+
+ <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>
+
+ <comps:TextAreaComp2 id="textarea1" />
+ <comps:ComboBoxComp id="combo1" />
+ <comps:NumericStepperComp2 id="numeric1" />
+ <comps:DateChooserComp2 id="datechooser1" />
+ <comps:ButtonComp2 id="button1"/>
+ </mx:Application>
Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test1.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test1.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test1.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test1.mxml Mon Aug 6 19:22:23 2012
@@ -0,0 +1,33 @@
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" >
+
+<mx:Style>
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+ fontWeight: bold;
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+ fontStyle: italic;
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+ global{
+ fontFamily: EmbeddedVerdana;
+ fontAntiAliasType: normal;
+ }
+</mx:Style>
+
+<mx:Box width="10" height="10" borderStyle="solid" borderColor="0" />
+
+</mx:Application>
Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test2.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test2.mxml Mon Aug 6 19:22:23 2012
@@ -0,0 +1,33 @@
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" >
+
+<mx:Style>
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+ fontWeight: bold;
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+ fontStyle: italic;
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+ global{
+ fontFamily: EmbeddedVerdana;
+ fontAntiAliasType: normal;
+ }
+</mx:Style>
+
+<mx:Box width="10" height="10" borderStyle="solid" borderColor="0" />
+
+</mx:Application>
Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test3.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test3.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test3.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test3.mxml Mon Aug 6 19:22:23 2012
@@ -0,0 +1,33 @@
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" >
+
+<mx:Style>
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+ fontWeight: bold;
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+ fontStyle: italic;
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+ global{
+ fontFamily: EmbeddedVerdana;
+ fontAntiAliasType: normal;
+ }
+</mx:Style>
+
+<mx:Box width="10" height="10" borderStyle="solid" borderColor="0" />
+
+</mx:Application>
Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test4.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test4.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test4.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test4.mxml Mon Aug 6 19:22:23 2012
@@ -0,0 +1,33 @@
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" >
+
+<mx:Style>
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+ fontWeight: bold;
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+ fontStyle: italic;
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+ global{
+ fontFamily: EmbeddedVerdana;
+ fontAntiAliasType: normal;
+ }
+</mx:Style>
+
+<mx:Box width="10" height="10" borderStyle="solid" borderColor="0" />
+
+</mx:Application>
Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test5.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test5.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test5.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test5.mxml Mon Aug 6 19:22:23 2012
@@ -0,0 +1,33 @@
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" >
+
+<mx:Style>
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+ fontWeight: bold;
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+ fontStyle: italic;
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+ global{
+ fontFamily: EmbeddedVerdana;
+ fontAntiAliasType: normal;
+ }
+</mx:Style>
+
+<mx:Box width="10" height="10" borderStyle="solid" borderColor="0" />
+
+</mx:Application>
Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test6.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test6.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test6.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyBlur_Test6.mxml Mon Aug 6 19:22:23 2012
@@ -0,0 +1,33 @@
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" >
+
+<mx:Style>
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+ fontWeight: bold;
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+ fontStyle: italic;
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+ global{
+ fontFamily: EmbeddedVerdana;
+ fontAntiAliasType: normal;
+ }
+</mx:Style>
+
+<mx:Box width="10" height="10" borderStyle="solid" borderColor="0" />
+
+</mx:Application>
Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyColor_Test1.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyColor_Test1.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyColor_Test1.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyColor_Test1.mxml Mon Aug 6 19:22:23 2012
@@ -0,0 +1,31 @@
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" >
+
+<mx:Style>
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+ fontWeight: bold;
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+ fontStyle: italic;
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+ global{
+ fontFamily: EmbeddedVerdana;
+ fontAntiAliasType: normal;
+ }
+</mx:Style>
+
+</mx:Application>
Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyColor_Test2.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyColor_Test2.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyColor_Test2.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyColor_Test2.mxml Mon Aug 6 19:22:23 2012
@@ -0,0 +1,31 @@
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" >
+
+<mx:Style>
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+ fontWeight: bold;
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+ fontStyle: italic;
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+ global{
+ fontFamily: EmbeddedVerdana;
+ fontAntiAliasType: normal;
+ }
+</mx:Style>
+
+</mx:Application>
Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyColor_Test3.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyColor_Test3.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyColor_Test3.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyColor_Test3.mxml Mon Aug 6 19:22:23 2012
@@ -0,0 +1,31 @@
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" >
+
+<mx:Style>
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+ fontWeight: bold;
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+ fontStyle: italic;
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+ global{
+ fontFamily: EmbeddedVerdana;
+ fontAntiAliasType: normal;
+ }
+</mx:Style>
+
+</mx:Application>
Added: incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyColor_Test4.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyColor_Test4.mxml?rev=1369933&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyColor_Test4.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Application/Application_SparkSkin/SWFs/Application_ModalTransparencyColor_Test4.mxml Mon Aug 6 19:22:23 2012
@@ -0,0 +1,31 @@
+<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" >
+
+<mx:Style>
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+ fontWeight: bold;
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+ @font-face{
+ src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+ fontStyle: italic;
+ fontFamily: myVerdana;
+ embedAsCFF: false;
+ }
+
+ global{
+ fontFamily: EmbeddedVerdana;
+ fontAntiAliasType: normal;
+ }
+</mx:Style>
+
+</mx:Application>