blob: f432b9e854de34ed08ceb303b5b20963ae5ab0ec [file] [log] [blame]
<?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/Integration/" xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns="*" testSWF="RichEditableText_Basic007.mxml">
<mx:Script>
<!-- Necessary for test runner. -->
<![CDATA[
public static function init(o:DisplayObject):void
{
}
]]>
</mx:Script>
<mx:Metadata>
<![CDATA[
[Mixin]
]]>
</mx:Metadata>
<!-- ################################################################## -->
<testCases>
<TestCase testID="RichEditableText_covered_scroll" description="scrolling around on text outside the visible area" keywords="[RichEditableText,Scroll,SDK-24728]">
<setup>
<ResetComponent target="ret1" className="spark.components.RichEditableText" waitTarget="ret1" />
<SetProperty target="ret1" propertyName="height" value="25" waitEvent="updateComplete"/>
<ResetComponent target="ret2" className="spark.components.RichEditableText" waitTarget="ret2"/>
<SetProperty target="ret2" propertyName="width" value="50" />
<SetProperty target="ret2" propertyName="lineBreak" value="explicit" waitEvent="updateComplete"/>
</setup>
<body>
<DispatchMouseClickEvent target="ret1" localX="2" localY="2" waitTarget="ret1" waitEvent="click" />
<DispatchKeyEvent keys="[ENTER]" waitTarget="ret1" waitEvent="change" />
<DispatchKeyEvent char="b" waitTarget="ret1" waitEvent="change" />
<DispatchKeyEvent keys="[ENTER]" waitTarget="ret1" waitEvent="change" />
<DispatchKeyEvent char="c" waitTarget="ret1" waitEvent="change" />
<DispatchMouseClickEvent target="ret2" localX="2" localY="2" waitTarget="ret2" waitEvent="click" />
<DispatchKeyEvent char="abcdef" waitTarget="ret2" waitEvent="change" />
<DispatchMouseClickEvent target="ret1" localX="2" localY="2" waitTarget="ret1" waitEvent="click" />
<DispatchKeyEvent keys="[DOWN]" waitTarget="ret1" waitEvent="keyUp" />
<!-- localX="2" localY="2" is in captureGroup1.focusPane -->
<DispatchMouseClickEvent target="ret2" localX="4" localY="4" waitTarget="ret2" waitEvent="click" />
<DispatchKeyEvent keys="[END]" waitTarget="ret2" waitEvent="keyUp" />
<CompareBitmap numColorVariances="6" maxColorVariance="12" url="../Integration/baselines/$testID.png" target="captureGroup1" />
</body>
</TestCase>
<TestCase testID="RichEditableText_flow_embedded_image" description="ensure that the third paragraph displayes *WITHOUT* requiring focus first" keywords="[RichEditableText,Embedded,Image,TextFlow,SDK-27386]">
<setup>
<ResetComponent target="embeddedImageRet1" className="comps.EmbeddedImageRET" waitTarget="embeddedImageRet1" waitEvent="updateComplete" />
</setup>
<body>
<CompareBitmap numColorVariances="0" maxColorVariance="0" url="../Integration/baselines/$testID.png" target="embeddedImageRet1" />
</body>
</TestCase>
</testCases>
</UnitTester>