This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 030d6cb80bc45a2a97a395f63a32dd1fc6fc5235 Author: Alex Harui <aha...@apache.org> AuthorDate: Wed Apr 4 09:13:13 2018 -0700 TextArea test --- mustella/tests/mxtests/basicTests/BasicTests-config.xml | 2 +- mustella/tests/mxtests/basicTests/BasicTests.mxml | 4 ++-- .../mxtests/basicTests/halo/scripts/TextAreaTestScript.mxml | 11 ++++++++--- .../tests/mxtests/basicTests/halo/views/TextAreaTests.mxml | 2 +- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/mustella/tests/mxtests/basicTests/BasicTests-config.xml b/mustella/tests/mxtests/basicTests/BasicTests-config.xml index ccd9ad6..02bd81c 100644 --- a/mustella/tests/mxtests/basicTests/BasicTests-config.xml +++ b/mustella/tests/mxtests/basicTests/BasicTests-config.xml @@ -26,8 +26,8 @@ <symbol>halo.scripts.CheckBoxTestScript</symbol> <symbol>halo.scripts.RadioButtonTestScript</symbol> <symbol>halo.scripts.TextInputTestScript</symbol> - <!-- <symbol>halo.scripts.TextAreaTestScript</symbol> + <!-- <symbol>halo.scripts.ComboBoxTestScript</symbol> <symbol>halo.scripts.ColorPickerTestScript</symbol> <symbol>halo.scripts.NumericStepperTestScript</symbol> diff --git a/mustella/tests/mxtests/basicTests/BasicTests.mxml b/mustella/tests/mxtests/basicTests/BasicTests.mxml index 3e6da54..52a7402 100644 --- a/mustella/tests/mxtests/basicTests/BasicTests.mxml +++ b/mustella/tests/mxtests/basicTests/BasicTests.mxml @@ -40,8 +40,8 @@ preloader="BasicTestsPreloader" <mx:State name="haloCheckBoxTest" /> <mx:State name="haloRadioButtonTest" /> <mx:State name="haloTextInputTest" /> - <!-- <mx:State name="haloTextAreaTest" /> + <!-- <mx:State name="haloComboBoxTest" /> <mx:State name="haloColorPickerTest" /> <mx:State name="haloNumericStepperTest" /> @@ -114,8 +114,8 @@ preloader="BasicTestsPreloader" <haloviews:CheckBoxTests id="haloCheckBoxTests" includeIn="haloCheckBoxTest" /> <haloviews:RadioButtonTests id="haloRadioButtonTests" includeIn="haloRadioButtonTest" /> <haloviews:TextInputTests id="haloTextInputTests" includeIn="haloTextInputTest" /> - <!-- <haloviews:TextAreaTests id="haloTextAreaTests" includeIn="haloTextAreaTest" /> + <!-- <haloviews:ComboBoxTests id="haloComboBoxTests" includeIn="haloComboBoxTest" /> <haloviews:ColorPickerTests id="haloColorPickerTests" includeIn="haloColorPickerTest" /> <haloviews:NumericStepperTests id="haloNumericStepperTests" includeIn="haloNumericStepperTest" /> diff --git a/mustella/tests/mxtests/basicTests/halo/scripts/TextAreaTestScript.mxml b/mustella/tests/mxtests/basicTests/halo/scripts/TextAreaTestScript.mxml index 19d81ae..f38832c 100644 --- a/mustella/tests/mxtests/basicTests/halo/scripts/TextAreaTestScript.mxml +++ b/mustella/tests/mxtests/basicTests/halo/scripts/TextAreaTestScript.mxml @@ -22,7 +22,7 @@ <!-- this set of lines form a template that must be in each unit test --> <mx:Script> <![CDATA[ - public static function init(o:DisplayObject):void + public static function init(o:Object):void { } ]]> @@ -51,12 +51,17 @@ </TestCase> <TestCase testID="TextAreaTest1"> <body> - <SetProperty target="haloTextAreaTests.testTextArea" propertyName="text" + <DispatchMouseClickEvent target="haloTextAreaTests.testTextArea" localX="10" localY="10" /> + <DispatchKeyEvent char="This is a TextArea and it contains lots of text which should word wrap and eventually cause scrollbars to appear. The validation will test for the scrollbar properties" /> + <AssertPropertyValue target="haloTextAreaTests.testTextArea" propertyName="text" value="This is a TextArea and it contains lots of text which should word wrap and eventually cause scrollbars to appear. The validation will test for the scrollbar properties" /> +<!-- original + <SetProperty target="haloTextAreaTests.testTextArea" propertyName="text" value="This is a TextArea and it contains lots of text which should word wrap and eventually cause scrollbars to appear. The validation will test for the scrollbar properties" /> <AssertEvent target="haloTextAreaTests.testTextArea" eventName="updateComplete" eventClass="mx.events::FlexEvent" numExpectedEvents="1" /> <AssertPropertyValue target="haloTextAreaTests.testTextArea" propertyName="numChildren" value="4" /> <AssertPropertyValue target="haloTextAreaTests.testTextArea.getChildAt(3)" propertyName="className" value="VScrollBar" /> - </body> +--> + </body> </TestCase> </testCases> </UnitTester> diff --git a/mustella/tests/mxtests/basicTests/halo/views/TextAreaTests.mxml b/mustella/tests/mxtests/basicTests/halo/views/TextAreaTests.mxml index df60c6d..083d899 100644 --- a/mustella/tests/mxtests/basicTests/halo/views/TextAreaTests.mxml +++ b/mustella/tests/mxtests/basicTests/halo/views/TextAreaTests.mxml @@ -20,7 +20,7 @@ <mx:VBox xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" - xmlns:mx="library://ns.adobe.com/flex/mx" > + xmlns:mx="library://ns.apache.org/royale/mx" > <fx:Script> <![CDATA[ -- To stop receiving notification emails like this one, please contact aha...@apache.org.