You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2013/05/23 18:22:37 UTC

[3/3] git commit: [flex-sdk] [refs/heads/develop] - Fix these tests on Windows. The default format might include trailingZeros

Fix these tests on Windows.  The default format might include trailingZeros


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/7919890e
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/7919890e
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/7919890e

Branch: refs/heads/develop
Commit: 7919890eddeaed20c66c087ff5b46baf3af6efcc
Parents: 76a5502
Author: Alex Harui <ah...@apache.org>
Authored: Thu May 23 06:10:30 2013 +0100
Committer: Alex Harui <ah...@apache.org>
Committed: Thu May 23 06:12:26 2013 +0100

----------------------------------------------------------------------
 .../Properties/NumericStepper_Properties.mxml      |   11 +++++++++++
 .../Styles/NumericStepper_Styles_Mirroring.mxml    |    7 ++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/7919890e/mustella/tests/gumbo/components/NumericStepper/Properties/NumericStepper_Properties.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/gumbo/components/NumericStepper/Properties/NumericStepper_Properties.mxml b/mustella/tests/gumbo/components/NumericStepper/Properties/NumericStepper_Properties.mxml
index 0d827f6..91e4257 100644
--- a/mustella/tests/gumbo/components/NumericStepper/Properties/NumericStepper_Properties.mxml
+++ b/mustella/tests/gumbo/components/NumericStepper/Properties/NumericStepper_Properties.mxml
@@ -19,6 +19,16 @@
     ]]>
     </fx:Metadata>
 
+	<fx:Script>
+		<![CDATA[
+			
+			public function myValueFormatFunction(value:Number):String
+			{
+				return int(value).toString();
+			}
+		]]>
+	</fx:Script>   
+	
     <testCases>
 
 		<TestCase testID="NumericStepper_defaultValue" keywords="[NumericStepper, Default]" description="Test Default Values for Spark NumericStepper">
@@ -548,6 +558,7 @@
 		<TestCase testID="NumericStepper_skin1" keywords="[NumericStepper, Skin]" description="Test Skinned NumericStepper">
 		    <setup>
 				<ResetComponent target="myNS_skinned" className="comps.mySkinComp" waitEvent="updateComplete" waitTarget="myNS_skinned"/>
+				<SetProperty target="myNS_skinned" propertyName="valueFormatFunction" valueExpression="value=myValueFormatFunction"/>				
 		    </setup>
 		    <body>
 				<DispatchMouseEvent type="rollOver" target="myNS_skinned.incrementButton" localX="5" localY="5" waitEvent="rollOver" waitTarget="myNS_skinned.incrementButton"/>

http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/7919890e/mustella/tests/gumbo/components/NumericStepper/Styles/NumericStepper_Styles_Mirroring.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/gumbo/components/NumericStepper/Styles/NumericStepper_Styles_Mirroring.mxml b/mustella/tests/gumbo/components/NumericStepper/Styles/NumericStepper_Styles_Mirroring.mxml
index dbcbc8f..da2e97b 100644
--- a/mustella/tests/gumbo/components/NumericStepper/Styles/NumericStepper_Styles_Mirroring.mxml
+++ b/mustella/tests/gumbo/components/NumericStepper/Styles/NumericStepper_Styles_Mirroring.mxml
@@ -23,8 +23,11 @@
 	
 	<fx:Script>
 		<![CDATA[
+			import mx.core.FlexGlobals;
+
+			public function myValueFormatFunction(value:Number):String
 			{
-				import mx.core.FlexGlobals;
+				return int(value).toString();
 			}
 		]]>
 	</fx:Script>   
@@ -70,6 +73,7 @@
 		<TestCase testID="NumericStepper_Styles_Mirroring_keyboard" keywords="[NumericStepper, Mirroring, rtl]" description="Test keyboard keys on rtl NumericStepper">
 			<setup>
 				<ResetComponent target="ns" className="spark.components.NumericStepper" waitEvent="updateComplete"/>
+				<SetProperty target="ns" propertyName="valueFormatFunction" valueExpression="value=myValueFormatFunction"/>				
 				<SetStyle target="ns" styleName="layoutDirection" value="rtl" waitEvent="updateComplete"/>				
 				<SetProperty target="ns" propertyName="stepSize" value="5" />
 			</setup>
@@ -205,6 +209,7 @@
 		<TestCase testID="NumericStepper_Styles_Mirroring_rotation" keywords="[NumericStepper, Mirroring, rtl]" description="Test rotation with direction rtl on NumericStepper">
 			<setup>
 				<ResetComponent target="ns" className="spark.components.NumericStepper" waitEvent="updateComplete"/>
+				<SetProperty target="ns" propertyName="valueFormatFunction" valueExpression="value=myValueFormatFunction"/>				
 				<SetProperty target="ns" propertyName="rotation" value="45"/>
 				<SetStyle target="ns" styleName="layoutDirection" value="rtl" waitEvent="updateComplete"/>				
 			</setup>