| <?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 |
| xmlns:fx="http://ns.adobe.com/mxml/2009" |
| xmlns:s="library://ns.adobe.com/flex/spark" |
| xmlns="*" |
| testDir="mobile/StageText/methods/" |
| testSWF="StageText.mxml" xmlns:mx="library://ns.adobe.com/flex/mx"> |
| |
| <fx:Script><![CDATA[ public static function init(o:DisplayObject):void { } ]]></fx:Script> |
| <fx:Metadata><![CDATA[ [Mixin] ]]></fx:Metadata> |
| |
| <fx:Script> |
| <![CDATA[ |
| import views.*; |
| import mx.core.FlexGlobals; |
| ]]> |
| </fx:Script> |
| |
| <testCases> |
| <TestCase testID="TextArea_selectAll_nominal" keywords="[StageText, TextArea, selectAll, Methods]" description="Verify that selectAll selects all text."> |
| <setup> |
| <RunCode code="application.stage.focus=null" /> |
| <ResetComponent target="navigator" className="comps.QANavigator" waitEvent="viewChangeComplete" /> |
| <RunCode code="application.navigator.pushView(views.LoremView100)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="7000" /> |
| <SetProperty target="navigator.activeView.lvTextArea" propertyName="text" value="Use a short paragraph of text so we don't have to worry about scrolling" waitEvent="updateComplete"/> |
| |
| </setup> |
| <body> |
| <RunCode code="application.navigator.activeView.lvTextArea.setFocus()" waitEvent="focusIn" waitTarget="navigator.activeView.lvTextArea"/> |
| <RunCode code="application.navigator.activeView.lvTextArea.selectAll()" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.lvTextArea"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="selectionAnchorPosition" |
| value="0"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="selectionActivePosition" |
| value="71"/> |
| <CompareBitmap target="navigator.activeView.lvTextArea" stageText="true" url="../methods/baselines/TextArea/"> |
| <ConditionalValue deviceDensity="160" os="qnx"/> |
| <ConditionalValue deviceDensity="240" os="android"/> |
| <ConditionalValue deviceDensity="320" os="iphone"/> |
| </CompareBitmap> |
| </body> |
| </TestCase> |
| <TestCase testID="TextArea_selectAll_empty" keywords="[StageText, TextArea, selectAll, Methods]" description="Verify that selectAll works with an empty run of text."> |
| <setup> |
| <RunCode code="application.stage.focus=null" /> |
| <ResetComponent target="navigator" className="comps.QANavigator" waitEvent="viewChangeComplete" /> |
| <RunCode code="application.navigator.pushView(views.LoremView100)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="7000" /> |
| <SetProperty target="navigator.activeView.lvTextArea" propertyName="height" value="150" waitEvent="updateComplete"/> |
| <SetProperty target="navigator.activeView.lvTextArea" propertyName="text" value="" waitEvent="updateComplete"/> |
| |
| </setup> |
| <body> |
| <RunCode code="application.navigator.activeView.lvTextArea.setFocus()" waitEvent="focusIn" waitTarget="navigator.activeView.lvTextArea"/> |
| <RunCode code="application.navigator.activeView.lvTextArea.selectAll()" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.lvTextArea"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="selectionAnchorPosition" |
| value="0"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="selectionActivePosition" |
| value="0"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="text" |
| value=""/> |
| </body> |
| </TestCase> |
| <TestCase testID="TextArea_selectAll_overwrite" keywords="[StageText, TextArea, selectAll, Methods]" description="Verify that selectAll correctly overwrites."> |
| <setup> |
| <RunCode code="application.stage.focus=null" /> |
| <ResetComponent target="navigator" className="comps.QANavigator" waitEvent="viewChangeComplete" /> |
| <RunCode code="application.navigator.pushView(views.LoremView100)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="7000" /> |
| <SetProperty target="navigator.activeView.lvTextArea" propertyName="height" value="150" waitEvent="updateComplete"/> |
| |
| </setup> |
| <body> |
| <RunCode code="application.navigator.activeView.lvTextArea.setFocus()" waitEvent="focusIn" waitTarget="navigator.activeView.lvTextArea"/> |
| <RunCode code="application.navigator.activeView.lvTextArea.selectAll()" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.lvTextArea"/> |
| <RunCode code="application.navigator.activeView.lvTextArea.insertText('hello')" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.lvTextArea"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="selectionAnchorPosition" |
| value="5"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="selectionActivePosition" |
| value="5"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="text" |
| value="hello"/> |
| </body> |
| </TestCase> |
| <TestCase testID="TextArea_selectAll_state_change" keywords="[StageText, TextArea, selectAll, Methods]" description="Verify that selected text stays selected on a state change."> |
| <setup> |
| <RunCode code="application.stage.focus=null" /> |
| <ResetComponent target="navigator" className="comps.QANavigator" waitEvent="viewChangeComplete" /> |
| <RunCode code="application.navigator.pushView(views.TextSelectionStateView)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="7000" /> |
| </setup> |
| <body> |
| <RunCode code="application.navigator.activeView.ssTextArea.setFocus()" waitEvent="focusIn" waitTarget="navigator.activeView.ssTextArea"/> |
| <RunCode code="application.navigator.activeView.ssTextArea.selectAll()" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.ssTextArea"/> |
| <RunCode code="application.navigator.activeView.changeState()" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView"/> |
| <RunCode code="application.navigator.activeView.changeState()" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.ssTextArea"/> |
| <AssertPropertyValue target="navigator.activeView.ssTextArea" |
| propertyName="selectionAnchorPosition" |
| value="0"/> |
| <AssertPropertyValue target="navigator.activeView.ssTextArea" |
| propertyName="selectionActivePosition" |
| value="21"/> |
| </body> |
| </TestCase> |
| <TestCase testID="TextArea_selectAll_softKeyboard_toggle" keywords="[StageText, TextArea, selectAll, Methods, SoftKeyboard]" description="Verify that selected text stays selected on when the Soft Keyboard is opened."> |
| <setup> |
| <RunCode code="application.stage.focus=null" /> |
| <ResetComponent target="navigator" className="comps.QANavigator" waitEvent="viewChangeComplete" /> |
| <RunCode code="application.navigator.pushView(views.TextSelectionStateView)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="7000" /> |
| </setup> |
| <body> |
| <RunCode code="application.navigator.activeView.ssTextArea.setFocus()" waitEvent="focusIn" waitTarget="navigator.activeView.ssTextArea"/> |
| <RunCode code="application.navigator.activeView.ssTextArea.selectAll()" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.ssTextArea"/> |
| <DispatchMouseClickEvent target="navigator.activeView.ssTextArea" localX="5" localY="5" waitEvent="click"/> |
| <AssertEvent target="navigator.activeView.ssTextArea" eventName="softKeyboardActivate" eventClass="flash.events::SoftKeyboardEvent" numExpectedEvents="-1"/> |
| <AssertPropertyValue target="navigator.activeView.ssTextArea" |
| propertyName="selectionAnchorPosition" |
| value="0"/> |
| <AssertPropertyValue target="navigator.activeView.ssTextArea" |
| propertyName="selectionActivePosition" |
| value="21"/> |
| </body> |
| </TestCase> |
| <TestCase testID="TextArea_selectRange_nominal" keywords="[StageText, TextArea, selectRange, Methods]" description="Verify that selectRange selects the correct range of text."> |
| <setup> |
| <RunCode code="application.stage.focus=null" /> |
| <ResetComponent target="navigator" className="comps.QANavigator" waitEvent="viewChangeComplete" /> |
| <RunCode code="application.navigator.pushView(views.LoremView100)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="7000" /> |
| <SetProperty target="navigator.activeView.lvTextArea" propertyName="height" value="305" waitEvent="updateComplete"/> |
| </setup> |
| <body> |
| <RunCode code="application.navigator.activeView.lvTextArea.setFocus()" waitEvent="focusIn" waitTarget="navigator.activeView.lvTextArea"/> |
| <RunCode code="application.navigator.activeView.lvTextArea.selectRange(2,12)" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.lvTextArea"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="selectionAnchorPosition" |
| value="2"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="selectionActivePosition" |
| value="12"/> |
| <CompareBitmap target="navigator.activeView.lvTextArea" stageText="true" url="../methods/baselines/TextArea/"> |
| <ConditionalValue deviceDensity="160" os="qnx"/> |
| <ConditionalValue deviceDensity="240" os="android"/> |
| <ConditionalValue deviceDensity="320" os="iphone"/> |
| </CompareBitmap> |
| </body> |
| </TestCase> |
| <TestCase testID="TextArea_selectRange_state_change" keywords="[StageText, TextArea, selectRange, Methods]" description="Verify that selected text stays selected on a state change."> |
| <setup> |
| <RunCode code="application.stage.focus=null" /> |
| <ResetComponent target="navigator" className="comps.QANavigator" waitEvent="viewChangeComplete" /> |
| <RunCode code="application.navigator.pushView(views.TextSelectionStateView)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="7000" /> |
| </setup> |
| <body> |
| <RunCode code="application.navigator.activeView.ssTextArea.setFocus()" waitEvent="focusIn" waitTarget="navigator.activeView.ssTextArea"/> |
| <RunCode code="application.navigator.activeView.ssTextArea.selectRange(2,10)" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.ssTextArea"/> |
| <RunCode code="application.navigator.activeView.changeState()" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView"/> |
| <RunCode code="application.navigator.activeView.changeState()" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.ssTextArea"/> |
| <AssertPropertyValue target="navigator.activeView.ssTextArea" |
| propertyName="selectionAnchorPosition" |
| value="2"/> |
| <AssertPropertyValue target="navigator.activeView.ssTextArea" |
| propertyName="selectionActivePosition" |
| value="10"/> |
| </body> |
| </TestCase> |
| <TestCase testID="TextArea_selectRange_softKeyboard_toggle" keywords="[StageText, TextArea, selectRange, Methods, SoftKeyboard]" description="Verify that selected text stays selected on when the Soft Keyboard is opened."> |
| <setup> |
| <RunCode code="application.stage.focus=null" /> |
| <ResetComponent target="navigator" className="comps.QANavigator" waitEvent="viewChangeComplete" /> |
| <RunCode code="application.navigator.pushView(views.TextSelectionStateView)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="7000" /> |
| </setup> |
| <body> |
| <RunCode code="application.navigator.activeView.ssTextArea.setFocus()" waitEvent="focusIn" waitTarget="navigator.activeView.ssTextArea"/> |
| <RunCode code="application.navigator.activeView.ssTextArea.selectRange(2,10)" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.ssTextArea"/> |
| <DispatchMouseClickEvent target="navigator.activeView.ssTextArea" localX="5" localY="5" waitEvent="click"/> |
| <AssertEvent target="navigator.activeView.ssTextArea" eventName="softKeyboardActivate" eventClass="flash.events::SoftKeyboardEvent" numExpectedEvents="-1"/> |
| <AssertPropertyValue target="navigator.activeView.ssTextArea" |
| propertyName="selectionAnchorPosition" |
| value="2"/> |
| <AssertPropertyValue target="navigator.activeView.ssTextArea" |
| propertyName="selectionActivePosition" |
| value="10"/> |
| </body> |
| </TestCase> |
| <TestCase testID="TextArea_insertText_empty" keywords="[StageText, TextArea, insertText, Methods]" description="Verify that you can insert text in an empty field." bugs="[SDK-30925]"> |
| <setup> |
| <RunCode code="application.stage.focus=null" /> |
| <ResetComponent target="navigator" className="comps.QANavigator" waitEvent="viewChangeComplete" /> |
| <RunCode code="application.navigator.pushView(views.LoremView100)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="7000" /> |
| <SetProperty target="navigator.activeView.lvTextArea" propertyName="height" value="305" waitEvent="updateComplete"/> |
| <SetProperty propertyName="text" target="navigator.activeView.lvTextArea" value=""/> |
| </setup> |
| <body> |
| <RunCode code="application.navigator.activeView.lvTextArea.setFocus()" waitEvent="focusIn" waitTarget="navigator.activeView.lvTextArea"/> |
| <RunCode code="application.navigator.activeView.lvTextArea.insertText('fish')" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.lvTextArea"/> |
| <RunCode code="application.navigator.activeView.lvTextArea.insertText('stick')" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.lvTextArea"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="text" |
| value="fishstick"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="selectionActivePosition" |
| value="9"/> |
| </body> |
| </TestCase> |
| <TestCase testID="TextArea_insertText_overwrite" keywords="[StageText, TextArea, insertText, Methods]" description="Verify that you can insert text over a section of text." bugs="[SDK-30925]"> |
| <setup> |
| <RunCode code="application.stage.focus=null" /> |
| <ResetComponent target="navigator" className="comps.QANavigator" waitEvent="viewChangeComplete" /> |
| <RunCode code="application.navigator.pushView(views.LoremView100)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="7000" /> |
| <SetProperty target="navigator.activeView.lvTextArea" propertyName="height" value="305" waitEvent="updateComplete"/> |
| <SetProperty propertyName="text" target="navigator.activeView.lvTextArea" value="fishnet"/> |
| </setup> |
| <body> |
| <RunCode code="application.navigator.activeView.lvTextArea.setFocus()" waitEvent="focusIn" waitTarget="navigator.activeView.lvTextArea"/> |
| <RunCode code="application.navigator.activeView.lvTextArea.selectRange(4,7)" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.lvTextArea"/> |
| <RunCode code="application.navigator.activeView.lvTextArea.insertText('stick')" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.lvTextArea"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="text" |
| value="fishstick"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="selectionActivePosition" |
| value="9"/> |
| </body> |
| </TestCase> |
| <TestCase testID="TextArea_appendText_empty" keywords="[StageText, TextArea, appendText, Methods]" description="Verify that you can append text in an empty field." bugs="[SDK-30925]"> |
| <setup> |
| <RunCode code="application.stage.focus=null" /> |
| <ResetComponent target="navigator" className="comps.QANavigator" waitEvent="viewChangeComplete" /> |
| <RunCode code="application.navigator.pushView(views.LoremView100)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="7000" /> |
| <SetProperty target="navigator.activeView.lvTextArea" propertyName="height" value="305" waitEvent="updateComplete"/> |
| <SetProperty propertyName="text" target="navigator.activeView.lvTextArea" value=""/> |
| </setup> |
| <body> |
| <RunCode code="application.navigator.activeView.lvTextArea.setFocus()" waitEvent="focusIn" waitTarget="navigator.activeView.lvTextArea"/> |
| <RunCode code="application.navigator.activeView.lvTextArea.appendText('fish')" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.lvTextArea"/> |
| <RunCode code="application.navigator.activeView.lvTextArea.appendText('stick')" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.lvTextArea"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="text" |
| value="fishstick"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="selectionActivePosition" |
| value="9"/> |
| </body> |
| </TestCase> |
| <TestCase testID="TextArea_appendText_overwrite" keywords="[StageText, TextArea, insertText, Methods]" description="Verify that you can append text with selection and not overwrite." bugs="[SDK-30925]"> |
| <setup> |
| <RunCode code="application.stage.focus=null" /> |
| <ResetComponent target="navigator" className="comps.QANavigator" waitEvent="viewChangeComplete" /> |
| <RunCode code="application.navigator.pushView(views.LoremView100)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="7000" /> |
| <SetProperty target="navigator.activeView.lvTextArea" propertyName="height" value="305" waitEvent="updateComplete"/> |
| <SetProperty propertyName="text" target="navigator.activeView.lvTextArea" value="fishnet"/> |
| </setup> |
| <body> |
| |
| <RunCode code="application.navigator.activeView.lvTextArea.setFocus()" waitEvent="focusIn" waitTarget="navigator.activeView.lvTextArea"/> |
| <RunCode code="application.navigator.activeView.lvTextArea.selectRange(4,7)" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.lvTextArea"/> |
| <RunCode code="application.navigator.activeView.lvTextArea.appendText('stick')" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.lvTextArea"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="text" |
| value="fishnetstick"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="selectionActivePosition" |
| value="12"/> |
| </body> |
| </TestCase> |
| <TestCase testID="TextArea_insertText_top" keywords="[StageText, TextArea, insertText, Methods]" description="Verify that you can insert text with the cursor at the start of the run."> |
| <setup> |
| <RunCode code="application.stage.focus=null" /> |
| <ResetComponent target="navigator" className="comps.QANavigator" waitEvent="viewChangeComplete" /> |
| <RunCode code="application.navigator.pushView(views.LoremView100)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="7000" /> |
| <SetProperty propertyName="text" target="navigator.activeView.lvTextArea" value="stick"/> |
| </setup> |
| <body> |
| <RunCode code="application.navigator.activeView.lvTextArea.setFocus()" waitEvent="focusIn" waitTarget="navigator.activeView.lvTextArea"/> |
| <RunCode code="application.navigator.activeView.lvTextArea.selectRange(0,0)" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.lvTextArea"/> |
| <RunCode code="application.navigator.activeView.lvTextArea.insertText('fish')" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.lvTextArea"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="text" |
| value="fishstick"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="selectionActivePosition" |
| value="4"/> |
| </body> |
| </TestCase> |
| <TestCase testID="TextArea_insertText_middle" keywords="[StageText, TextArea, insertText, Methods]" description="Verify that you can insert text in the middle of a run."> |
| <setup> |
| <RunCode code="application.stage.focus=null" /> |
| <ResetComponent target="navigator" className="comps.QANavigator" waitEvent="viewChangeComplete" /> |
| <RunCode code="application.navigator.pushView(views.LoremView100)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="7000" /> |
| <SetProperty propertyName="text" target="navigator.activeView.lvTextArea" value="fick"/> |
| </setup> |
| <body> |
| <RunCode code="application.navigator.activeView.lvTextArea.setFocus()" waitEvent="focusIn" waitTarget="navigator.activeView.lvTextArea"/> |
| <RunCode code="application.navigator.activeView.lvTextArea.selectRange(2,2)" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.lvTextArea"/> |
| <RunCode code="application.navigator.activeView.lvTextArea.insertText('shsti')" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.lvTextArea"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="text" |
| value="fishstick"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="selectionActivePosition" |
| value="7"/> |
| </body> |
| </TestCase> |
| <TestCase testID="TextArea_insertText_end" keywords="[StageText, TextArea, insertText, Methods]" description="Verify that you can insert text in the end of a run."> |
| <setup> |
| <RunCode code="application.stage.focus=null" /> |
| <ResetComponent target="navigator" className="comps.QANavigator" waitEvent="viewChangeComplete" /> |
| <RunCode code="application.navigator.pushView(views.LoremView100)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="7000" /> |
| <SetProperty propertyName="text" target="navigator.activeView.lvTextArea" value="fish"/> |
| </setup> |
| <body> |
| <RunCode code="application.navigator.activeView.lvTextArea.setFocus()" waitEvent="focusIn" waitTarget="navigator.activeView.lvTextArea"/> |
| <RunCode code="application.navigator.activeView.lvTextArea.selectRange(4,4)" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.lvTextArea"/> |
| <RunCode code="application.navigator.activeView.lvTextArea.insertText('stick')" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.lvTextArea"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="text" |
| value="fishstick"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="selectionActivePosition" |
| value="9"/> |
| </body> |
| </TestCase> |
| |
| <!-- Not for Mega |
| <TestCase testID="TextArea_scrollToRange_nominal" keywords="[StageText, TextArea, scrollToRange, Methods]" description="Verify that scrollToRange scrolls to the correct range of text."> |
| <setup> |
| <RunCode code="application.stage.focus=null" /> |
| <ResetComponent target="navigator" className="comps.QANavigator" |
| waitEvent="viewChangeComplete" /> |
| <RunCode code="application.navigator.pushView(views.LoremView100)" |
| waitTarget="navigator" waitEvent="viewChangeComplete" |
| timeout="1000" /> |
| </setup> |
| <body> |
| <RunCode code="application.navigator.activeView.lvTextArea.scrollToRange(2000,2100)" |
| waitEvent="updateComplete" |
| waitTarget="navigator.activeView.lvTextArea"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="selectionAnchorPosition" |
| value="2000"/> |
| <AssertPropertyValue target="navigator.activeView.lvTextArea" |
| propertyName="selectionActivePosition" |
| value="2100"/> |
| <CompareBitmap target="navigator.activeView.lvTextArea" stageText="true" url="../methods/baselines/TextArea/"> |
| <ConditionalValue deviceDensity="160" os="qnx"/> |
| <ConditionalValue deviceDensity="240" os="android"/> |
| <ConditionalValue deviceDensity="320" os="iphone"/> |
| </CompareBitmap> |
| </body> |
| </TestCase>--> |
| </testCases> |
| </UnitTester> |