Author: fthomas
Date: Wed Dec 12 17:24:43 2012
New Revision: 1420852

URL: http://svn.apache.org/viewvc?rev=1420852&view=rev
Log:
FLEX-33269 Fixed testcase for sort function of Sort without SortField set to 
fields property on spark:List component fails

Modified:
    
incubator/flex/sdk/branches/develop/mustella/tests/spark/collections/Sort/Properties/SF_Sort_fields_tester.mxml

Modified: 
incubator/flex/sdk/branches/develop/mustella/tests/spark/collections/Sort/Properties/SF_Sort_fields_tester.mxml
URL: 
http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/spark/collections/Sort/Properties/SF_Sort_fields_tester.mxml?rev=1420852&r1=1420851&r2=1420852&view=diff
==============================================================================
--- 
incubator/flex/sdk/branches/develop/mustella/tests/spark/collections/Sort/Properties/SF_Sort_fields_tester.mxml
 (original)
+++ 
incubator/flex/sdk/branches/develop/mustella/tests/spark/collections/Sort/Properties/SF_Sort_fields_tester.mxml
 Wed Dec 12 17:24:43 2012
@@ -145,7 +145,7 @@
                 <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" 
propertyName="flashCollatorLocale" 
value="{flash.system.Capabilities.language}"/>
                 <SetProperty target="uiCustomListComp.listDataProvider" 
propertyName="sort" 
valueExpression="value=application.uiCustomListComp.mySort"/>
                 <RunCode 
code="application.uiCustomListComp.listDataProvider.refresh()" 
waitEvent="collectionChange" waitTarget="uiCustomListComp.listDataProvider"/>
             </setup>
@@ -154,7 +154,7 @@
                 <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"/>
+                <SetProperty target="uiCustomListComp" 
propertyName="flashCollatorLocale" 
value="{flash.system.Capabilities.language}"/>
                 <AssertMethodValue 
method="value=SFConstant.getArrayOfField(application.uiCustomListComp.listValueField,
 application.uiCustomListComp.listDataProvider);" 
valueExpression="value=application.uiCustomListComp.flashSortedArray"/>
             </body>
         </TestCase>


Reply via email to