You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2013/01/22 08:45:54 UTC
svn commit: r1436781 - in
/flex/sdk/branches/develop/mustella/tests/mobile/SoftKeyboard:
integration/SoftKeyboard_Integration.mxml swfs/SKStageText.mxml
swfs/SoftKeyboard-app.xml swfs/SoftKeyboard.mxml swfs/SoftKeyboard.xml
Author: aharui
Date: Tue Jan 22 07:45:53 2013
New Revision: 1436781
URL: http://svn.apache.org/viewvc?rev=1436781&view=rev
Log:
Fix softkeyboard tests by adding fake softkeyboard
Added:
flex/sdk/branches/develop/mustella/tests/mobile/SoftKeyboard/swfs/SoftKeyboard.xml
- copied unchanged from r1435787, flex/sdk/branches/develop/mustella/tests/mobile/SoftKeyboard/swfs/SoftKeyboard-app.xml
Removed:
flex/sdk/branches/develop/mustella/tests/mobile/SoftKeyboard/swfs/SoftKeyboard-app.xml
Modified:
flex/sdk/branches/develop/mustella/tests/mobile/SoftKeyboard/integration/SoftKeyboard_Integration.mxml
flex/sdk/branches/develop/mustella/tests/mobile/SoftKeyboard/swfs/SKStageText.mxml
flex/sdk/branches/develop/mustella/tests/mobile/SoftKeyboard/swfs/SoftKeyboard.mxml
Modified: flex/sdk/branches/develop/mustella/tests/mobile/SoftKeyboard/integration/SoftKeyboard_Integration.mxml
URL: http://svn.apache.org/viewvc/flex/sdk/branches/develop/mustella/tests/mobile/SoftKeyboard/integration/SoftKeyboard_Integration.mxml?rev=1436781&r1=1436780&r2=1436781&view=diff
==============================================================================
--- flex/sdk/branches/develop/mustella/tests/mobile/SoftKeyboard/integration/SoftKeyboard_Integration.mxml (original)
+++ flex/sdk/branches/develop/mustella/tests/mobile/SoftKeyboard/integration/SoftKeyboard_Integration.mxml Tue Jan 22 07:45:53 2013
@@ -166,9 +166,9 @@
<Pause timeout="100"/>
<SetProperty target="navigator.activeView.scroller.viewport" propertyName="verticalScrollPosition"
valueExpression="value=application.navigator.activeView.scroller.viewport.contentHeight - application.navigator.activeView.scroller.viewport.height" waitEvent="propertyChange" waitTarget="navigator.activeView.scroller.viewport"/>
- <AssertMethodValue method="value=application.navigator.activeView.vg.verticalScrollPosition > 500 " value = "true" />
+ <AssertMethodValue method="value=application.navigator.activeView.vg.verticalScrollPosition > 300 " value = "true" />
<RunCode code="application.stage.focus=null" waitEvent="softKeyboardDeactivate" waitTarget="navigator.activeView.fn" />
- <AssertMethodValue method="value=application.navigator.activeView.vg.verticalScrollPosition > 500 " value = "true" />
+ <AssertMethodValue method="value=application.navigator.activeView.vg.verticalScrollPosition > 300 " value = "true" />
</body>
</TestCase>
<TestCase testID="SoftKeyboard_Contact_scrollToBottom_TextInput" keywords="[SoftKeyboard, integration]" description="ScrollTo Bottom. Open the soft keyboard. Close the soft keyboard. Verify the Scroller restores the scroll positions back to 0.">
@@ -184,9 +184,9 @@
<DispatchMouseClickEvent target="navigator.activeView.tiMore" localX="50" localY="10" waitEvent="softKeyboardActivate" />
<Pause timeout="100"/>
<SetProperty target="navigator.activeView.tiMore" propertyName="text" value="TEST" waitEvent="updateComplete"/>
- <AssertMethodValue method="value=application.navigator.activeView.vg.verticalScrollPosition > 500 " value = "true" />
+ <AssertMethodValue method="value=application.navigator.activeView.vg.verticalScrollPosition > 300 " value = "true" />
<RunCode code="application.stage.focus=null" waitEvent="softKeyboardDeactivate" waitTarget="navigator.activeView.tiMore" />
- <AssertMethodValue method="value=application.navigator.activeView.vg.verticalScrollPosition > 500 " value = "true" />
+ <AssertMethodValue method="value=application.navigator.activeView.vg.verticalScrollPosition > 300 " value = "true" />
</body>
</TestCase>
<TestCase testID="SoftKeyboard_TextArea_grow" keywords="[SoftKeyboard, integration]" description="add text to the TextArea">
Modified: flex/sdk/branches/develop/mustella/tests/mobile/SoftKeyboard/swfs/SKStageText.mxml
URL: http://svn.apache.org/viewvc/flex/sdk/branches/develop/mustella/tests/mobile/SoftKeyboard/swfs/SKStageText.mxml?rev=1436781&r1=1436780&r2=1436781&view=diff
==============================================================================
--- flex/sdk/branches/develop/mustella/tests/mobile/SoftKeyboard/swfs/SKStageText.mxml (original)
+++ flex/sdk/branches/develop/mustella/tests/mobile/SoftKeyboard/swfs/SKStageText.mxml Tue Jan 22 07:45:53 2013
@@ -28,6 +28,9 @@
import flash.events.*;
use namespace mx_internal;
+ // force inclusion of softkeyboard event faking
+ public var fakeSoftKeyboard:FakeSoftKeyboard;
+
public var tmpValue:int;
public function doResetFocus():void{
Modified: flex/sdk/branches/develop/mustella/tests/mobile/SoftKeyboard/swfs/SoftKeyboard.mxml
URL: http://svn.apache.org/viewvc/flex/sdk/branches/develop/mustella/tests/mobile/SoftKeyboard/swfs/SoftKeyboard.mxml?rev=1436781&r1=1436780&r2=1436781&view=diff
==============================================================================
--- flex/sdk/branches/develop/mustella/tests/mobile/SoftKeyboard/swfs/SoftKeyboard.mxml (original)
+++ flex/sdk/branches/develop/mustella/tests/mobile/SoftKeyboard/swfs/SoftKeyboard.mxml Tue Jan 22 07:45:53 2013
@@ -39,6 +39,9 @@
import flash.events.*;
use namespace mx_internal;
+ // force inclusion of softkeyboard event faking
+ public var fakeSoftKeyboard:FakeSoftKeyboard;
+
public var tmpValue:int;
public function doResetFocus():void{