Updated Branches: refs/heads/develop 249b38b7c -> 7c1ea1452
UPDATE FLEX-33166 Mobile TextInput with native StageTextInput cannot be included in scrollable forms Fix failing mustella test, because TI focus/soft keyboard is now on mouse click, not mouse move Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/7c1ea145 Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/7c1ea145 Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/7c1ea145 Branch: refs/heads/develop Commit: 7c1ea1452ebab84752cffd2678f98d8b7cf54ea2 Parents: 249b38b Author: mamsellem <[email protected]> Authored: Wed Nov 27 09:50:47 2013 +0100 Committer: mamsellem <[email protected]> Committed: Wed Nov 27 09:50:47 2013 +0100 ---------------------------------------------------------------------- .../SPUC_KeyboardEffects_Callout.mxml | 28 +++++--------------- 1 file changed, 6 insertions(+), 22 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/7c1ea145/mustella/tests/mobile/SkinnablePopupContainerSK/integration/SPUC_KeyboardEffects_Callout.mxml ---------------------------------------------------------------------- diff --git a/mustella/tests/mobile/SkinnablePopupContainerSK/integration/SPUC_KeyboardEffects_Callout.mxml b/mustella/tests/mobile/SkinnablePopupContainerSK/integration/SPUC_KeyboardEffects_Callout.mxml index 38bc390..01f14d5 100644 --- a/mustella/tests/mobile/SkinnablePopupContainerSK/integration/SPUC_KeyboardEffects_Callout.mxml +++ b/mustella/tests/mobile/SkinnablePopupContainerSK/integration/SPUC_KeyboardEffects_Callout.mxml @@ -57,11 +57,8 @@ <body> <RunCode code="application.navigator.pushView(views.CalloutResize)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="6000" /> <WaitForLayoutManager /> - <!--<DispatchMouseClickEvent target="navigator.activeView.textInput" localX="20" localY="20" waitTarget="navigator.activeView.callout" waitEvent="open" timeout="6000"/> - --> <DispatchMouseClickEvent target="navigator.activeView.textInput" localX="20" localY="20" waitTarget="navigator.activeView.callout" waitEvent="open" timeout="6000"/> - <SimulateMouseGesture target="navigator.activeView.textInput" dragXFrom="10%" dragXTo="11%" dragYFrom="50%" dragYTo="50%" waitTarget="navigator.activeView.textInput" waitEvent="softKeyboardActivate" timeout="6000"/> - <Pause timeout="500" /> + <Pause timeout="500" /> <AssertPropertyValue target="navigator.activeView.callout" propertyName="resizeForSoftKeyboard" value="true" /> <AssertMethodValue method="value = application.navigator.activeView.callout.getStyle('softKeyboardEffectDuration')" value="150"/> <ResetComponent target="navigator" className="comps.QANavigator" waitEvent="viewChangeComplete" timeout="6000" /> @@ -77,10 +74,8 @@ <body> <RunCode code="application.navigator.pushView(views.CalloutResize)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="6000" /> <DispatchMouseClickEvent target="navigator.activeView.textInput" localX="20" localY="20" waitTarget="navigator.activeView.callout" waitEvent="open" timeout="6000"/> - <SimulateMouseGesture target="navigator.activeView.textInput" dragXFrom="10%" dragXTo="11%" dragYFrom="50%" dragYTo="50%" waitTarget="navigator.activeView.textInput" waitEvent="softKeyboardActivate" timeout="6000"/> <Pause timeout="500" /> -<!-- <DispatchMouseClickEvent target="navigator.activeView.textInput" localX="20" localY="20" waitTarget="navigator.activeView.callout" waitEvent="open" timeout="6000"/> ---> <AssertMethodValue method="value = application.navigator.activeView.callout.getStyle('softKeyboardEffectDuration')" value="150"/> + <AssertMethodValue method="value = application.navigator.activeView.callout.getStyle('softKeyboardEffectDuration')" value="150"/> <ResetComponent target="navigator" className="comps.QANavigator" waitEvent="viewChangeComplete" timeout="6000" /> </body> </TestCase> @@ -93,9 +88,7 @@ </setup> <body> <RunCode code="application.navigator.pushView(views.CalloutResize)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="6000" /> -<!-- <DispatchMouseClickEvent target="navigator.activeView.textInput" localX="20" localY="20" waitTarget="navigator.activeView.callout" waitEvent="open" timeout="6000"/> ---> <DispatchMouseClickEvent target="navigator.activeView.textInput" localX="20" localY="20" waitTarget="navigator.activeView.callout" waitEvent="open" timeout="6000"/> - <SimulateMouseGesture target="navigator.activeView.textInput" dragXFrom="10%" dragXTo="11%" dragYFrom="50%" dragYTo="50%" waitTarget="navigator.activeView.textInput" waitEvent="softKeyboardActivate" timeout="6000"/> + <DispatchMouseClickEvent target="navigator.activeView.textInput" localX="20" localY="20" waitTarget="navigator.activeView.callout" waitEvent="open" timeout="6000"/> <Pause timeout="500" /> <RunCode code="application.navigator.activeView.callout.setStyle('softKeyboardEffectDuration', 250)"/> <Pause timeout="200"/> @@ -112,9 +105,7 @@ </setup> <body> <RunCode code="application.navigator.pushView(views.CalloutResize)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="6000" /> -<!-- <DispatchMouseClickEvent target="navigator.activeView.textInput" localX="20" localY="20" waitTarget="navigator.activeView.callout" waitEvent="open" timeout="6000"/> ---> <DispatchMouseClickEvent target="navigator.activeView.textInput" localX="20" localY="20" waitTarget="navigator.activeView.callout" waitEvent="open" timeout="6000"/> - <SimulateMouseGesture target="navigator.activeView.textInput" dragXFrom="10%" dragXTo="11%" dragYFrom="50%" dragYTo="50%" waitTarget="navigator.activeView.textInput" waitEvent="softKeyboardActivate" timeout="6000"/> + <DispatchMouseClickEvent target="navigator.activeView.textInput" localX="20" localY="20" waitTarget="navigator.activeView.callout" waitEvent="open" timeout="6000"/> <Pause timeout="500" /> <AssertPropertyValue target="navigator.activeView.callout" propertyName="moveForSoftKeyboard" value="false" /> <ResetComponent target="navigator" className="comps.QANavigator" waitEvent="viewChangeComplete" timeout="6000" /> @@ -130,9 +121,7 @@ <body> <RunCode code="application.navigator.pushView(views.CalloutResize)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="6000" /> <Pause timeout="500" /> -<!-- <DispatchMouseClickEvent target="navigator.activeView.textInput" localX="20" localY="20" waitTarget="navigator.activeView.callout" waitEvent="open" timeout="6000"/> ---> <DispatchMouseClickEvent target="navigator.activeView.textInput" localX="20" localY="20" waitTarget="navigator.activeView.callout" waitEvent="open" timeout="6000"/> - <SimulateMouseGesture target="navigator.activeView.textInput" dragXFrom="10%" dragXTo="11%" dragYFrom="50%" dragYTo="50%" waitTarget="navigator.activeView.textInput" waitEvent="softKeyboardActivate" timeout="6000"/> + <DispatchMouseClickEvent target="navigator.activeView.textInput" localX="20" localY="20" waitTarget="navigator.activeView.callout" waitEvent="open" timeout="6000"/> <Pause timeout="500" /> <SetProperty target="navigator.activeView.callout" propertyName="resizeForSoftKeyboard" value="false" /> <AssertPropertyValue target="navigator.activeView.callout" propertyName="resizeForSoftKeyboard" value="false" /> @@ -148,9 +137,7 @@ </setup> <body> <RunCode code="application.navigator.pushView(views.CalloutResize)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="6000" /> -<!-- <DispatchMouseClickEvent target="navigator.activeView.textInput" localX="20" localY="20" waitTarget="navigator.activeView.callout" waitEvent="open" timeout="6000"/> ---> <DispatchMouseClickEvent target="navigator.activeView.textInput" localX="20" localY="20" waitTarget="navigator.activeView.callout" waitEvent="open" timeout="6000"/> - <SimulateMouseGesture target="navigator.activeView.textInput" dragXFrom="10%" dragXTo="11%" dragYFrom="50%" dragYTo="50%" waitTarget="navigator.activeView.textInput" waitEvent="softKeyboardActivate" timeout="6000"/> + <DispatchMouseClickEvent target="navigator.activeView.textInput" localX="20" localY="20" waitTarget="navigator.activeView.callout" waitEvent="open" timeout="6000"/> <Pause timeout="500" /> <SetProperty target="navigator.activeView.callout" propertyName="moveForSoftKeyboard" value="false" /> <AssertPropertyValue target="navigator.activeView.callout" propertyName="moveForSoftKeyboard" value="false" /> @@ -166,10 +153,8 @@ </setup> <body> <RunCode code="application.navigator.pushView(views.CalloutResize)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="6000" /> - <!-- Simply dispatching a click does not activate softkeyboard??? hence a patch to do a psudo drag --> <Pause timeout="500" /> <DispatchMouseClickEvent target="navigator.activeView.textInput" localX="10" localY="10" /> - <SimulateMouseGesture target="navigator.activeView.textInput" dragXFrom="10%" dragXTo="11%" dragYFrom="50%" dragYTo="50%" waitTarget="navigator.activeView.textInput" waitEvent="softKeyboardActivate" timeout="6000"/> <AssertMethodValue method="value =application.navigator.activeView.callout.isOpen == true" value="true"/> <!-- softkeyboardActivate does not wait for the animation --> <Pause timeout="1000" /> @@ -189,7 +174,6 @@ <RunCode code="application.navigator.pushView(views.CalloutResize)" waitTarget="navigator" waitEvent="viewChangeComplete" timeout="6000" /> <Pause timeout="500" /> <DispatchMouseClickEvent target="navigator.activeView.textInput" localX="20" localY="20" waitTarget="navigator.activeView.callout" waitEvent="open" timeout="6000"/> - <SimulateMouseGesture target="navigator.activeView.textInput" dragXFrom="10%" dragXTo="11%" dragYFrom="50%" dragYTo="50%" waitTarget="navigator.activeView.textInput" waitEvent="softKeyboardActivate" timeout="6000"/> <Pause timeout="1000" /> <AssertMethodValue method="value=application.softKeyboardRect.top>0" value="true"/> <AssertMethodValue method="value=(application.navigator.activeView.callout.height+application.navigator.activeView.callout.bottom)<application.softKeyboardRect.top" value="true"/>
