flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cframp...@apache.org
Subject svn commit: r1432154 - /flex/sdk/branches/develop/mustella/tests/mobile/components/DateSpinner/properties/DS_properties_displayMode_tester.mxml
Date Fri, 11 Jan 2013 17:05:04 GMT
Author: cframpton
Date: Fri Jan 11 17:05:03 2013
New Revision: 1432154

URL: http://svn.apache.org/viewvc?rev=1432154&view=rev
Log:
FLEX-33347 - Add test case DS_mode_date_time_change_date_to_month_with_fewer_days.

Modified:
    flex/sdk/branches/develop/mustella/tests/mobile/components/DateSpinner/properties/DS_properties_displayMode_tester.mxml

Modified: flex/sdk/branches/develop/mustella/tests/mobile/components/DateSpinner/properties/DS_properties_displayMode_tester.mxml
URL: http://svn.apache.org/viewvc/flex/sdk/branches/develop/mustella/tests/mobile/components/DateSpinner/properties/DS_properties_displayMode_tester.mxml?rev=1432154&r1=1432153&r2=1432154&view=diff
==============================================================================
--- flex/sdk/branches/develop/mustella/tests/mobile/components/DateSpinner/properties/DS_properties_displayMode_tester.mxml
(original)
+++ flex/sdk/branches/develop/mustella/tests/mobile/components/DateSpinner/properties/DS_properties_displayMode_tester.mxml
Fri Jan 11 17:05:03 2013
@@ -376,7 +376,35 @@
 				<AssertMethodValue method="value=application.navigator.activeView.ds_binding.getHourRenderer(0).label"
value="11" />
 			</body>
 		</TestCase>
-        
+				
+		<TestCase testID="DS_mode_date_time_change_date_to_month_with_fewer_days" description="dateAndTime
mode, scroll from Jan 31 to Feb 1" keywords="[DateSpinner, mode, FLEX-33347]">
+			<setup>
+				<ResetComponent target="navigator" className="comps.QANavigator" waitEvent="viewChangeComplete"
/>
+				<RunCode code="application.navigator.pushView(views.DisplayModeView)" 
+						 waitTarget="navigator" waitEvent="viewChangeComplete" timeout="18000" /> 
+				<SetProperty propertyName="displayMode" target="navigator.activeView.ds_binding" valueExpression="value=DateSelectorDisplayMode.DATE_AND_TIME"
waitEvent="updateComplete"/>
+				<!--Programatically date to Jan 31, 2013. -->
+				<RunCode code="application.navigator.activeView.bindableDate = new Date(2013,0,31,9,15,55)"
waitEvent="valueCommit" waitTarget="navigator.activeView.ds_binding" />
+			</setup>
+			<body>
+				<AssertPropertyValue target="navigator.activeView.ds_binding" propertyName="displayMode"
valueExpression="value=DateSelectorDisplayMode.DATE_AND_TIME" />
+				<AssertPropertyValue target="navigator.activeView.ds_binding" propertyName="selectedDate"
valueExpression="value=new Date(2013,0,31,9,15,55)" />
+				
+				<!-- mouse click to let list move down to Feb 2 (before bug fix moved to Mar 2) -->
+				<SimulateMouseGesture target="navigator.activeView.ds_binding" 
+									  dragYFrom="100" dragYTo="15" dragXFrom="56" dragXTo="56" 
+									  recordedDPI="160" waitEvent="change" />
+				
+				<AssertPropertyValue target="navigator.activeView.ds_binding" propertyName="selectedDate"

+									 valueExpression="value=new Date(2013,1,2,9,15,55)"/>
+
+				<AssertMethodValue method="value=application.navigator.activeView.ds_binding.getDateRenderer(0).label"
value="Sat, Feb 2" />
+				<AssertMethodValue method="value=application.navigator.activeView.ds_binding.getHourRenderer(0).label"
value="9" />
+				<AssertMethodValue method="value=application.navigator.activeView.ds_binding.getMinuteRenderer(0).label"
value="15" />
+				<AssertMethodValue method="value=application.navigator.activeView.ds_binding.getMeridianRenderer(0).label"
value="AM" />
+			</body>
+		</TestCase>
+
 		<TestCase testID="DS_mode_date_time_change_hours_minutes_meridian" description="dateAndTime
mode, change hours,minutes,meridian, verify the date retained the original value" keywords="[DateSpinner,
mode]">
 			<setup>
 				<ResetComponent target="navigator" className="comps.QANavigator" waitEvent="viewChangeComplete"
/>



Mime
View raw message