| <?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="mobile/components/TextInput/Properties/" xmlns="*" |
| xmlns:fx="http://ns.adobe.com/mxml/2009" |
| xmlns:mx="library://ns.adobe.com/flex/mx" |
| xmlns:s="library://ns.adobe.com/flex/spark" |
| testSWF="TextInput1.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 --> |
| |
| <fx:Script> |
| <![CDATA[ |
| import components.*; |
| import mx.core.FlexGlobals; |
| ]]> |
| </fx:Script> |
| |
| <testCases> |
| |
| <!-- ******************** text ********************* --> |
| <TestCase testID="Gumbo_TextInput_text_property_bindable" description="Checks the text property on a TextInput control is bindable" keywords="[TextInput, text, property]"> |
| <setup> |
| <!--<RunCode code="FlexGlobals.topLevelApplication.doPopAll()" waitTarget="navigator" waitEvent="viewChangeComplete" /> |
| <RunCode code="FlexGlobals.topLevelApplication.navigator.pushView(components.TextInputView4)" waitTarget="navigator" waitEvent="viewChangeComplete" />--> |
| <ResetComponent target="tic4" className="components.TextInputComp4" waitEvent="updateComplete" /> |
| </setup> |
| <body> |
| <SetProperty target="tic4.ti1" propertyName="text" value="jello world" waitEvent="updateComplete" waitTarget="tic4.ti2"/> |
| <AssertPropertyValue target="tic4.ti2" propertyName="text" value="jello world" /> |
| </body> |
| </TestCase> |
| |
| <!-- ******************** height ******************** --> |
| <TestCase testID="Gumbo_TextInput_height_property_bindable" description="Checks the height property on a TextInput control is bindable" keywords="[TextInput, height, property]"> |
| <setup> |
| <!--<RunCode code="FlexGlobals.topLevelApplication.doPopAll()" waitTarget="navigator" waitEvent="viewChangeComplete" /> |
| <RunCode code="FlexGlobals.topLevelApplication.navigator.pushView(components.TextInputView4)" waitTarget="navigator" waitEvent="viewChangeComplete" />--> |
| <ResetComponent target="tic4" className="components.TextInputComp4" waitEvent="updateComplete" /> |
| </setup> |
| <body> |
| <SetProperty target="tic4.ti1" propertyName="height" value="100" waitEvent="updateComplete" waitTarget="tic4.ti2"/> |
| <AssertPropertyValue target="tic4.ti2" propertyName="height" value="100" /> |
| </body> |
| </TestCase> |
| |
| <!-- ******************** width ******************** --> |
| <TestCase testID="Gumbo_TextInput_width_property_bindable" description="Checks the width property on a TextInput control is bindable" keywords="[TextInput, width, property]"> |
| <setup> |
| <!--<RunCode code="FlexGlobals.topLevelApplication.doPopAll()" waitTarget="navigator" waitEvent="viewChangeComplete" /> |
| <RunCode code="FlexGlobals.topLevelApplication.navigator.pushView(components.TextInputView4)" waitTarget="navigator" waitEvent="viewChangeComplete" />--> |
| <ResetComponent target="tic4" className="components.TextInputComp4" waitEvent="updateComplete" /> |
| </setup> |
| <body> |
| <SetProperty target="tic4.ti1" propertyName="width" value="40" waitEvent="resize" waitTarget="tic4.ti2"/> |
| <AssertPropertyValue target="tic4.ti2" propertyName="width" value="40" /> |
| </body> |
| </TestCase> |
| |
| </testCases> |
| </UnitTester> |
| |
| |
| |