flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1438221 - /flex/sdk/branches/develop/mustella/tests/mobile/components/DateSpinner/globalization/DS_zh_CN_tester.mxml
Date Thu, 24 Jan 2013 22:03:40 GMT
Author: pent
Date: Thu Jan 24 22:03:40 2013
New Revision: 1438221

URL: http://svn.apache.org/viewvc?rev=1438221&view=rev
Log:
Added specific formats to the tests to eliminiate OS/locale differences which may cause the
bitmap comparisons to fail

Modified:
    flex/sdk/branches/develop/mustella/tests/mobile/components/DateSpinner/globalization/DS_zh_CN_tester.mxml

Modified: flex/sdk/branches/develop/mustella/tests/mobile/components/DateSpinner/globalization/DS_zh_CN_tester.mxml
URL: http://svn.apache.org/viewvc/flex/sdk/branches/develop/mustella/tests/mobile/components/DateSpinner/globalization/DS_zh_CN_tester.mxml?rev=1438221&r1=1438220&r2=1438221&view=diff
==============================================================================
--- flex/sdk/branches/develop/mustella/tests/mobile/components/DateSpinner/globalization/DS_zh_CN_tester.mxml
(original)
+++ flex/sdk/branches/develop/mustella/tests/mobile/components/DateSpinner/globalization/DS_zh_CN_tester.mxml
Thu Jan 24 22:03:40 2013
@@ -55,6 +55,11 @@
 								className="comps.QANavigator" waitEvent="viewChangeComplete"/>
 				<RunCode code="application.navigator.pushView(views.zh_CNView)" 
 						 waitTarget="navigator" waitEvent="viewChangeComplete" timeout="18000" />
+						 
+				<SetProperty target="navigator.activeView.ds_zh_CN.mx_internal:dateTimeFormatterEx"
+                             propertyName="dateTimePattern" value="y年M月d日
ah?mm分ss秒z" />
+               <RunCode code="application.navigator.activeView.ds_zh_CN.mx_internal::dateTimeFormatterEx.styleChanged(null)"
/>
+                <RunCode code="application.navigator.activeView.ds_zh_CN.mx_internal::refreshDateTimeFormatter
= true" />
 				
 				<SetProperty target="navigator.activeView.ds_zh_CN" 
 							 propertyName="displayMode" valueExpression="value=DateSelectorDisplayMode.DATE" />
@@ -82,6 +87,11 @@
 								className="comps.QANavigator" waitEvent="viewChangeComplete"/>
 				<RunCode code="application.navigator.pushView(views.zh_CNView)" 
 						 waitTarget="navigator" waitEvent="viewChangeComplete" timeout="18000" />
+						 
+				<SetProperty target="navigator.activeView.ds_zh_CN.mx_internal:dateTimeFormatterEx"
+                             propertyName="dateTimePattern" value="y年M月d日
ah?mm分ss秒z" />
+               <RunCode code="application.navigator.activeView.ds_zh_CN.mx_internal::dateTimeFormatterEx.styleChanged(null)"
/>
+                <RunCode code="application.navigator.activeView.ds_zh_CN.mx_internal::refreshDateTimeFormatter
= true" />
 				
 				<SetProperty target="navigator.activeView.ds_zh_CN" 
 							 propertyName="displayMode" valueExpression="value=DateSelectorDisplayMode.TIME" waitEvent="updateComplete"/>
@@ -109,6 +119,12 @@
 								className="comps.QANavigator" waitEvent="viewChangeComplete"/>
 				<RunCode code="application.navigator.pushView(views.zh_CNView)" 
 						 waitTarget="navigator" waitEvent="viewChangeComplete" timeout="18000" />
+						 
+				<SetProperty target="navigator.activeView.ds_zh_CN.mx_internal:dateTimeFormatterEx"
+                             propertyName="dateTimePattern" value="y年M月d日
H?mm:ss秒z" />
+               <RunCode code="application.navigator.activeView.ds_zh_CN.mx_internal::dateTimeFormatterEx.styleChanged(null)"
/>
+                <RunCode code="application.navigator.activeView.ds_zh_CN.mx_internal::refreshDateTimeFormatter
= true" />
+                
 				<SetStyle target="navigator.activeView.ds_zh_CN" styleName="locale" value="ja_JP"/>
 				<SetProperty target="navigator.activeView.ds_zh_CN" 
 							 propertyName="displayMode" valueExpression="value=DateSelectorDisplayMode.DATE_AND_TIME"
waitEvent="updateComplete"/>
@@ -253,6 +269,12 @@
 								className="comps.QANavigator" waitEvent="viewChangeComplete" />
 				<RunCode code="application.navigator.pushView(views.zh_CNView)" 
 						 waitTarget="navigator" waitEvent="viewChangeComplete" timeout="18000" />
