| <?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="gumbo/components/TextArea/Integration/" xmlns:fx="http://ns.adobe.com/mxml/2009" |
| xmlns="*" testSWF="TextArea_integration1.mxml"> |
| |
| <fx:Script> |
| <![CDATA[ |
| import mx.core.FlexGlobals; |
| public static function init(o:DisplayObject):void |
| { |
| |
| } |
| |
| |
| ]]> |
| </fx:Script> |
| |
| <fx:Metadata> |
| <![CDATA[ |
| [Mixin] |
| ]]> |
| </fx:Metadata> |
| |
| <!-- ################################################################## --> |
| <fx:Declarations> |
| </fx:Declarations> |
| <testCases> |
| <TestCase testID="TextArea_integration1_programmatic_focus" keywords="[TextArea,programmatic,focus,SDK-22385]" |
| description="regression test for bug SDK-22385"> |
| |
| <setup> |
| <ResetComponent target="programmaticGroup" waitEvent="updateComplete"/> |
| <RunCode code="application.programmaticGroup.addElement(application.insertButton);" waitEvent="updateComplete" waitTarget="programmaticGroup"/> |
| </setup> |
| <body> |
| <DispatchMouseClickEvent localX="2" localY="2" target="insertButton" waitTarget="programmaticGroup" waitEvent="updateComplete"/> |
| <!--<AssertEvent target="programmaticTA" eventName="focusIn" eventClass="flash.events::FocusEvent"/>--> |
| <!--<AssertEventPropertyValue propertyName="relatedObject" value="{application.programmaticTA}"/>--> |
| <AssertPropertyValue propertyName="hasFocus" value="true" target="programmaticTA"/> |
| </body> |
| </TestCase> |
| |
| <TestCase testID="TextArea_integration1_multi_line_insert_scroll" keywords="[TextArea,scrolling,multi,line,SDK-22705]" |
| description="regression test for bug SDK-22705"> |
| |
| <setup> |
| <ResetComponent target="scrollTextArea" waitEvent="updateComplete"/> |
| <SetProperty propertyName="heightInLines" value="2" target="scrollTextArea" waitEvent="updateComplete"/> |
| </setup> |
| <body> |
| <AssertMethodValue method="application.scrollTextArea.appendText('The\nQuick\nBrown\nFox\nJumps\nOver\nThe\nLazy\nDog:END');"/> |
| <Pause timeout="20"/> |
| <CompareBitmap url="../Integration/baselines/$testID.png" target="scrollTextArea" numColorVariances="5" maxColorVariance="1"/> |
| </body> |
| </TestCase> |
| </testCases> |
| </UnitTester> |