incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1369944 [1/2] - in /incubator/flex/trunk/mustella/tests/Formatters: ./ Properties/ SWFs/
Date Mon, 06 Aug 2012 19:37:40 GMT
Author: pent
Date: Mon Aug  6 19:37:39 2012
New Revision: 1369944

URL: http://svn.apache.org/viewvc?rev=1369944&view=rev
Log:
Mustella submission

Added:
    incubator/flex/trunk/mustella/tests/Formatters/
    incubator/flex/trunk/mustella/tests/Formatters/Properties/
    incubator/flex/trunk/mustella/tests/Formatters/Properties/Bug103262.mxml
    incubator/flex/trunk/mustella/tests/Formatters/Properties/DateFormatter_Main_tester.mxml
    incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Number_Properties.mxml
    incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Properties_Currencies.mxml
    incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Properties_Dates.mxml
    incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Properties_Numbers.mxml
    incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Properties_Phones.mxml
    incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Properties_ZipCodes.mxml
    incubator/flex/trunk/mustella/tests/Formatters/SWFs/
    incubator/flex/trunk/mustella/tests/Formatters/SWFs/CustomNf.mxml
    incubator/flex/trunk/mustella/tests/Formatters/SWFs/DateFormatter_Main.mxml
    incubator/flex/trunk/mustella/tests/Formatters/SWFs/Formatters_Main.mxml