+						 
+				<SetProperty target="navigator.activeView.ds_zh_CN.mx_internal:dateTimeFormatterEx"
+                             propertyName="dateTimePattern" value="y年M月d日
ah?mm分ss秒z" />
+               <RunCode code="application.navigator.activeView.ds_zh_CN.mx_internal::dateTimeFormatterEx.styleChanged(null)"
/>
+                <RunCode code="application.navigator.activeView.ds_zh_CN.mx_internal::refreshDateTimeFormatter
= true" />
+                
 				<SetStyle target="navigator.activeView.ds_main" styleName="locale" value="ja_JP"/>
 				<SetProperty target="navigator.activeView.ds_main" propertyName="displayMode" 
 							 valueExpression="value=DateSelectorDisplayMode.DATE_AND_TIME"
@@ -336,6 +358,11 @@
 								className="comps.QANavigator" waitEvent="viewChangeComplete" />
 				<RunCode code="application.navigator.pushView(views.zh_CNView)" 
 						 waitTarget="navigator" waitEvent="viewChangeComplete" timeout="18000" />
+						 
+				<SetProperty target="navigator.activeView.ds_zh_CN.mx_internal:dateTimeFormatterEx"
+                             propertyName="dateTimePattern" value="y年M月d日
ah?mm分ss秒z" />
+               <RunCode code="application.navigator.activeView.ds_zh_CN.mx_internal::dateTimeFormatterEx.styleChanged(null)"
/>
+                <RunCode code="application.navigator.activeView.ds_zh_CN.mx_internal::refreshDateTimeFormatter
= true" />
 				
 				<SetProperty target="navigator.activeView.ds_main" propertyName="displayMode" 
 							 valueExpression="value=DateSelectorDisplayMode.TIME"
@@ -370,6 +397,12 @@
 								className="comps.QANavigator" waitEvent="viewChangeComplete" />
 				<RunCode code="application.navigator.pushView(views.zh_CNView)" 
 						 waitTarget="navigator" waitEvent="viewChangeComplete" timeout="18000" />
+						 
+				<SetProperty target="navigator.activeView.ds_zh_CN.mx_internal:dateTimeFormatterEx"
+                             propertyName="dateTimePattern" value="y年M月d日
ah?mm分ss秒z" />
+               <RunCode code="application.navigator.activeView.ds_zh_CN.mx_internal::dateTimeFormatterEx.styleChanged(null)"
/>
+                <RunCode code="application.navigator.activeView.ds_zh_CN.mx_internal::refreshDateTimeFormatter
= true" />
+                
 				<SetStyle target="navigator.activeView.ds_main" styleName="locale" value="ja_JP"/>
 				
 				<SetProperty target="navigator.activeView.ds_main" propertyName="displayMode" 
@@ -463,6 +496,11 @@
 								className="comps.QANavigator" waitEvent="viewChangeComplete" />
 				<RunCode code="application.navigator.pushView(views.zh_CNView)" 
 						 waitTarget="navigator" waitEvent="viewChangeComplete" timeout="18000" />
+						 
+				<SetProperty target="navigator.activeView.ds_zh_CN.mx_internal:dateTimeFormatterEx"
+                             propertyName="dateTimePattern" value="y年M月d日
ah?mm分ss秒z" />
+               <RunCode code="application.navigator.activeView.ds_zh_CN.mx_internal::dateTimeFormatterEx.styleChanged(null)"
/>
+                <RunCode code="application.navigator.activeView.ds_zh_CN.mx_internal::refreshDateTimeFormatter
= true" />
 				
 				<SetProperty target="navigator.activeView.ds_main" propertyName="displayMode" 
 							 valueExpression="value=DateSelectorDisplayMode.TIME"
@@ -487,7 +525,6 @@
 									 valueExpression="value=DateSelectorDisplayMode.TIME"/>
 				<AssertPropertyValue target="navigator.activeView.ds_main" propertyName="selectedDate"

 									 valueExpression="value=new Date(1997, 2, 1, 3, 58, 55)"/>
-				
 				<CompareBitmap url="../globalization/baselines" target="navigator.activeView.ds_main">
 					<ConditionalValue deviceDensity="160" os="win" />
 					<ConditionalValue deviceDensity="320" os="win" />
@@ -507,6 +544,11 @@
 								className="comps.QANavigator" waitEvent="viewChangeComplete" />
 				<RunCode code="application.navigator.pushView(views.zh_CNView)" 
 						 waitTarget="navigator" waitEvent="viewChangeComplete" timeout="18000" />
+						 
+				<SetProperty target="navigator.activeView.ds_zh_CN.mx_internal:dateTimeFormatterEx"
+                             propertyName="dateTimePattern" value="y年M月d日
ah?mm分ss秒z" />
+               <RunCode code="application.navigator.activeView.ds_zh_CN.mx_internal::dateTimeFormatterEx.styleChanged(null)"
/>
+                <RunCode code="application.navigator.activeView.ds_zh_CN.mx_internal::refreshDateTimeFormatter
= true" />
 				
 				<SetProperty target="navigator.activeView.ds_main" propertyName="displayMode" 
 							 valueExpression="value=DateSelectorDisplayMode.DATE_AND_TIME"



Mime
View raw message