[
https://issues.apache.org/jira/browse/FLEX-33269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13499647#comment-13499647
]
Frédéric THOMAS commented on FLEX-33269:
----------------------------------------
<TestCase
testID="SF_Sort_fields_without_sortfield_invalid_locale_test_9"
description="testcase for sort function of Sort without SortField set to fields
property on spark:List component" keywords="[Sort, SortField, spark:List, set
locale, fields property, without SortField, set invalid locale value: part of
locale, not a locale ]">
<setup>
<ResetComponent target="uiCustomListComp"
className="newComps.CustomListComp" waitEvent="updateComplete"
waitTarget="uiCustomListComp"/>
<SetStyle target="uiCustomListComp.mySort" styleName="locale"
valueExpression="value=''"/>
<SetProperty target="uiCustomListComp"
propertyName="listDataProvider"
valueExpression="value=application.uiCustomListComp.dataComp.myAddressStrArr"/>
<SetProperty target="uiCustomListComp"
propertyName="flashCollatorLocale" value="en"/>
<SetProperty target="uiCustomListComp.listDataProvider"
propertyName="sort"
valueExpression="value=application.uiCustomListComp.mySort"/>
<RunCode
code="application.uiCustomListComp.listDataProvider.refresh()"
waitEvent="collectionChange" waitTarget="uiCustomListComp.listDataProvider"/>
</setup>
<body>
<AssertStyleValue target="uiCustomListComp.mySort"
styleName="locale" valueExpression="value=''"/>
<AssertMethodValue
method="value=SFConstant.getArrayOfField(application.uiCustomListComp.listValueField,
application.uiCustomListComp.listDataProvider);"
valueExpression="value=application.uiCustomListComp.flashSortedArray"/>
<SetStyle target="uiCustomListComp.mySort" styleName="locale"
valueExpression="value='notLocale'"/>
<RunCode
code="application.uiCustomListComp.listDataProvider.refresh()"
waitEvent="collectionChange" waitTarget="uiCustomListComp.listDataProvider"/>
<SetProperty target="uiCustomListComp"
propertyName="flashCollatorLocale" value="en"/>
<AssertMethodValue
method="value=SFConstant.getArrayOfField(application.uiCustomListComp.listValueField,
application.uiCustomListComp.listDataProvider);"
valueExpression="value=application.uiCustomListComp.flashSortedArray"/>
</body>
</TestCase>
My computer is in French, the flashCollatorLocale="en" has no effect, the only
way this test pass is setting the flashCollatorLocale="fr", I don't know how to
resolve that
> testcase for sort function of Sort without SortField set to fields property
> on spark:List component fails
> ---------------------------------------------------------------------------------------------------------
>
> Key: FLEX-33269
> URL: https://issues.apache.org/jira/browse/FLEX-33269
> Project: Apache Flex
> Issue Type: Sub-task
> Components: Mustella
> Reporter: Frédéric THOMAS
>
> testcase for sort function of Sort without SortField set to fields property
> on spark:List component 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