Added: incubator/flex/trunk/mustella/tests/Formatters/Properties/Bug103262.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Formatters/Properties/Bug103262.mxml?rev=1369944&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Formatters/Properties/Bug103262.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Formatters/Properties/Bug103262.mxml Mon Aug  6 19:37:39 2012
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="Formatters/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Formatters_Main.mxml">
+
+    <!-- this set of lines form a template that must be in each unit test -->
+    <mx:Script>
+    <![CDATA[
+    public static function init(o:DisplayObject):void
+    {
+
+    }
+    ]]>
+    </mx:Script>
+    <mx:Metadata>
+    <![CDATA[
+        [Mixin]
+    ]]>
+    </mx:Metadata>
+    <!-- end of set of lines that must be in each unit test -->
+
+    <mx:Script>
+    <![CDATA[
+    import mx.controls.TextInput;
+    import mx.formatters.CurrencyFormatter;
+    import mx.managers.SystemManager;
+
+    public function FormatCurrencySimple():void{
+        application.cf.currencySymbol="$";
+        application.cf.precision=3;
+        application.cf.rounding="up";
+        application.cf.decimalSeparatorTo=".";
+        application.cf.thousandsSeparatorTo=",";
+        application.cf.useThousandsSeparator=true;
+        application.cf.useNegativeSign=true;
+        application.ti.text= application.cf.format(.5);
+    }
+    public function FormatCurrencySymbol():void{
+        application.cf.currencySymbol="Rs.";
+        application.ti.text= application.cf.format(.32);
+    }
+    public function FormatCurrencyPrecision():void{
+        application.cf.precision=5;
+        application.ti.text= application.cf.format(.987);
+    }
+    public function FormatCurrencyUseThousandsSeparator():void{
+        application.cf.useThousandsSeparator=false;
+        application.ti.text= application.cf.format(.98765);
+    }
+    public function FormatCurrencyPrecisionZero():void{
+        application.cf.precision=0;
+        application.ti.text= application.cf.format(.98765);
+    }
+    ]]>
+    </mx:Script>
+
+    <testCases>
+        <TestCase testID="Formatters_Currency_less_than_one" description="Test the properties of Currency Formatters." keywords="[Simple, Currency, Formatter, fraction]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencySimple();" />
+                <WaitForEffectsToEnd waitEvent="updateComplete" waitTarget="ti"/>
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="$0.500" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_less_than_half" description="Test the properties of Currency Formatters." keywords="[currencySymbol, inline, Currency, Formatter, fraction, half]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencySymbol();" waitEvent="updateComplete" waitTarget="ti"/>
+                <WaitForEffectsToEnd />
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="Rs.0.320" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_precision_fraction" description="Test the properties of Currency Formatters." keywords="[precision, inline, Currency, Formatter, fraction]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencyPrecision();" waitEvent="updateComplete" waitTarget="ti"/>
+                <WaitForEffectsToEnd />
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="Rs.0.98700" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_useThousandsSeparator_fraction" description="Test the properties of Currency Formatters." keywords="[useThousandsSeparator, inline, Currency, Formatter, fraction]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencyUseThousandsSeparator();" waitEvent="updateComplete" waitTarget="ti"/>
+                <WaitForEffectsToEnd />
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="Rs.0.98765" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_Precision_Zero_fraction" description="Test the properties of Currency Formatters." keywords="[precision, zero, inline, Currency, Formatter,fraction]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencyPrecisionZero();" waitEvent="updateComplete" waitTarget="ti"/>
+                <WaitForEffectsToEnd />
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="Rs.1" />
+                <RunCode code="FormatCurrencySimple();" />
+            </body>
+        </TestCase>
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Formatters/Properties/DateFormatter_Main_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Formatters/Properties/DateFormatter_Main_tester.mxml?rev=1369944&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Formatters/Properties/DateFormatter_Main_tester.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Formatters/Properties/DateFormatter_Main_tester.mxml Mon Aug  6 19:37:39 2012
@@ -0,0 +1,397 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="Formatters/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="DateFormatter_Main.mxml">
+
+    <mx:Script>
+    <![CDATA[
+
+       public static function init(o:DisplayObject):void
+        {
+
+        }
+
+
+    ]]>
+    </mx:Script>
+
+    <mx:Metadata>
+    <![CDATA[
+        [Mixin]
+    ]]>
+    </mx:Metadata>
+
+
+<testCases>
+
+     <TestCase testID="DateFormatter_test1" description="" keywords="[DateFormatter, Date.parse, Date.toDateString]">
+         <body>
+            <RunCode code="application.testDateFormatter('1')" waitTarget="dateFormatOutputDefaultStr" waitEvent="updateComplete" />
+            <AssertPropertyValue propertyName="text" value="01/01/2000" target="dateFormatOutputDefaultStr"/>
+            <AssertPropertyValue propertyName="text" value="01/01/2000" target="dateFormatOutputDefaultObj"/>
+            <AssertPropertyValue propertyName="text" value="Saturday, January. 1, 2000 at 12:00 AM" target="dateFormatOutputDefaultMaskFull"/>
+            <AssertPropertyValue propertyName="text" value="Jan. 1, 2000 at 12:00 AM" target="dateFormatOutputDefaultMaskLong"/>
+            <AssertPropertyValue propertyName="text" value="Jan. 1, 2000" target="dateFormatOutputDefaultMaskMedium"/>
+            <AssertPropertyValue propertyName="text" value="12:00 AM" target="dateFormatOutputDefaultMaskTime"/>
+            <AssertPropertyValue propertyName="text" value="Sat Jan 1 2000" target="dateStringOutput"/>
+        </body>
+      </TestCase>
+
+
+     <TestCase testID="DateFormatter_test2" description="" keywords="[DateFormatter, Date.parse, Date.toDateString]">
+         <body>
+            <RunCode code="application.testDateFormatter('2')" waitTarget="dateFormatOutputDefaultStr" waitEvent="updateComplete" />
+            <AssertPropertyValue propertyName="text" value="07/04/2008" target="dateFormatOutputDefaultStr"/>
+            <AssertPropertyValue propertyName="text" value="07/04/2008" target="dateFormatOutputDefaultObj"/>
+            <AssertPropertyValue propertyName="text" value="Friday, July. 4, 2008 at 12:00 AM" target="dateFormatOutputDefaultMaskFull"/>
+            <AssertPropertyValue propertyName="text" value="Jul. 4, 2008 at 12:00 AM" target="dateFormatOutputDefaultMaskLong"/>
+            <AssertPropertyValue propertyName="text" value="Jul. 4, 2008" target="dateFormatOutputDefaultMaskMedium"/>
+            <AssertPropertyValue propertyName="text" value="12:00 AM" target="dateFormatOutputDefaultMaskTime"/>
+            <AssertPropertyValue propertyName="text" value="Fri Jul 4 2008" target="dateStringOutput"/>
+        </body>
+      </TestCase>
+
+
+     <TestCase testID="DateFormatter_test3" description="" keywords="[DateFormatter, Date.parse, Date.toDateString]">
+         <body>
+            <RunCode code="application.testDateFormatter('3')" waitTarget="dateFormatOutputDefaultStr" waitEvent="updateComplete" />
+            <AssertPropertyValue propertyName="text" value="03/06/1965" target="dateFormatOutputDefaultStr"/>
+            <AssertPropertyValue propertyName="text" value="03/06/1965" target="dateFormatOutputDefaultObj"/>
+            <AssertPropertyValue propertyName="text" value="Saturday, March. 6, 1965 at 9:42 AM" target="dateFormatOutputDefaultMaskFull"/>
+            <AssertPropertyValue propertyName="text" value="Mar. 6, 1965 at 9:42 AM" target="dateFormatOutputDefaultMaskLong"/>
+            <AssertPropertyValue propertyName="text" value="Mar. 6, 1965" target="dateFormatOutputDefaultMaskMedium"/>
+            <AssertPropertyValue propertyName="text" value="9:42 AM" target="dateFormatOutputDefaultMaskTime"/>
+            <AssertPropertyValue propertyName="text" value="Sat Mar 6 1965" target="dateStringOutput"/>
+        </body>
+      </TestCase>
+
+     <TestCase testID="DateFormatter_test5" description="" keywords="[DateFormatter, Date.parse, Date.toDateString]">
+         <body>
+            <RunCode code="application.testDateFormatter('5')" waitTarget="dateFormatOutputDefaultStr" waitEvent="updateComplete" />
+            <AssertPropertyValue propertyName="text" value="01/01/1900" target="dateFormatOutputDefaultStr"/>
+            <AssertPropertyValue propertyName="text" value="01/01/1900" target="dateFormatOutputDefaultObj"/>
+            <AssertPropertyValue propertyName="text" value="Monday, January. 1, 1900 at 12:00 AM" target="dateFormatOutputDefaultMaskFull"/>
+            <AssertPropertyValue propertyName="text" value="Jan. 1, 1900 at 12:00 AM" target="dateFormatOutputDefaultMaskLong"/>
+            <AssertPropertyValue propertyName="text" value="Jan. 1, 1900" target="dateFormatOutputDefaultMaskMedium"/>
+            <AssertPropertyValue propertyName="text" value="12:00 AM" target="dateFormatOutputDefaultMaskTime"/>
+            <AssertPropertyValue propertyName="text" value="Mon Jan 1 1900" target="dateStringOutput"/>
+        </body>
+      </TestCase>
+
+
+     <TestCase testID="DateFormatter_test6" description="" keywords="[DateFormatter, Date.parse, Date.toDateString]">
+         <body>
+            <RunCode code="application.testDateFormatter('6')" waitTarget="dateFormatOutputDefaultStr" waitEvent="updateComplete" />
+            <AssertPropertyValue propertyName="text" value="12/31/1999" target="dateFormatOutputDefaultStr"/>
+            <AssertPropertyValue propertyName="text" value="12/31/1999" target="dateFormatOutputDefaultObj"/>
+            <AssertPropertyValue propertyName="text" value="Friday, December. 31, 1999 at 12:00 AM" target="dateFormatOutputDefaultMaskFull"/>
+            <AssertPropertyValue propertyName="text" value="Dec. 31, 1999 at 12:00 AM" target="dateFormatOutputDefaultMaskLong"/>
+            <AssertPropertyValue propertyName="text" value="Dec. 31, 1999" target="dateFormatOutputDefaultMaskMedium"/>
+            <AssertPropertyValue propertyName="text" value="12:00 AM" target="dateFormatOutputDefaultMaskTime"/>
+            <AssertPropertyValue propertyName="text" value="Fri Dec 31 1999" target="dateStringOutput"/>
+        </body>
+      </TestCase>
+
+
+     <TestCase testID="DateFormatter_test7" description="" keywords="[DateFormatter, Date.parse, Date.toDateString]">
+         <body>
+            <RunCode code="application.testDateFormatter('7')" waitTarget="dateFormatOutputDefaultStr" waitEvent="updateComplete" />
+            <AssertPropertyValue propertyName="text" value="12/31/30000000" target="dateFormatOutputDefaultStr"/>
+            <AssertPropertyValue propertyName="text" value="12/31/30000000" target="dateFormatOutputDefaultObj"/>
+            <AssertPropertyValue propertyName="text" value="Sunday, December. 31, 30000000 at 11:59 PM" target="dateFormatOutputDefaultMaskFull"/>
+            <AssertPropertyValue propertyName="text" value="Dec. 31, 30000000 at 11:59 PM" target="dateFormatOutputDefaultMaskLong"/>
+            <AssertPropertyValue propertyName="text" value="Dec. 31, 30000000" target="dateFormatOutputDefaultMaskMedium"/>
+            <AssertPropertyValue propertyName="text" value="11:59 PM" target="dateFormatOutputDefaultMaskTime"/>
+            <AssertPropertyValue propertyName="text" value="Sun Dec 31 30000000" target="dateStringOutput"/>
+        </body>
+      </TestCase>
+
+
+     <TestCase testID="DateFormatter_test8" description="" keywords="[DateFormatter, Date.parse, Date.toDateString]">
+         <body>
+            <RunCode code="application.testDateFormatter('8')" waitTarget="dateFormatOutputDefaultStr" waitEvent="updateComplete" />
+            <AssertPropertyValue propertyName="text" value="02/29/2012" target="dateFormatOutputDefaultStr"/>
+            <AssertPropertyValue propertyName="text" value="02/29/2012" target="dateFormatOutputDefaultObj"/>
+            <AssertPropertyValue propertyName="text" value="Wednesday, February. 29, 2012 at 12:00 AM" target="dateFormatOutputDefaultMaskFull"/>
+            <AssertPropertyValue propertyName="text" value="Feb. 29, 2012 at 12:00 AM" target="dateFormatOutputDefaultMaskLong"/>
+            <AssertPropertyValue propertyName="text" value="Feb. 29, 2012" target="dateFormatOutputDefaultMaskMedium"/>
+            <AssertPropertyValue propertyName="text" value="12:00 AM" target="dateFormatOutputDefaultMaskTime"/>
+            <AssertPropertyValue propertyName="text" value="Wed Feb 29 2012" target="dateStringOutput"/>
+        </body>
+      </TestCase>
+
+
+     <TestCase testID="DateFormatter_test9" description="" keywords="[DateFormatter, Date.parse, Date.toDateString]">
+         <body>
+            <RunCode code="application.testDateFormatter('9')" waitTarget="dateFormatOutputDefaultStr" waitEvent="updateComplete" />
+            <AssertPropertyValue propertyName="text" value="01/01/1970" target="dateFormatOutputDefaultStr"/>
+            <AssertPropertyValue propertyName="text" value="01/01/1970" target="dateFormatOutputDefaultObj"/>
+            <AssertPropertyValue propertyName="text" value="Thursday, January. 1, 1970 at 12:00 AM" target="dateFormatOutputDefaultMaskFull"/>
+            <AssertPropertyValue propertyName="text" value="Jan. 1, 1970 at 12:00 AM" target="dateFormatOutputDefaultMaskLong"/>
+            <AssertPropertyValue propertyName="text" value="Jan. 1, 1970" target="dateFormatOutputDefaultMaskMedium"/>
+            <AssertPropertyValue propertyName="text" value="12:00 AM" target="dateFormatOutputDefaultMaskTime"/>
+            <AssertPropertyValue propertyName="text" value="Thu Jan 1 1970" target="dateStringOutput"/>
+        </body>
+      </TestCase>
+     <TestCase testID="DateFormatter_test10" description="" keywords="[DateFormatter, Date.parse, Date.toDateString]">
+         <body>
+            <RunCode code="application.testDateFormatter('10')" waitTarget="dateFormatOutputDefaultStr" waitEvent="updateComplete" />
+            <AssertPropertyValue propertyName="text" value="12/31/1969" target="dateFormatOutputDefaultStr"/>
+            <AssertPropertyValue propertyName="text" value="12/31/1969" target="dateFormatOutputDefaultObj"/>
+            <AssertPropertyValue propertyName="text" value="Wednesday, December. 31, 1969 at 7:00 PM" target="dateFormatOutputDefaultMaskFull"/>
+            <AssertPropertyValue propertyName="text" value="Dec. 31, 1969 at 7:00 PM" target="dateFormatOutputDefaultMaskLong"/>
+            <AssertPropertyValue propertyName="text" value="Dec. 31, 1969" target="dateFormatOutputDefaultMaskMedium"/>
+            <AssertPropertyValue propertyName="text" value="7:00 PM" target="dateFormatOutputDefaultMaskTime"/>
+            <AssertPropertyValue propertyName="text" value="Wed Dec 31 1969" target="dateStringOutput"/>
+       </body>
+      </TestCase>
+
+
+     <TestCase testID="DateFormatter_test11" description="" keywords="[DateFormatter, Date.parse, Date.toDateString]">
+         <body>
+            <RunCode code="application.testDateFormatter('11')" waitTarget="dateFormatOutputDefaultStr" waitEvent="updateComplete" />
+            <AssertPropertyValue propertyName="text" value="07/21/1969" target="dateFormatOutputDefaultStr"/>
+            <AssertPropertyValue propertyName="text" value="07/21/1969" target="dateFormatOutputDefaultObj"/>
+            <AssertPropertyValue propertyName="text" value="Monday, July. 21, 1969 at 3:16 PM" target="dateFormatOutputDefaultMaskFull"/>
+            <AssertPropertyValue propertyName="text" value="Jul. 21, 1969 at 3:16 PM" target="dateFormatOutputDefaultMaskLong"/>
+            <AssertPropertyValue propertyName="text" value="Jul. 21, 1969" target="dateFormatOutputDefaultMaskMedium"/>
+            <AssertPropertyValue propertyName="text" value="3:16 PM" target="dateFormatOutputDefaultMaskTime"/>
+            <AssertPropertyValue propertyName="text" value="Mon Jul 21 1969" target="dateStringOutput"/>
+            <AssertPropertyValue propertyName="text" value="69" target="datePartYY"/>
+            <AssertPropertyValue propertyName="text" value="1969" target="datePartYYYY"/>
+            <AssertPropertyValue propertyName="text" value="7" target="datePartM"/>
+            <AssertPropertyValue propertyName="text" value="07" target="datePartMM"/>
+            <AssertPropertyValue propertyName="text" value="Jul" target="datePartMMM"/>
+            <AssertPropertyValue propertyName="text" value="July" target="datePartMMMM"/>
+            <AssertPropertyValue propertyName="text" value="21" target="datePartD"/>
+            <AssertPropertyValue propertyName="text" value="21" target="datePartDD"/>
+            <AssertPropertyValue propertyName="text" value="1" target="datePartE"/>
+            <AssertPropertyValue propertyName="text" value="Mon" target="datePartEEE"/>
+            <AssertPropertyValue propertyName="text" value="Monday" target="datePartEEEE"/>
+            <AssertPropertyValue propertyName="text" value="PM" target="datePartA"/>
+            <AssertPropertyValue propertyName="text" value="15" target="datePartJ"/>
+            <AssertPropertyValue propertyName="text" value="15" target="datePartH"/>
+            <AssertPropertyValue propertyName="text" value="3" target="datePartK"/>
+            <AssertPropertyValue propertyName="text" value="3" target="datePartL"/>
+            <AssertPropertyValue propertyName="text" value="16" target="datePartN"/>
+            <AssertPropertyValue propertyName="text" value="16" target="datePartNN"/>
+            <AssertPropertyValue propertyName="text" value="0" target="datePartS"/>
+
+
+         </body>
+      </TestCase>
+
+
+     <TestCase testID="DateFormatter_test12" description="" keywords="[DateFormatter, Date.parse, Date.toDateString]">
+         <body>
+            <RunCode code="application.testDateFormatter('12')" waitTarget="dateFormatOutputDefaultStr" waitEvent="updateComplete" />
+            <AssertPropertyValue propertyName="text" value="02/01/1901" target="dateFormatOutputDefaultStr"/>
+            <AssertPropertyValue propertyName="text" value="02/01/1901" target="dateFormatOutputDefaultObj"/>
+            <AssertPropertyValue propertyName="text" value="Friday, February. 1, 1901 at 1:01 AM" target="dateFormatOutputDefaultMaskFull"/>
+            <AssertPropertyValue propertyName="text" value="Feb. 1, 1901 at 1:01 AM" target="dateFormatOutputDefaultMaskLong"/>
+            <AssertPropertyValue propertyName="text" value="Feb. 1, 1901" target="dateFormatOutputDefaultMaskMedium"/>
+            <AssertPropertyValue propertyName="text" value="1:01 AM" target="dateFormatOutputDefaultMaskTime"/>
+            <AssertPropertyValue propertyName="text" value="Fri Feb 1 1901" target="dateStringOutput"/>
+            <AssertPropertyValue propertyName="text" value="01" target="datePartYY"/>
+            <AssertPropertyValue propertyName="text" value="1901" target="datePartYYYY"/>
+            <AssertPropertyValue propertyName="text" value="2" target="datePartM"/>
+            <AssertPropertyValue propertyName="text" value="02" target="datePartMM"/>
+            <AssertPropertyValue propertyName="text" value="Feb" target="datePartMMM"/>
+            <AssertPropertyValue propertyName="text" value="February" target="datePartMMMM"/>
+            <AssertPropertyValue propertyName="text" value="1" target="datePartD"/>
+            <AssertPropertyValue propertyName="text" value="01" target="datePartDD"/>
+            <AssertPropertyValue propertyName="text" value="5" target="datePartE"/>
+            <AssertPropertyValue propertyName="text" value="Fri" target="datePartEEE"/>
+            <AssertPropertyValue propertyName="text" value="Friday" target="datePartEEEE"/>
+            <AssertPropertyValue propertyName="text" value="AM" target="datePartA"/>
+            <AssertPropertyValue propertyName="text" value="1" target="datePartJ"/>
+            <AssertPropertyValue propertyName="text" value="1" target="datePartH"/>
+            <AssertPropertyValue propertyName="text" value="1" target="datePartK"/>
+            <AssertPropertyValue propertyName="text" value="1" target="datePartL"/>
+            <AssertPropertyValue propertyName="text" value="1" target="datePartN"/>
+            <AssertPropertyValue propertyName="text" value="01" target="datePartNN"/>
+            <AssertPropertyValue propertyName="text" value="1" target="datePartS"/>
+
+         </body>
+      </TestCase>
+
+
+     <TestCase testID="DateFormatter_test13" description="" keywords="[DateFormatter, Date.parse, Date.toDateString]">
+         <body>
+            <RunCode code="application.testDateFormatter('13')" waitTarget="dateFormatOutputDefaultStr" waitEvent="updateComplete" />
+            <AssertPropertyValue propertyName="text" value="12/31/1899" target="dateFormatOutputDefaultStr"/>
+            <AssertPropertyValue propertyName="text" value="12/31/1899" target="dateFormatOutputDefaultObj"/>
+            <AssertPropertyValue propertyName="text" value="Sunday, December. 31, 1899 at 12:00 AM" target="dateFormatOutputDefaultMaskFull"/>
+            <AssertPropertyValue propertyName="text" value="Dec. 31, 1899 at 12:00 AM" target="dateFormatOutputDefaultMaskLong"/>
+            <AssertPropertyValue propertyName="text" value="Dec. 31, 1899" target="dateFormatOutputDefaultMaskMedium"/>
+            <AssertPropertyValue propertyName="text" value="12:00 AM" target="dateFormatOutputDefaultMaskTime"/>
+            <AssertPropertyValue propertyName="text" value="Sun Dec 31 1899" target="dateStringOutput"/>
+            <AssertPropertyValue propertyName="text" value="99" target="datePartYY"/>
+            <AssertPropertyValue propertyName="text" value="1899" target="datePartYYYY"/>
+            <AssertPropertyValue propertyName="text" value="12" target="datePartM"/>
+            <AssertPropertyValue propertyName="text" value="12" target="datePartMM"/>
+            <AssertPropertyValue propertyName="text" value="Dec" target="datePartMMM"/>
+            <AssertPropertyValue propertyName="text" value="December" target="datePartMMMM"/>
+            <AssertPropertyValue propertyName="text" value="31" target="datePartD"/>
+            <AssertPropertyValue propertyName="text" value="31" target="datePartDD"/>
+            <AssertPropertyValue propertyName="text" value="0" target="datePartE"/>
+            <AssertPropertyValue propertyName="text" value="Sun" target="datePartEEE"/>
+            <AssertPropertyValue propertyName="text" value="Sunday" target="datePartEEEE"/>
+            <AssertPropertyValue propertyName="text" value="AM" target="datePartA"/>
+            <AssertPropertyValue propertyName="text" value="0" target="datePartJ"/>
+            <AssertPropertyValue propertyName="text" value="24" target="datePartH"/>
+            <AssertPropertyValue propertyName="text" value="0" target="datePartK"/>
+            <AssertPropertyValue propertyName="text" value="12" target="datePartL"/>
+            <AssertPropertyValue propertyName="text" value="0" target="datePartN"/>
+            <AssertPropertyValue propertyName="text" value="00" target="datePartNN"/>
+            <AssertPropertyValue propertyName="text" value="0" target="datePartS"/>
+         </body>
+      </TestCase>
+
+
+     <TestCase testID="DateFormatter_test14" description="" keywords="[DateFormatter, Date.parse, Date.toDateString]">
+         <body>
+            <RunCode code="application.testDateFormatter('14')" waitTarget="dateFormatOutputDefaultStr" waitEvent="updateComplete" />
+            <AssertPropertyValue propertyName="text" value="12/10/1912" target="dateFormatOutputDefaultStr"/>
+            <AssertPropertyValue propertyName="text" value="12/10/1912" target="dateFormatOutputDefaultObj"/>
+            <AssertPropertyValue propertyName="text" value="Tuesday, December. 10, 1912 at 9:08 AM" target="dateFormatOutputDefaultMaskFull"/>
+            <AssertPropertyValue propertyName="text" value="Dec. 10, 1912 at 9:08 AM" target="dateFormatOutputDefaultMaskLong"/>
+            <AssertPropertyValue propertyName="text" value="Dec. 10, 1912" target="dateFormatOutputDefaultMaskMedium"/>
+            <AssertPropertyValue propertyName="text" value="9:08 AM" target="dateFormatOutputDefaultMaskTime"/>
+            <AssertPropertyValue propertyName="text" value="Tue Dec 10 1912" target="dateStringOutput"/>
+            <AssertPropertyValue propertyName="text" value="12" target="datePartYY"/>
+            <AssertPropertyValue propertyName="text" value="1912" target="datePartYYYY"/>
+            <AssertPropertyValue propertyName="text" value="12" target="datePartM"/>
+            <AssertPropertyValue propertyName="text" value="12" target="datePartMM"/>
+            <AssertPropertyValue propertyName="text" value="Dec" target="datePartMMM"/>
+            <AssertPropertyValue propertyName="text" value="December" target="datePartMMMM"/>
+            <AssertPropertyValue propertyName="text" value="10" target="datePartD"/>
+            <AssertPropertyValue propertyName="text" value="10" target="datePartDD"/>
+            <AssertPropertyValue propertyName="text" value="2" target="datePartE"/>
+            <AssertPropertyValue propertyName="text" value="Tue" target="datePartEEE"/>
+            <AssertPropertyValue propertyName="text" value="Tuesday" target="datePartEEEE"/>
+            <AssertPropertyValue propertyName="text" value="AM" target="datePartA"/>
+            <AssertPropertyValue propertyName="text" value="9" target="datePartJ"/>
+            <AssertPropertyValue propertyName="text" value="9" target="datePartH"/>
+            <AssertPropertyValue propertyName="text" value="9" target="datePartK"/>
+            <AssertPropertyValue propertyName="text" value="9" target="datePartL"/>
+            <AssertPropertyValue propertyName="text" value="8" target="datePartN"/>
+            <AssertPropertyValue propertyName="text" value="08" target="datePartNN"/>
+            <AssertPropertyValue propertyName="text" value="7" target="datePartS"/>
+        </body>
+      </TestCase>
+      <TestCase testID="DateFormatter_test15" description="" keywords="[DateFormatter, Date.parse, Date.toDateString]">
+         <body>
+            <RunCode code="application.testDateFormatter('15')" waitTarget="dateFormatOutputDefaultStr" waitEvent="updateComplete" />
+            <AssertPropertyValue propertyName="text" value="" target="dateFormatOutputDefaultStr"/>
+            <AssertPropertyValue propertyName="text" value="01/00/NaN" target="dateFormatOutputDefaultObj"/>
+            <AssertPropertyValue propertyName="text" value="Sunday, January. 0, NaN at 12:00 AM" target="dateFormatOutputDefaultMaskFull"/>
+            <AssertPropertyValue propertyName="text" value="Jan. 0, NaN at 12:00 AM" target="dateFormatOutputDefaultMaskLong"/>
+            <AssertPropertyValue propertyName="text" value="Jan. 0, NaN" target="dateFormatOutputDefaultMaskMedium"/>
+            <AssertPropertyValue propertyName="text" value="12:00 AM" target="dateFormatOutputDefaultMaskTime"/>
+            <AssertPropertyValue propertyName="text" value="Invalid Date" target="dateStringOutput"/>
+            <AssertPropertyValue propertyName="text" value="N" target="datePartYY"/>
+            <AssertPropertyValue propertyName="text" value="NaN" target="datePartYYYY"/>
+            <AssertPropertyValue propertyName="text" value="1" target="datePartM"/>
+            <AssertPropertyValue propertyName="text" value="01" target="datePartMM"/>
+            <AssertPropertyValue propertyName="text" value="Jan" target="datePartMMM"/>
+            <AssertPropertyValue propertyName="text" value="January" target="datePartMMMM"/>
+            <AssertPropertyValue propertyName="text" value="0" target="datePartD"/>
+            <AssertPropertyValue propertyName="text" value="00" target="datePartDD"/>
+            <AssertPropertyValue propertyName="text" value="0" target="datePartE"/>
+            <AssertPropertyValue propertyName="text" value="Sun" target="datePartEEE"/>
+            <AssertPropertyValue propertyName="text" value="Sunday" target="datePartEEEE"/>
+            <AssertPropertyValue propertyName="text" value="AM" target="datePartA"/>
+            <AssertPropertyValue propertyName="text" value="0" target="datePartJ"/>
+            <AssertPropertyValue propertyName="text" value="24" target="datePartH"/>
+            <AssertPropertyValue propertyName="text" value="0" target="datePartK"/>
+            <AssertPropertyValue propertyName="text" value="12" target="datePartL"/>
+            <AssertPropertyValue propertyName="text" value="0" target="datePartN"/>
+            <AssertPropertyValue propertyName="text" value="00" target="datePartNN"/>
+            <AssertPropertyValue propertyName="text" value="0" target="datePartS"/>
+       </body>
+  </TestCase>
+  <TestCase testID="DateFormatter_test16" description="test DST with GMT" keywords="[DateFormatter, Date.parse, Date.toDateString]">
+      <body>
+		  <RunCode code="application.testDateFormatter('16')" waitTarget="dateFormatOutputDefaultStr" waitEvent="updateComplete" />
+		  <AssertPropertyValue propertyName="text" value="09/28/2008" target="dateFormatOutputDefaultStr"/>
+		  <AssertPropertyValue propertyName="text" value="09/28/2008" target="dateFormatOutputDefaultObj"/>
+		  <AssertPropertyValue propertyName="text" value="Sunday, September. 28, 2008 at 3:34 PM" target="dateFormatOutputDefaultMaskFull"/>
+		  <AssertPropertyValue propertyName="text" value="Sep. 28, 2008 at 3:34 PM" target="dateFormatOutputDefaultMaskLong"/>
+		  <AssertPropertyValue propertyName="text" value="Sep. 28, 2008" target="dateFormatOutputDefaultMaskMedium"/>
+		  <AssertPropertyValue propertyName="text" value="3:34 PM" target="dateFormatOutputDefaultMaskTime"/>
+		  <AssertPropertyValue propertyName="text" value="Sun Sep 28 2008" target="dateStringOutput"/>
+	  </body>
+  </TestCase>
+  <TestCase testID="DateFormatter_test17" description="Standard Time" keywords="[DateFormatter, Date.parse, Date.toDateString]">
+      <body>
+		  <RunCode code="application.testDateFormatter('17')" waitTarget="dateFormatOutputDefaultStr" waitEvent="updateComplete" />
+		  <AssertPropertyValue propertyName="text" value="11/28/2008" target="dateFormatOutputDefaultStr"/>
+		  <AssertPropertyValue propertyName="text" value="11/28/2008" target="dateFormatOutputDefaultObj"/>
+		  <AssertPropertyValue propertyName="text" value="Friday, November. 28, 2008 at 2:34 PM" target="dateFormatOutputDefaultMaskFull"/>
+		  <AssertPropertyValue propertyName="text" value="Nov. 28, 2008 at 2:34 PM" target="dateFormatOutputDefaultMaskLong"/>
+		  <AssertPropertyValue propertyName="text" value="Nov. 28, 2008" target="dateFormatOutputDefaultMaskMedium"/>
+		  <AssertPropertyValue propertyName="text" value="2:34 PM" target="dateFormatOutputDefaultMaskTime"/>
+		  <AssertPropertyValue propertyName="text" value="Fri Nov 28 2008" target="dateStringOutput"/>
+	  </body>
+  </TestCase>
+  <TestCase testID="DateFormatter_test18" description="Date() corrects day of week" keywords="[DateFormatter, Date.parse, Date.toDateString]">
+      <body>
+		  <RunCode code="application.testDateFormatter('18')" waitTarget="dateFormatOutputDefaultStr" waitEvent="updateComplete" />
+		  <AssertPropertyValue propertyName="text" value="09/28/2008" target="dateFormatOutputDefaultStr"/>
+		  <AssertPropertyValue propertyName="text" value="09/28/2008" target="dateFormatOutputDefaultObj"/>
+		  <AssertPropertyValue propertyName="text" value="Sunday, September. 28, 2008 at 3:34 PM" target="dateFormatOutputDefaultMaskFull"/>
+		  <AssertPropertyValue propertyName="text" value="Sep. 28, 2008 at 3:34 PM" target="dateFormatOutputDefaultMaskLong"/>
+		  <AssertPropertyValue propertyName="text" value="Sep. 28, 2008" target="dateFormatOutputDefaultMaskMedium"/>
+		  <AssertPropertyValue propertyName="text" value="3:34 PM" target="dateFormatOutputDefaultMaskTime"/>
+		  <AssertPropertyValue propertyName="text" value="Sun Sep 28 2008" target="dateStringOutput"/>
+	  </body>
+  </TestCase>
+  <TestCase testID="DateFormatter_test19" description="test DST with UTC instead of GMT" keywords="[DateFormatter, Date.parse, Date.toDateString]">
+      <body>
+		  <RunCode code="application.testDateFormatter('19')" waitTarget="dateFormatOutputDefaultStr" waitEvent="updateComplete" />
+		  <AssertPropertyValue propertyName="text" value="11/28/2008" target="dateFormatOutputDefaultStr"/>
+		  <AssertPropertyValue propertyName="text" value="11/28/2008" target="dateFormatOutputDefaultObj"/>
+		  <AssertPropertyValue propertyName="text" value="Friday, November. 28, 2008 at 2:34 PM" target="dateFormatOutputDefaultMaskFull"/>
+		  <AssertPropertyValue propertyName="text" value="Nov. 28, 2008 at 2:34 PM" target="dateFormatOutputDefaultMaskLong"/>
+		  <AssertPropertyValue propertyName="text" value="Nov. 28, 2008" target="dateFormatOutputDefaultMaskMedium"/>
+		  <AssertPropertyValue propertyName="text" value="2:34 PM" target="dateFormatOutputDefaultMaskTime"/>
+		  <AssertPropertyValue propertyName="text" value="Fri Nov 28 2008" target="dateStringOutput"/>
+  	  </body>
+  </TestCase>
+ 
+ <TestCase testID="DateFormatter_test20" description="" keywords="[DateFormatter, Date.parse, Date.toDateString]">
+	 <body>
+		<RunCode code="application.testDateFormatter('20')" waitTarget="dateFormatOutputDefaultStr" waitEvent="updateComplete" />                        
+
+		<AssertPropertyValue propertyName="text" value="09/17/2009" target="dateFormatOutputDefaultStr"/>
+		<AssertPropertyValue propertyName="text" value="09/17/2009" target="dateFormatOutputDefaultObj"/>
+		<AssertPropertyValue propertyName="text" value="Thursday, September. 17, 2009 at 3:39 PM" target="dateFormatOutputDefaultMaskFull"/>
+		<AssertPropertyValue propertyName="text" value="Sep. 17, 2009 at 3:39 PM" target="dateFormatOutputDefaultMaskLong"/>
+		<AssertPropertyValue propertyName="text" value="Sep. 17, 2009" target="dateFormatOutputDefaultMaskMedium"/>
+		<AssertPropertyValue propertyName="text" value="3:39 PM" target="dateFormatOutputDefaultMaskTime"/>
+		<AssertPropertyValue propertyName="text" value="Thu Sep 17 2009" target="dateStringOutput"/>
+		<AssertPropertyValue propertyName="text" value="Thursday, September 17, 2009 at 15:39:20:789 PM" target="dateFormatOutputDefaultMaskMillisec"/>            
+	</body>
+  </TestCase>  
+
+</testCases>
+
+
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Number_Properties.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Number_Properties.mxml?rev=1369944&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Number_Properties.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Number_Properties.mxml Mon Aug  6 19:37:39 2012
@@ -0,0 +1,143 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="Formatters/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Formatters_Main.mxml">
+
+	<!-- this set of lines form a tNbplate that must be in each unit test -->
+	<mx:Script>
+	<![CDATA[
+	public static function init(o:DisplayObject):void
+	{
+
+	}
+	]]>
+	</mx:Script>
+	<mx:Metadata>
+	<![CDATA[
+		[Mixin]
+	]]>
+	</mx:Metadata>
+	<!-- end of set of lines that must be in each unit test -->
+
+	<mx:Script>
+	<![CDATA[
+	import mx.controls.TextInput;
+	import 	mx.formatters.NumberFormatter;
+	import mx.managers.SystemManager;
+	
+	public function precisionPositive():void
+	{
+		application.myCustomNf.ti2.text=application.myCustomNf.myNf.format(application.myCustomNf.ti1.text);
+	}
+	]]>
+	</mx:Script>
+
+	<testCases>
+		<TestCase testID="NumberFormatter_precision_1"  keywords="[precision, NumberFormatter]">
+			<setup>
+				<ResetComponent target="myCustomNf" className="CustomNf"  waitEvent="updateComplete" waitTarget="myCustomNf"/> 
+				<SetProperty target="myCustomNf.myNf" propertyName="precision" value="2"/>
+				<SetProperty target="myCustomNf.ti1" propertyName="text" value="0.76" waitEvent="updateComplete" waitTarget="myCustomNf.ti1"/>
+			</setup>
+			<body>
+				
+				<SetProperty target="myCustomNf.ti2" propertyName="text" valueExpression="value=application.myCustomNf.myNf.format(application.myCustomNf.ti1.text)" waitEvent="updateComplete" waitTarget="myCustomNf.ti2"/>
+				<AssertPropertyValue target="myCustomNf.ti2" propertyName="text" valueExpression="value='0.76'" />
+			</body>  
+		</TestCase>
+		<TestCase testID="NumberFormatter_precision_2"  keywords="[precision, NumberFormatter]">
+			<setup>
+				<ResetComponent target="myCustomNf" className="CustomNf"  waitEvent="updateComplete" waitTarget="myCustomNf"/> 
+				<SetProperty target="myCustomNf.myNf" propertyName="precision" value="2"/>
+				<WaitForEffectsToEnd />
+				<SetProperty target="myCustomNf.ti1" propertyName="text" value="-0.76" waitEvent="updateComplete" waitTarget="myCustomNf.ti1"/>
+			</setup>
+			<body>
+				
+				<SetProperty target="myCustomNf.ti2" propertyName="text" valueExpression="value=application.myCustomNf.myNf.format(application.myCustomNf.ti1.text)" waitEvent="updateComplete" waitTarget="myCustomNf.ti2"/>
+				<AssertPropertyValue target="myCustomNf.ti2" propertyName="text" valueExpression="value='-0.76'" />
+			</body>  
+		</TestCase>
+		<TestCase testID="NumberFormatter_precision_3"  keywords="[precision, NumberFormatter]">
+			<setup>
+				<ResetComponent target="myCustomNf" className="CustomNf"  waitEvent="updateComplete" waitTarget="myCustomNf"/> 
+				<SetProperty target="myCustomNf.myNf" propertyName="precision" value="2"/>
+				<WaitForEffectsToEnd />
+				<SetProperty target="myCustomNf.ti1" propertyName="text" value="0" waitEvent="updateComplete" waitTarget="myCustomNf.ti1"/>
+			</setup>
+			<body>
+				
+				<SetProperty target="myCustomNf.ti2" propertyName="text" valueExpression="value=application.myCustomNf.myNf.format(application.myCustomNf.ti1.text)" waitEvent="updateComplete" waitTarget="myCustomNf.ti2"/>
+				<AssertPropertyValue target="myCustomNf.ti2" propertyName="text" valueExpression="value='0.00'" />
+			</body>  
+		</TestCase>
+		<TestCase testID="NumberFormatter_precision_4"  keywords="[precision, NumberFormatter]">
+			<setup>
+				<ResetComponent target="myCustomNf" className="CustomNf"  waitEvent="updateComplete" waitTarget="myCustomNf"/> 
+				<SetProperty target="myCustomNf.myNf" propertyName="precision" value="2"/>
+				<WaitForEffectsToEnd />
+				<SetProperty target="myCustomNf.ti1" propertyName="text" value="77" waitEvent="updateComplete" waitTarget="myCustomNf.ti1"/>
+			</setup>
+			<body>
+				
+				<SetProperty target="myCustomNf.ti2" propertyName="text" valueExpression="value=application.myCustomNf.myNf.format(application.myCustomNf.ti1.text)" waitEvent="updateComplete" waitTarget="myCustomNf.ti2"/>
+				<AssertPropertyValue target="myCustomNf.ti2" propertyName="text" valueExpression="value='77.00'" />
+			</body>  
+		</TestCase>
+		<TestCase testID="NumberFormatter_precision_5"  keywords="[precision, NumberFormatter]">
+			<setup>
+				<ResetComponent target="myCustomNf" className="CustomNf"  waitEvent="updateComplete" waitTarget="myCustomNf"/> 
+				<SetProperty target="myCustomNf.myNf" propertyName="precision" value="2"/>
+				<WaitForEffectsToEnd />
+				<SetProperty target="myCustomNf.ti1" propertyName="text" value="77." waitEvent="updateComplete" waitTarget="myCustomNf.ti1"/>
+			</setup>
+			<body>
+				
+				<SetProperty target="myCustomNf.ti2" propertyName="text" valueExpression="value=application.myCustomNf.myNf.format(application.myCustomNf.ti1.text)" waitEvent="updateComplete" waitTarget="myCustomNf.ti2"/>
+				<AssertPropertyValue target="myCustomNf.ti2" propertyName="text" valueExpression="value='77.00'" />
+			</body>  
+		</TestCase>
+		<TestCase testID="NumberFormatter_precision_6"  keywords="[precision, NumberFormatter]">
+			<setup>
+				<ResetComponent target="myCustomNf" className="CustomNf"  waitEvent="updateComplete" waitTarget="myCustomNf"/> 
+				<SetProperty target="myCustomNf.myNf" propertyName="precision" value="2"/>
+				<WaitForEffectsToEnd />
+				<SetProperty target="myCustomNf.ti1" propertyName="text" value="77.1" waitEvent="updateComplete" waitTarget="myCustomNf.ti1"/>
+			</setup>
+			<body>
+				
+				<SetProperty target="myCustomNf.ti2" propertyName="text" valueExpression="value=application.myCustomNf.myNf.format(application.myCustomNf.ti1.text)" waitEvent="updateComplete" waitTarget="myCustomNf.ti2"/>
+				<AssertPropertyValue target="myCustomNf.ti2" propertyName="text" valueExpression="value='77.10'" />
+			</body>  
+		</TestCase>
+		<TestCase testID="NumberFormatter_precision_7"  keywords="[precision, NumberFormatter]">
+			<setup>
+				<ResetComponent target="myCustomNf" className="CustomNf"  waitEvent="updateComplete" waitTarget="myCustomNf"/> 
+				<SetProperty target="myCustomNf.myNf" propertyName="precision" value="2"/>
+				<WaitForEffectsToEnd />
+				<SetProperty target="myCustomNf.ti1" propertyName="text" value="" />
+			</setup>
+			<body>
+				
+				<SetProperty target="myCustomNf.ti2" propertyName="text" valueExpression="value=application.myCustomNf.myNf.format(application.myCustomNf.ti1.text)"/>
+				<AssertPropertyValue target="myCustomNf.ti2" propertyName="text" valueExpression="value=''" />
+			</body>  
+		</TestCase>		
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Properties_Currencies.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Properties_Currencies.mxml?rev=1369944&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Properties_Currencies.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Properties_Currencies.mxml Mon Aug  6 19:37:39 2012
@@ -0,0 +1,307 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="Formatters/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Formatters_Main.mxml">
+
+    <!-- this set of lines form a template that must be in each unit test -->
+    <mx:Script>
+    <![CDATA[
+    public static function init(o:DisplayObject):void
+    {
+
+    }
+    ]]>
+    </mx:Script>
+    <mx:Metadata>
+    <![CDATA[
+        [Mixin]
+    ]]>
+    </mx:Metadata>
+    <!-- end of set of lines that must be in each unit test -->
+
+    <mx:Script>
+    <![CDATA[
+    import mx.controls.TextInput;
+    import mx.formatters.CurrencyFormatter;
+    import mx.managers.SystemManager;
+    
+    public function FormatCurrencySimple():void{
+        application.ti.text= application.cf.format(98765);
+    }
+    public function FormatCurrencySymbol():void{
+        application.cf.currencySymbol="Rs.";
+        application.ti.text= application.cf.format(98765);
+    }
+    public function FormatCurrencyPrecision():void{
+        application.cf.precision=5;
+        application.ti.text= application.cf.format(98765);
+    }
+    public function FormatCurrencyUseThousandsSeparator():void{
+        application.cf.useThousandsSeparator=false;
+        application.ti.text= application.cf.format(98765);
+    }
+    public function FormatCurrencyPrecisionZero():void{
+        application.cf.precision=0;
+        application.ti.text= application.cf.format(98765);
+    }
+    public function FormatCurrencyRoundingUp():void{
+        application.cf.precision=3;
+        application.cf.rounding="up";
+        application.ti.text= application.cf.format(98765.4321);
+    }
+    public function FormatCurrencyRoundingDown():void{
+        application.cf.rounding="down";
+        application.ti.text= application.cf.format(98765.4321);
+    }
+    public function FormatCurrencyRoundingNone():void{
+        application.cf.rounding="none";
+        application.ti.text= application.cf.format(98765.4321);
+    }
+    public function FormatCurrencyThousandsSeparatorFrom():void{
+        application.cf.useThousandsSeparator=true;
+        application.cf.thousandsSeparatorFrom="T";
+        application.ti.text= application.cf.format("98T765.4321");
+    }
+    public function FormatCurrencyDecimalSeparatorFrom():void{
+        application.cf.decimalSeparatorFrom="D";
+        application.ti.text= application.cf.format("98T765D4321");
+    }
+    public function FormatCurrencyThousandsSeparatorTo():void{
+        application.cf.thousandsSeparatorTo=".";
+        application.cf.decimalSeparatorTo="D";
+        application.ti.text= application.cf.format("98T765D4321");
+    }
+    public function FormatCurrencyDecimalSeparatorTo():void{
+        application.cf.decimalSeparatorTo=",";
+        application.ti.text= application.cf.format("98T765D4321");
+    }
+    public function FormatCurrencyUseNegativeSignTrue():void{
+        application.cf.useNegativeSign=true;
+        application.ti.text= application.cf.format("-98T765D4321");
+    }
+    public function FormatCurrencyUseNegativeSignFalse():void{
+        application.cf.useNegativeSign=false;
+        application.ti.text= application.cf.format("-98T765D4321");
+    }
+    public function FormatCurrencyAlignSymbolRight():void{
+        application.cf.precision=5;
+        application.cf.currencySymbol="Rsam.";
+        application.cf.alignSymbol="right";
+        application.ti.text= application.cf.format("-98T765D4321");
+    }
+    public function FormatCurrencyAlignSymbolLeft():void{
+        application.cf.alignSymbol="left";
+        application.ti.text= application.cf.format("-98T765D4321");
+    }
+    public function FormatCurrencyAlignSymbolRightPos():void{
+        application.cf.useNegativeSign=true;
+        application.cf.currencySymbol="Rs.";
+        application.cf.alignSymbol="right";
+        application.ti.text= application.cf.format("98T765D4321");
+    }
+    public function FormatCurrencyAlignSymbolLeftPos():void{
+        application.cf.alignSymbol="left";
+        application.ti.text= application.cf.format("98T765D4321");
+    }
+    ]]>
+    </mx:Script>
+
+    <testCases>
+        <TestCase testID="Formatters_Currency" description="Test the properties of Currency Formatters." keywords="[Simple, Currency, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencySimple();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="$98,765.000" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_currencySymbol" description="Test the properties of Currency Formatters." keywords="[currencySymbol, inline, Currency, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencySymbol();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="Rs.98,765.000" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_precision" description="Test the properties of Currency Formatters." keywords="[precision, inline, Currency, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencyPrecision();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="Rs.98,765.00000" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_useThousandsSeparator" description="Test the properties of Currency Formatters." keywords="[useThousandsSeparator, inline, Currency, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencyUseThousandsSeparator();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="Rs.98765.00000" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_Precision_Zero" description="Test the properties of Currency Formatters." keywords="[precision, zero, inline, Currency, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencyPrecisionZero();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="Rs.98765" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_Rounding_Up" description="Test the properties of Currency Formatters." keywords="[rounding, up, inline, Currency, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencyRoundingUp();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="Rs.98765.433" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_Rounding_Down" description="Test the properties of Currency Formatters." keywords="[rounding, down, inline, Currency, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencyRoundingDown();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="Rs.98765.432" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_Rounding_None" description="Test the properties of Currency Formatters." keywords="[rounding, none, inline, Currency, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencyRoundingNone();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="Rs.98765.432" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_ThousandsSeparatorFrom" description="Test the properties of Currency Formatters." keywords="[thousandsSeparatorFrom, inline, Currency, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencyThousandsSeparatorFrom();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="Rs.98,765.432" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_DecimalSeparatorFrom" description="Test the properties of Currency Formatters." keywords="[DecimalSeparatorFrom, inline, Currency, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencyDecimalSeparatorFrom();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="Rs.98,765.432" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_ThousandsSeparatorTo" description="Test the properties of Currency Formatters." keywords="[ThousandsSeparatorTo, inline, Currency, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencyThousandsSeparatorTo();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="Rs.98.765D432" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_DecimalSeparatorTo" description="Test the properties of Currency Formatters." keywords="[DecimalSeparatorTo, inline, Currency, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencyDecimalSeparatorTo();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="Rs.98.765,432" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_UseNegativeSign_True" description="Test the properties of Currency Formatters." keywords="[useNegativeSign, true, inline, Currency, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencyUseNegativeSignTrue();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="-Rs.98.765,432" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_UseNegativeSign_False" description="Test the properties of Currency Formatters." keywords="[useNegativeSign, false, inline, Currency, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencyUseNegativeSignFalse();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="(Rs.98.765,432)" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_AlignSymbol_Right" description="Test the properties of Currency Formatters." keywords="[alignSymbol, right, inline, Currency, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencyAlignSymbolRight();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="(98.765,43210Rsam.)" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_AlignSymbol_Left" description="Test the properties of Currency Formatters." keywords="[alignSymbol, left, inline, Currency, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencyAlignSymbolLeft();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="(Rsam.98.765,43210)" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_AlignSymbol_Right_Pos" description="Test the properties of Currency Formatters." keywords="[alignSymbol, right, positive, number, inline, Currency, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencyAlignSymbolRightPos();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="98.765,43210Rs." />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Currency_AlignSymbol_Left_Pos" description="Test the properties of Currency Formatters." keywords="[alignSymbol, left, positive, number, inline, Currency, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatCurrencyAlignSymbolLeftPos();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="Rs.98.765,43210" />
+            </body>
+        </TestCase>
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Properties_Dates.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Properties_Dates.mxml?rev=1369944&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Properties_Dates.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Properties_Dates.mxml Mon Aug  6 19:37:39 2012
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="Formatters/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Formatters_Main.mxml">
+
+    <!-- this set of lines form a template that must be in each unit test -->
+    <mx:Script>
+    <![CDATA[
+    public static function init(o:DisplayObject):void
+    {
+
+    }
+    ]]>
+    </mx:Script>
+    <mx:Metadata>
+    <![CDATA[
+        [Mixin]
+    ]]>
+    </mx:Metadata>
+    <!-- end of set of lines that must be in each unit test -->
+
+    <mx:Script>
+    <![CDATA[
+    import mx.controls.TextInput;
+    import mx.formatters.DateFormatter;
+    
+    import mx.managers.SystemManager;
+    
+    public function FormatDateSimple():void{
+        application.ti.text= application.df.format(application.dc.selectedDate);
+    }
+
+    ]]>
+    </mx:Script>
+    <testCases>
+        <TestCase testID="Formatters_Date_Simple" description="Test the properties of Number Formatters." keywords="[Simple, Date, inline, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatDateSimple();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" value="Tuesday, December 05, 2006 at 24:00:00 AM" />
+            </body>
+        </TestCase>
+    </testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Properties_Numbers.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Properties_Numbers.mxml?rev=1369944&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Properties_Numbers.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Formatters/Properties/Formatters_Properties_Numbers.mxml Mon Aug  6 19:37:39 2012
@@ -0,0 +1,342 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<UnitTester testDir="Formatters/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Formatters_Main.mxml">
+
+    <!-- this set of lines form a template that must be in each unit test -->
+    <mx:Script>
+    <![CDATA[
+    public static function init(o:DisplayObject):void
+    {
+
+    }
+    ]]>
+    </mx:Script>
+    <mx:Metadata>
+    <![CDATA[
+        [Mixin]
+    ]]>
+    </mx:Metadata>
+    <!-- end of set of lines that must be in each unit test -->
+
+    <mx:Script>
+    <![CDATA[
+    import mx.controls.TextInput;
+    import mx.formatters.NumberFormatter;
+    import mx.managers.SystemManager;
+    
+    public function FormatNumberSimple():void{
+        application.ti.text= application.nf.format(98765);
+    }
+    public function FormatNumberPrecision():void{
+        application.nf.precision=5;
+        application.ti.text= application.nf.format(98765);
+    }
+    public function FormatNumberUseThousandsSeparator():void{
+        application.nf.useThousandsSeparator=false;
+        application.nf.precision=0;
+        application.ti.text= application.nf.format(98765);
+    }
+    public function FormatNumberPrecisionZero():void{
+        application.nf.precision=0;
+        application.ti.text= application.nf.format(98765);
+    }
+    public function FormatNumberRoundingUp():void{
+        application.nf.precision=3;
+        application.nf.rounding="up";
+        application.ti.text= application.nf.format(98765.4321);
+    }
+    public function FormatNumberRoundingDown():void{
+        application.nf.rounding="down";
+        application.ti.text= application.nf.format(98765.4321);
+    }
+    public function FormatNumberRoundingNone():void{
+        application.nf.rounding="none";
+        application.ti.text= application.nf.format(98765.4321);
+    }
+    public function FormatNumberThousandsSeparatorFrom():void{
+        application.nf.useThousandsSeparator=true;
+        application.nf.thousandsSeparatorFrom="T";
+        application.ti.text= application.nf.format("98T765.4321");
+    }
+    public function FormatNumberDecimalSeparatorFrom():void{
+        application.nf.decimalSeparatorFrom="D";
+        application.ti.text= application.nf.format("98T765D4321");
+    }
+    public function FormatNumberThousandsSeparatorTo():void{
+        application.nf.thousandsSeparatorTo=".";
+        application.nf.decimalSeparatorTo="D";
+        application.ti.text= application.nf.format("98T765D4321");
+    }
+    public function FormatNumberDecimalSeparatorTo():void{
+        application.nf.decimalSeparatorTo=",";
+        application.ti.text= application.nf.format("98T765D4321");
+    }
+    public function FormatNumberUseNegativeSignTrue():void{
+        application.nf.useNegativeSign=true;
+        application.ti.text= application.nf.format("-98T765D4321");
+    }
+    public function FormatNumberUseNegativeSignFalse():void{
+        application.nf.useNegativeSign=false;
+        application.ti.text= application.nf.format("-98T765D4321");
+    }
+    public function FormatNumberPrecision_1():void{
+        application.nf.precision=2;
+        application.nf.decimalSeparatorTo=".";
+        application.nf.thousandsSeparatorTo=",";
+        application.nf.rounding="up";
+        application.ti.text= application.nf.format(0.76);
+    }
+    public function FormatNumberPrecision_2():void{
+        application.nf.precision=2;
+        application.nf.rounding="up";
+        application.ti.text= application.nf.format(.76);
+    }
+    public function FormatNumberPrecision_3():void{
+        application.nf.precision=2;
+        application.nf.rounding="up";
+        application.ti.text= application.nf.format(0);
+    }
+    public function FormatNumberPrecision_4():void{
+        application.nf.precision=2;
+        application.nf.rounding="up";
+        application.nf.useNegativeSign=true;
+        application.ti.text= application.nf.format(-0.76);
+    }
+    public function FormatNumberPrecision_5():void{
+        application.nf.precision=2;
+        application.nf.rounding="up";
+        application.ti.text= application.nf.format(77);
+    }
+    public function FormatNumberPrecision_6():void{
+        application.nf.precision=2;
+        application.nf.rounding="up";
+        application.ti.text= application.nf.format(77.);
+    }
+    public function FormatNumberPrecision_7():void{
+        application.nf.precision=2;
+        application.nf.rounding="up";
+        application.ti.text= application.nf.format(77.1);
+    }    
+    ]]>
+    </mx:Script>
+
+    <testCases>
+        <TestCase testID="Formatters_Number" description="Test the properties of Number Formatters." keywords="[Simple, Number, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatNumberSimple();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" valueExpression="value='98,765.000'" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Number_precision" description="Test the properties of Number Formatters." keywords="[precision, inline, Number, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatNumberPrecision();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" valueExpression="value='98,765.00000'" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Number_useThousandsSeparator" description="Test the properties of Number Formatters." keywords="[useThousandsSeparator, inline, Number, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatNumberUseThousandsSeparator();" waitEvent="updateComplete" waitTarget="ti"/>
+                <WaitForEffectsToEnd />
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" valueExpression="value='98765'" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Number_Precision_Zero" description="Test the properties of Number Formatters." keywords="[precision, zero, inline, Number, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatNumberPrecisionZero();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" valueExpression="value='98765'" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Number_Rounding_Up" description="Test the properties of Number Formatters." keywords="[rounding, up, inline, Number, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatNumberRoundingUp();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" valueExpression="value='98765.433'" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Number_Rounding_Down" description="Test the properties of Number Formatters." keywords="[rounding, down, inline, Number, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatNumberRoundingDown();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" valueExpression="value='98765.432'" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Number_Rounding_None" description="Test the properties of Number Formatters." keywords="[rounding, none, inline, Number, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatNumberRoundingNone();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" valueExpression="value='98765.432'" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Number_ThousandsSeparatorFrom" description="Test the properties of Number Formatters." keywords="[thousandsSeparatorFrom, inline, Number, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatNumberThousandsSeparatorFrom();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" valueExpression="value='98,765.432'" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Number_DecimalSeparatorFrom" description="Test the properties of Number Formatters." keywords="[DecimalSeparatorFrom, inline, Number, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatNumberDecimalSeparatorFrom();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" valueExpression="value='98,765.432'" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Number_ThousandsSeparatorTo" description="Test the properties of Number Formatters." keywords="[ThousandsSeparatorTo, inline, Number, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatNumberThousandsSeparatorTo();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" valueExpression="value='98.765D432'" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Number_DecimalSeparatorTo" description="Test the properties of Number Formatters." keywords="[DecimalSeparatorTo, inline, Number, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatNumberDecimalSeparatorTo();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" valueExpression="value='98.765,432'" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Number_UseNegativeSign_True" description="Test the properties of Number Formatters." keywords="[useNegativeSign, true, inline, Number, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatNumberUseNegativeSignTrue();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" valueExpression="value='-98.765,432'" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Number_UseNegativeSign_False" description="Test the properties of Number Formatters." keywords="[useNegativeSign, false, inline, Number, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatNumberUseNegativeSignFalse();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" valueExpression="value='(98.765,432)'" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Number_formatPrecision_1" description="Test the properties of Number Formatters Precision" keywords="[Precision, Number, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatNumberPrecision_1();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" valueExpression="value='0.76'" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Number_formatPrecision_2" description="Test the properties of Number Formatters Precision" keywords="[Precision, Number, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatNumberPrecision_2();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" valueExpression="value='0.76'" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Number_formatPrecision_3" description="Test the properties of Number Formatters Precision" keywords="[Precision, Number, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatNumberPrecision_3();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" valueExpression="value='0.00'" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Number_formatPrecision_4" description="Test the properties of Number Formatters Precision" keywords="[Precision, Number, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatNumberPrecision_4();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" valueExpression="value='-0.76'" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Number_formatPrecision_5" description="Test the properties of Number Formatters Precision" keywords="[Precision, Number, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatNumberPrecision_5();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" valueExpression="value='77.00'" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Number_formatPrecision_6" description="Test the properties of Number Formatters Precision" keywords="[Precision, Number, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatNumberPrecision_6();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" valueExpression="value='77.00'" />
+            </body>
+        </TestCase>
+        <TestCase testID="Formatters_Number_formatPrecision_7" description="Test the properties of Number Formatters Precision" keywords="[Precision, Number, Formatter]">
+            <setup>
+                <ResetComponent target="ti" className="mx.controls.TextInput" waitEvent="updateComplete" waitTarget="ti"/>
+                <RunCode code="FormatNumberPrecision_7();" waitEvent="updateComplete" waitTarget="ti"/>
+                
+            </setup>
+            <body>
+                <AssertPropertyValue target="ti" propertyName="text" valueExpression="value='77.10'" />
+            </body>
+        </TestCase>        
+    </testCases>
+</UnitTester>



Mime
View raw message