You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Frédéric THOMAS (JIRA)" <ji...@apache.org> on 2012/11/18 16:02:57 UTC

[jira] [Commented] (FLEX-33270) spark/validators/CurrencyValidator/Methods/CV_validate_error_message_localized_tester CV_errorTip_custom_invalidFormatCharsError_invalid_script_buttonTrig_35 fails

    [ https://issues.apache.org/jira/browse/FLEX-33270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13499818#comment-13499818 ] 

Frédéric THOMAS commented on FLEX-33270:
----------------------------------------

        <TestCase testID="CV_errorTip_custom_invalidFormatCharsError_invalid_script_buttonTrig_35" 
				  description="testcase for set/display localized error message when validate an invalid value." 
				  keywords="[CurrencyValidator, custom invalidFormatCharsError, trigger programmatically, ActionScript, invalid]">
            <setup>
                <ResetComponent target="uiCustomComp" className="assets.CustomCompErrorMessageLocalized" waitEvent="updateComplete" waitTarget="uiCustomComp"/>
                <SetStyle waitEvent="change" target="uiCustomComp.cvScript" styleName="locale" value="gv"/>
                <SetProperty target="uiCustomComp.cvScript" propertyName="source" valueExpression="value=application.uiCustomComp.uiTI"/>
                <SetProperty target="uiCustomComp.cvScript" propertyName="property" value="text"/>
                <SetProperty target="uiCustomComp.cvScript" propertyName="trigger" valueExpression="value=application.uiCustomComp.uiBT"/>
                <SetProperty target="uiCustomComp.cvScript" propertyName="triggerEvent" value="click"/>
                <SetProperty target="uiCustomComp.cvScript" propertyName="positiveCurrencyFormat" value="0"/>
                <SetProperty target="uiCustomComp.cvScript" propertyName="currencySymbol" valueExpression="value='@'"/>
                <SetProperty target="uiCustomComp.cvScript" propertyName="currencyISOCode" valueExpression="value='ETT'"/>
                <SetProperty target="uiCustomComp.cvScript" propertyName="decimalSeparator" valueExpression="value=','"/>
                <SetProperty target="uiCustomComp.cvScript" propertyName="invalidFormatCharsError" valueExpression="value=CVConstant.CUST_ERROR_ZH"/>
                <SetProperty target="uiCustomComp.cvScript" propertyName="required" value="false"/>
            </setup>
            <body>
                <AssertPropertyValue target="uiCustomComp.cvScript" propertyName="lastOperationStatus" valueExpression="value=LastOperationStatus.NO_ERROR"/>
                <SetProperty target="uiCustomComp.uiTI" propertyName="text" value="ETT12345.67" waitEvent="updateComplete" waitTarget="uiCustomComp.uiTI"/>
                <DispatchMouseEvent target="uiCustomComp.uiBT" type="click" waitEvent="updateComplete" waitTarget="uiCustomComp.uiTI"/>
                <AssertEvent target="uiCustomComp.cvScript" eventName="invalid" eventClass="mx.events::ValidationResultEvent"/>
                <AssertNoEvent target="uiCustomComp.cvScript" eventName="valid"/>
                <AssertPropertyValue target="uiCustomComp.uiTI" propertyName="errorString" valueExpression="value=CVConstant.CUST_ERROR_ZH"/>
            </body>
        </TestCase>

In this test, we've got the locale style of the uiCustomComp.cvScript set to 'gv' but we wan't to tests the 'zh' localized errorString of the uiCustomComp.uiTI, then we have to set the locale style to the one want 'zh'
                
> spark/validators/CurrencyValidator/Methods/CV_validate_error_message_localized_tester CV_errorTip_custom_invalidFormatCharsError_invalid_script_buttonTrig_35 fails
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-33270
>                 URL: https://issues.apache.org/jira/browse/FLEX-33270
>             Project: Apache Flex
>          Issue Type: Sub-task
>          Components: Mustella
>            Reporter: Frédéric THOMAS
>
> spark/validators/CurrencyValidator/Methods/CV_validate_error_message_localized_tester CV_errorTip_custom_invalidFormatCharsError_invalid_script_buttonTrig_35 fails

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira