| <?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/RichEditableText/Styles/" xmlns:mx="http://www.adobe.com/2006/mxml" |
| xmlns="*" testSWF="RichEditableText_Basic006.mxml"> |
| |
| <mx:Script> |
| <![CDATA[ |
| |
| public static function init(o:DisplayObject):void |
| { |
| |
| } |
| |
| |
| ]]> |
| </mx:Script> |
| |
| <mx:Metadata> |
| <![CDATA[ |
| [Mixin] |
| ]]> |
| </mx:Metadata> |
| |
| <!-- ################################################################## --> |
| |
| |
| <mx:Script> |
| <![CDATA[ |
| |
| import mx.core.FlexGlobals; |
| import comps.*; |
| |
| |
| ]]> |
| </mx:Script> |
| |
| <testCases> |
| |
| <!-- Bugs |
| --> |
| |
| |
| |
| <TestCase testID="RichEditableText_Style_setFormatOfRange" description="test style linebreak" keywords="[RichEditableText,Style,setFormatOfRange]"> |
| <setup> |
| <ResetComponent target="myText" className="spark.components.RichEditableText" waitTarget="myText" waitEvent="updateComplete" /> |
| <SetProperty target="myText" propertyName="x" value="10" waitTarget="myText" waitEvent="updateComplete" /> |
| <SetProperty target="myText" propertyName="y" value="10" waitTarget="myText" waitEvent="updateComplete" /> |
| <SetProperty target="myText" propertyName="width" value="150" waitTarget="myText" waitEvent="updateComplete" /> |
| <SetProperty target="myText" propertyName="height" value="500" waitTarget="myText" waitEvent="updateComplete" /> |
| <RunCode code="FlexGlobals.topLevelApplication.myText.setFocus()" waitEvent="focusIn" waitTarget="myText" /> |
| |
| </setup> |
| <body> |
| <DispatchKeyEvent char="Lorem ipsum dolor sit amet" waitTarget="myText" waitEvent="updateComplete" /> |
| <DispatchKeyEvent keys="[ENTER]" waitTarget="myText" waitEvent="updateComplete"/> |
| <DispatchKeyEvent keys="[ENTER]" waitTarget="myText" waitEvent="updateComplete"/> |
| |
| <DispatchMouseEvent target="underlineToggle" localX="5" localY="5" type="rollOver" /> |
| <DispatchMouseClickEvent target="underlineToggle" localX="5" localY="5" waitEvent="updateComplete" waitTarget="underlineToggle"/> |
| <DispatchKeyEvent char="Lorem ipsum dolor sit amet" waitTarget="myText" waitEvent="updateComplete"/> |
| <DispatchKeyEvent keys="[ENTER]" waitTarget="myText" waitEvent="updateComplete"/> |
| <DispatchKeyEvent keys="[ENTER]" waitTarget="myText" waitEvent="updateComplete"/> |
| |
| <DispatchMouseEvent target="strikethroughToggle" localX="5" localY="5" type="rollOver" /> |
| <DispatchMouseClickEvent target="strikethroughToggle" localX="5" localY="5" waitEvent="updateComplete" waitTarget="strikethroughToggle"/> |
| <DispatchKeyEvent char="Lorem ipsum dolor sit amet" waitTarget="myText" waitEvent="updateComplete" /> |
| <DispatchKeyEvent keys="[ENTER]" waitTarget="myText" waitEvent="updateComplete"/> |
| <DispatchKeyEvent keys="[ENTER]" waitTarget="myText" waitEvent="updateComplete"/> |
| |
| <DispatchMouseEvent target="underlineToggle" localX="5" localY="5" type="rollOver" /> |
| <DispatchMouseClickEvent target="underlineToggle" localX="5" localY="5" waitEvent="updateComplete" waitTarget="underlineToggle"/> |
| <DispatchMouseEvent target="strikethroughToggle" localX="5" localY="5" type="rollOver" /> |
| <DispatchMouseClickEvent target="strikethroughToggle" localX="5" localY="5" waitEvent="updateComplete" waitTarget="strikethroughToggle"/> |
| <DispatchKeyEvent char="Lorem ipsum dolor sit amet" waitTarget="myText" waitEvent="updateComplete"/> |
| <CompareBitmap numColorVariances="2" maxColorVariance="7" url="../Styles/baselines/$testID.png" target="myText" /> |
| </body> |
| </TestCase> |
| |
| |
| |
| </testCases> |
| </UnitTester> |
| |
| |