| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <UnitTester testDir="Application/Application_SparkSkin/Properties/" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Application_Binding_ExplicitConstraints.mxml"> |
| |
| <mx:Script> |
| <![CDATA[ |
| |
| public static function init(o:DisplayObject):void |
| { |
| |
| } |
| |
| |
| ]]> |
| </mx:Script> |
| |
| <mx:Metadata> |
| <![CDATA[ |
| [Mixin] |
| ]]> |
| </mx:Metadata> |
| |
| <testCases> |
| <TestCase testID="ConstraintColumn_Binding_width_mxml" description="Test that you can bind to the ConstraintColumn width property" keywords="[Binding, width, ConstraintColumn]"> |
| <body> |
| <AssertPropertyValue value="100" propertyName="width" target="col3" /> |
| <AssertPropertyValue value="200" propertyName="width" target="col4" /> |
| </body> |
| </TestCase> |
| <TestCase testID="ConstraintColumn_Binding_width_runtime" description="Test that you can bind to the ConstraintColumn width property and change |
| it at runtime" keywords="[Binding, width, ConstraintColumn]"> |
| <body> |
| <SetProperty propertyName="width" value="140" target="col1" /> |
| <SetProperty propertyName="width" value="240" target="col2" /> |
| <AssertPropertyValue value="140" propertyName="width" target="col3" /> |
| <AssertPropertyValue value="240" propertyName="width" target="col4" /> |
| </body> |
| </TestCase> |
| <TestCase testID="ConstraintRow_Binding_height_mxml" description="Test that you can bind to the ConstraintRow height property" keywords="[Binding, height, ConstraintRow]"> |
| <body> |
| <AssertPropertyValue value="200" propertyName="height" target="row3" /> |
| <AssertPropertyValue value="150" propertyName="height" target="row4" /> |
| </body> |
| </TestCase> |
| <TestCase testID="ConstraintRow_Binding_height_runtime" description="Test that you can bind to the ConstraintRow height property and change |
| it at runtime" keywords="[Binding, height, ConstraintRow]"> |
| <body> |
| <SetProperty propertyName="height" value="140" target="row1" /> |
| <SetProperty propertyName="height" value="240" target="row2" /> |
| <AssertPropertyValue value="140" propertyName="height" target="row3" /> |
| <AssertPropertyValue value="240" propertyName="height" target="row4" /> |
| </body> |
| </TestCase> |
| </testCases> |
| |
| |
| </UnitTester> |