incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1370000 [5/6] - in /incubator/flex/trunk/mustella/tests/Validators: ./ CreditCardValidator/ CreditCardValidator/Properties/ CreditCardValidator/Properties/baselines/ CreditCardValidator/SWFs/ CurrencyValidator/ CurrencyValidator/Properties...
Date Mon, 06 Aug 2012 20:44:04 GMT
Added: incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/Properties/Validators_PhoneNumber_Properties.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/Properties/Validators_PhoneNumber_Properties.mxml?rev=1370000&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/Properties/Validators_PhoneNumber_Properties.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/Properties/Validators_PhoneNumber_Properties.mxml Mon Aug  6 20:43:57 2012
@@ -0,0 +1,206 @@
+<?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="Validators/PhoneNumberValidator/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Validators_PhoneNumber_Basic.mxml">
+
+	<!-- this set of lines form a tPhNplate 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.validators.PhoneNumberValidator;
+	import 	mx.validators.ValidationResult;
+	import mx.managers.SystemManager;
+
+	]]>
+	</mx:Script>
+
+	<testCases>
+		<TestCase testID="PhoneNumberValidator_allowedFormatChars_default"  keywords="[allowedFormatChars, PhoneNumberValidator]">
+			<setup>
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/> 
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="9448543610" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_allowedFormatChars_1"  keywords="[allowedFormatChars, PhoneNumberValidator]">
+			<setup>
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/> 
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="(944)(854)(3610)" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_allowedFormatChars_2"  keywords="[allowedFormatChars, PhoneNumberValidator]">
+			<setup>
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/> 
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="944-854-3610" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_allowedFormatChars_3"  keywords="[allowedFormatChars, PhoneNumberValidator]">
+			<setup>
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/> 
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="944 854 3610" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_allowedFormatChars_4"  keywords="[allowedFormatChars, PhoneNumberValidator]">
+			<setup>
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/> 
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="944.854.3610" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_allowedFormatChars_5"  keywords="[allowedFormatChars, PhoneNumberValidator]">
+			<setup>
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/> 
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="944+854+3610" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_allowedFormatChars_6"  keywords="[allowedFormatChars, PhoneNumberValidator]">
+			<setup>
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/> 
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+				<SetProperty target="myCustomPhN.myPhN" propertyName="allowedFormatChars" value="%"/>				
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="944%854%3610" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_allowedFormatChars_7"  keywords="[allowedFormatChars, PhoneNumberValidator]">
+			<setup>
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/> 
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+				<SetProperty target="myCustomPhN.myPhN" propertyName="allowedFormatChars" value="sg"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="944sg854sg3610" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_allowedFormatChars_8"  keywords="[allowedFormatChars, PhoneNumberValidator]">
+			<setup>
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/> 
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+				<SetProperty target="myCustomPhN.myPhN" propertyName="allowedFormatChars" value="tráçè"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="944tráçè854tráçè3610" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_allowedFormatChars_9"  keywords="[allowedFormatChars, PhoneNumberValidator]">
+			<setup>
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/> 
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+				<SetProperty target="myCustomPhN.myPhN" propertyName="allowedFormatChars" value="abcd"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="944abcd854abcd3610" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_invalidCharError"  keywords="[invalidCharError, PhoneNumberValidator]">
+			<setup>
+				
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/>
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="K9488543610" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="valid" />
+				<DispatchMouseEvent target="myCustomPhN.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomPhN.ti1"/>
+				<WaitForEffectsToEnd />
+				<CompareBitmap target="" url="../Properties/baselines/invalidCharError.png" timeout="2000" />				
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_wrongLengthError"  keywords="[wrongLengthError, PhoneNumberValidator]">
+			<setup>
+				
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/>
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="984544926" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="valid" />
+				<DispatchMouseEvent target="myCustomPhN.ti1" type="mouseOver" localX="10" localY="10"  waitEvent="toolTipShown" waitTarget="myCustomPhN.ti1"/>
+				<WaitForEffectsToEnd />
+				<CompareBitmap target="" url="../Properties/baselines/wrongLengthError.png" timeout="2000" />				
+			</body>  
+		</TestCase>		
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/Properties/Validators_PhoneNumber_Properties_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/Properties/Validators_PhoneNumber_Properties_spark.mxml?rev=1370000&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/Properties/Validators_PhoneNumber_Properties_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/Properties/Validators_PhoneNumber_Properties_spark.mxml Mon Aug  6 20:43:57 2012
@@ -0,0 +1,206 @@
+<?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="Validators/PhoneNumberValidator/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Validators_PhoneNumber_Basic_spark.mxml">
+
+	<!-- this set of lines form a tPhNplate 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.validators.PhoneNumberValidator;
+	import 	mx.validators.ValidationResult;
+	import mx.managers.SystemManager;
+
+	]]>
+	</mx:Script>
+
+	<testCases>
+		<TestCase testID="PhoneNumberValidator_allowedFormatChars_default_spark" keywords="[allowedFormatChars, PhoneNumberValidator]">
+			<setup>
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/> 
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="9448543610" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_allowedFormatChars_1_spark" keywords="[allowedFormatChars, PhoneNumberValidator]">
+			<setup>
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/> 
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="(944)(854)(3610)" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_allowedFormatChars_2_spark" keywords="[allowedFormatChars, PhoneNumberValidator]">
+			<setup>
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/> 
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="944-854-3610" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_allowedFormatChars_3_spark" keywords="[allowedFormatChars, PhoneNumberValidator]">
+			<setup>
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/> 
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="944 854 3610" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_allowedFormatChars_4_spark" keywords="[allowedFormatChars, PhoneNumberValidator]">
+			<setup>
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/> 
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="944.854.3610" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_allowedFormatChars_5_spark" keywords="[allowedFormatChars, PhoneNumberValidator]">
+			<setup>
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/> 
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="944+854+3610" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_allowedFormatChars_6_spark" keywords="[allowedFormatChars, PhoneNumberValidator]">
+			<setup>
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/> 
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+				<SetProperty target="myCustomPhN.myPhN" propertyName="allowedFormatChars" value="%"/>				
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="944%854%3610" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_allowedFormatChars_7_spark" keywords="[allowedFormatChars, PhoneNumberValidator]">
+			<setup>
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/> 
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+				<SetProperty target="myCustomPhN.myPhN" propertyName="allowedFormatChars" value="sg"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="944sg854sg3610" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_allowedFormatChars_8_spark" keywords="[allowedFormatChars, PhoneNumberValidator]">
+			<setup>
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/> 
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+				<SetProperty target="myCustomPhN.myPhN" propertyName="allowedFormatChars" value="tráçè"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="944tráçè854tráçè3610" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_allowedFormatChars_9_spark" keywords="[allowedFormatChars, PhoneNumberValidator]">
+			<setup>
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/> 
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+				<SetProperty target="myCustomPhN.myPhN" propertyName="allowedFormatChars" value="abcd"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="944abcd854abcd3610" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_invalidCharError_spark" keywords="[invalidCharError, PhoneNumberValidator]">
+			<setup>
+				
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/>
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="K9488543610" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="valid" />
+				<DispatchMouseEvent target="myCustomPhN.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomPhN.ti1"/>
+				<WaitForEffectsToEnd />
+				<CompareBitmap target="" url="../Properties/baselines/invalidCharError_spark.png" timeout="2000" numColorVariances="6" ignoreMaxColorVariance="true" />				
+			</body>  
+		</TestCase>
+		<TestCase testID="PhoneNumberValidator_wrongLengthError_spark" keywords="[wrongLengthError, PhoneNumberValidator]">
+			<setup>
+				
+				<ResetComponent target="myCustomPhN" className="CustomPhN"  waitEvent="updateComplete" waitTarget="myCustomPhN"/>
+				<SetProperty target="myCustomPhN.myPhN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomPhN.ti1" propertyName="text" value="984544926" waitEvent="updateComplete" waitTarget="myCustomPhN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomPhN.myPhN" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomPhN.myPhN" eventName="valid" />
+				<DispatchMouseEvent target="myCustomPhN.ti1" type="mouseOver" localX="10" localY="10"  waitEvent="toolTipShown" waitTarget="myCustomPhN.ti1"/>
+				<WaitForEffectsToEnd />
+				<CompareBitmap target="" url="../Properties/baselines/wrongLengthError_spark.png" timeout="2000" />				
+			</body>  
+		</TestCase>		
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/Properties/baselines/invalidCharError.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/Properties/baselines/invalidCharError.png?rev=1370000&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/Properties/baselines/invalidCharError.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/Properties/baselines/invalidCharError_spark.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/Properties/baselines/invalidCharError_spark.png?rev=1370000&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/Properties/baselines/invalidCharError_spark.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/Properties/baselines/wrongLengthError.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/Properties/baselines/wrongLengthError.png?rev=1370000&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/Properties/baselines/wrongLengthError.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/Properties/baselines/wrongLengthError_spark.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/Properties/baselines/wrongLengthError_spark.png?rev=1370000&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/Properties/baselines/wrongLengthError_spark.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/SWFs/CustomPhN.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/SWFs/CustomPhN.mxml?rev=1370000&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/SWFs/CustomPhN.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/SWFs/CustomPhN.mxml Mon Aug  6 20:43:57 2012
@@ -0,0 +1,14 @@
+<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" >
+	<mx:Script>
+	<![CDATA[
+	import mx.controls.TextInput;
+	import 	mx.validators.PhoneNumberValidator;
+	import mx.managers.SystemManager;
+	
+	]]>
+	</mx:Script>
+	
+	<mx:TextInput id="ti1" />
+	<mx:PhoneNumberValidator id="myPhN" source="{ti1}" minDigits="10" />	
+	<mx:Button id="bt" />
+</mx:VBox>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/SWFs/Validators_PhoneNumber_Basic.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/SWFs/Validators_PhoneNumber_Basic.compile?rev=1370000&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/SWFs/Validators_PhoneNumber_Basic.compile (added)
+++ incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/SWFs/Validators_PhoneNumber_Basic.compile Mon Aug  6 20:43:57 2012
@@ -0,0 +1 @@
+ -theme=${flexlib}/themes/Halo/halo.swc

Added: incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/SWFs/Validators_PhoneNumber_Basic.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/SWFs/Validators_PhoneNumber_Basic.mxml?rev=1370000&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/SWFs/Validators_PhoneNumber_Basic.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/SWFs/Validators_PhoneNumber_Basic.mxml Mon Aug  6 20:43:57 2012
@@ -0,0 +1,50 @@
+<?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.
+
+-->
+<mx:Application backgroundColor="0xFFFFFF" backgroundImage="" height="375" width="500" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:local="*">
+	<mx:Style>
+			@font-face{
+				src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+				fontFamily: myVerdana;
+				embedAsCFF: false;
+			}
+	
+			@font-face{
+				src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+				fontWeight: bold;
+				fontFamily: myVerdana;
+				embedAsCFF: false;
+			}
+	
+			@font-face{
+				src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+				fontStyle: italic;
+				fontFamily: myVerdana;
+				embedAsCFF: false;
+			}
+			
+			global{
+				fontAntiAliasType: "normal";
+				fontFamily: myVerdana;
+			}
+	
+	</mx:Style>
+	
+	<local:CustomPhN id="myCustomPhN"/>
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/SWFs/Validators_PhoneNumber_Basic_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/SWFs/Validators_PhoneNumber_Basic_spark.mxml?rev=1370000&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/SWFs/Validators_PhoneNumber_Basic_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Validators/PhoneNumberValidator/SWFs/Validators_PhoneNumber_Basic_spark.mxml Mon Aug  6 20:43:57 2012
@@ -0,0 +1,49 @@
+<?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.
+
+-->
+<mx:Application backgroundColor="0xFFFFFF"  height="375" width="500" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:local="*">
+	<mx:Style>
+			@font-face{
+				src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+				fontFamily: myVerdana;
+				embedAsCFF: false;
+			}
+	
+			@font-face{
+				src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+				fontWeight: bold;
+				fontFamily: myVerdana;
+				embedAsCFF: false;
+			}
+	
+			@font-face{
+				src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+				fontStyle: italic;
+				fontFamily: myVerdana;
+				embedAsCFF: false;
+			}
+			
+			global{
+				fontAntiAliasType: "normal";
+				fontFamily: myVerdana;
+			}
+	
+	</mx:Style>
+	<local:CustomPhN id="myCustomPhN"/>
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/Validators_SocialSecurity_Properties.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/Validators_SocialSecurity_Properties.mxml?rev=1370000&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/Validators_SocialSecurity_Properties.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/Validators_SocialSecurity_Properties.mxml Mon Aug  6 20:43:57 2012
@@ -0,0 +1,186 @@
+<?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="Validators/SocialSecurityValidator/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Validators_SocialSecurity_Basic.mxml">
+
+	<!-- this set of lines form a tSSNplate 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.validators.SocialSecurityValidator;
+	import 	mx.validators.ValidationResult;
+	import mx.managers.SystemManager;
+
+	]]>
+	</mx:Script>
+
+	<testCases>
+		<TestCase testID="SocialSecurityValidator_allowedFormatChars_default"  keywords="[allowedFormatChars, SocialSecurityValidator]">
+			<setup>
+				<ResetComponent target="myCustomSSN" className="CustomSSN"  waitEvent="updateComplete" waitTarget="myCustomSSN"/> 
+				<SetProperty target="myCustomSSN.mySSN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSSN.ti1" propertyName="text" value="944854361" waitEvent="updateComplete" waitTarget="myCustomSSN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSSN.mySSN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSSN.mySSN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="SocialSecurityValidator_allowedFormatChars_1"  keywords="[allowedFormatChars, SocialSecurityValidator]">
+			<setup>
+				<ResetComponent target="myCustomSSN" className="CustomSSN"  waitEvent="updateComplete" waitTarget="myCustomSSN"/> 
+				<SetProperty target="myCustomSSN.mySSN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSSN.ti1" propertyName="text" value="944-85-3610" waitEvent="updateComplete" waitTarget="myCustomSSN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSSN.mySSN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSSN.mySSN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="SocialSecurityValidator_allowedFormatChars_3"  keywords="[allowedFormatChars, SocialSecurityValidator]">
+			<setup>
+				<ResetComponent target="myCustomSSN" className="CustomSSN"  waitEvent="updateComplete" waitTarget="myCustomSSN"/> 
+				<SetProperty target="myCustomSSN.mySSN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSSN.ti1" propertyName="text" value="944 85 3610" waitEvent="updateComplete" waitTarget="myCustomSSN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSSN.mySSN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSSN.mySSN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="SocialSecurityValidator_allowedFormatChars_6"  keywords="[allowedFormatChars, SocialSecurityValidator]">
+			<setup>
+				<ResetComponent target="myCustomSSN" className="CustomSSN"  waitEvent="updateComplete" waitTarget="myCustomSSN"/> 
+				<SetProperty target="myCustomSSN.mySSN" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSSN.mySSN" propertyName="allowedFormatChars" value="%"/>				
+			</setup>
+			<body>
+				<SetProperty target="myCustomSSN.ti1" propertyName="text" value="944%85%3610" waitEvent="updateComplete" waitTarget="myCustomSSN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSSN.mySSN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSSN.mySSN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="SocialSecurityValidator_allowedFormatChars_7"  keywords="[allowedFormatChars, SocialSecurityValidator]">
+			<setup>
+				<ResetComponent target="myCustomSSN" className="CustomSSN"  waitEvent="updateComplete" waitTarget="myCustomSSN"/> 
+				<SetProperty target="myCustomSSN.mySSN" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSSN.mySSN" propertyName="allowedFormatChars" value="s"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSSN.ti1" propertyName="text" value="944s85s3610" waitEvent="updateComplete" waitTarget="myCustomSSN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSSN.mySSN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSSN.mySSN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="SocialSecurityValidator_allowedFormatChars_8"  keywords="[allowedFormatChars, SocialSecurityValidator]">
+			<setup>
+				<ResetComponent target="myCustomSSN" className="CustomSSN"  waitEvent="updateComplete" waitTarget="myCustomSSN"/> 
+				<SetProperty target="myCustomSSN.mySSN" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSSN.mySSN" propertyName="allowedFormatChars" value="è"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSSN.ti1" propertyName="text" value="944è85è3610" waitEvent="updateComplete" waitTarget="myCustomSSN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSSN.mySSN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSSN.mySSN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="SocialSecurityValidator_allowedFormatChars_9"  keywords="[allowedFormatChars, SocialSecurityValidator]">
+			<setup>
+				<ResetComponent target="myCustomSSN" className="CustomSSN"  waitEvent="updateComplete" waitTarget="myCustomSSN"/> 
+				<SetProperty target="myCustomSSN.mySSN" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSSN.mySSN" propertyName="allowedFormatChars" value="a"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSSN.ti1" propertyName="text" value="944a85a3610" waitEvent="updateComplete" waitTarget="myCustomSSN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSSN.mySSN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSSN.mySSN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="SocialSecurityValidator_invalidCharError"  keywords="[invalidCharError, SocialSecurityValidator]">
+			<setup>
+				
+				<ResetComponent target="myCustomSSN" className="CustomSSN"  waitEvent="updateComplete" waitTarget="myCustomSSN"/>
+				<SetProperty target="myCustomSSN.mySSN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSSN.ti1" propertyName="text" value="K9488543610" waitEvent="updateComplete" waitTarget="myCustomSSN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSSN.mySSN" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSSN.mySSN" eventName="valid" />
+				<DispatchMouseEvent target="myCustomSSN.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomSSN.ti1" />
+				<WaitForEffectsToEnd />
+				<CompareBitmap target="" url="../Properties/baselines/invalidCharError.png" timeout="2000" />				
+			</body>  
+		</TestCase>
+		<TestCase testID="SocialSecurityValidator_wrongFormatError"  keywords="[wrongFormatError, SocialSecurityValidator]">
+			<setup>
+				
+				<ResetComponent target="myCustomSSN" className="CustomSSN"  waitEvent="updateComplete" waitTarget="myCustomSSN"/>
+				<SetProperty target="myCustomSSN.mySSN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSSN.ti1" propertyName="text" value="988-45-44926" waitEvent="updateComplete" waitTarget="myCustomSSN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSSN.mySSN" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSSN.mySSN" eventName="valid" />
+				<DispatchMouseEvent target="myCustomSSN.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomSSN.ti1" />
+				<WaitForEffectsToEnd />
+				<CompareBitmap target="" url="../Properties/baselines/wrongFormatError.png" timeout="2000" />				
+			</body>  
+		</TestCase>
+		<TestCase testID="SocialSecurityValidator_zeroStartError"  keywords="[zeroStartError, SocialSecurityValidator]">
+			<setup>
+				
+				<ResetComponent target="myCustomSSN" className="CustomSSN"  waitEvent="updateComplete" waitTarget="myCustomSSN"/>
+				<SetProperty target="myCustomSSN.mySSN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSSN.ti1" propertyName="text" value="000-45-4260" waitEvent="updateComplete" waitTarget="myCustomSSN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSSN.mySSN" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSSN.mySSN" eventName="valid" />
+				<DispatchMouseEvent target="myCustomSSN.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomSSN.ti1" />
+				<WaitForEffectsToEnd />
+				<CompareBitmap target="" url="../Properties/baselines/zeroStartError.png" timeout="2000" />				
+			</body>  
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/Validators_SocialSecurity_Properties_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/Validators_SocialSecurity_Properties_spark.mxml?rev=1370000&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/Validators_SocialSecurity_Properties_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/Validators_SocialSecurity_Properties_spark.mxml Mon Aug  6 20:43:57 2012
@@ -0,0 +1,187 @@
+<?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="Validators/SocialSecurityValidator/Properties/"  xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testSWF="Validators_SocialSecurity_Basic_spark.mxml">
+
+	<!-- this set of lines form a tSSNplate 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.validators.SocialSecurityValidator;
+	import 	mx.validators.ValidationResult;
+	import mx.managers.SystemManager;
+
+	]]>
+	</mx:Script>
+
+	<testCases>
+		<TestCase testID="SocialSecurityValidator_allowedFormatChars_default_spark" keywords="[allowedFormatChars, SocialSecurityValidator]">
+			<setup>
+				<ResetComponent target="myCustomSSN" className="CustomSSN"  waitEvent="updateComplete" waitTarget="myCustomSSN"/> 
+				<SetProperty target="myCustomSSN.mySSN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSSN.ti1" propertyName="text" value="944854361" waitEvent="updateComplete" waitTarget="myCustomSSN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSSN.mySSN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSSN.mySSN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="SocialSecurityValidator_allowedFormatChars_1_spark" keywords="[allowedFormatChars, SocialSecurityValidator]">
+			<setup>
+				<ResetComponent target="myCustomSSN" className="CustomSSN"  waitEvent="updateComplete" waitTarget="myCustomSSN"/> 
+				<SetProperty target="myCustomSSN.mySSN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSSN.ti1" propertyName="text" value="944-85-3610" waitEvent="updateComplete" waitTarget="myCustomSSN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSSN.mySSN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSSN.mySSN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="SocialSecurityValidator_allowedFormatChars_3_spark" keywords="[allowedFormatChars, SocialSecurityValidator]">
+			<setup>
+				<ResetComponent target="myCustomSSN" className="CustomSSN"  waitEvent="updateComplete" waitTarget="myCustomSSN"/> 
+				<SetProperty target="myCustomSSN.mySSN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSSN.ti1" propertyName="text" value="944 85 3610" waitEvent="updateComplete" waitTarget="myCustomSSN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSSN.mySSN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSSN.mySSN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="SocialSecurityValidator_allowedFormatChars_6_spark" keywords="[allowedFormatChars, SocialSecurityValidator]">
+			<setup>
+				<ResetComponent target="myCustomSSN" className="CustomSSN"  waitEvent="updateComplete" waitTarget="myCustomSSN"/> 
+				<SetProperty target="myCustomSSN.mySSN" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSSN.mySSN" propertyName="allowedFormatChars" value="%"/>				
+			</setup>
+			<body>
+				<SetProperty target="myCustomSSN.ti1" propertyName="text" value="944%85%3610" waitEvent="updateComplete" waitTarget="myCustomSSN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSSN.mySSN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSSN.mySSN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="SocialSecurityValidator_allowedFormatChars_7_spark" keywords="[allowedFormatChars, SocialSecurityValidator]">
+			<setup>
+				<ResetComponent target="myCustomSSN" className="CustomSSN"  waitEvent="updateComplete" waitTarget="myCustomSSN"/> 
+				<SetProperty target="myCustomSSN.mySSN" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSSN.mySSN" propertyName="allowedFormatChars" value="s"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSSN.ti1" propertyName="text" value="944s85s3610" waitEvent="updateComplete" waitTarget="myCustomSSN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSSN.mySSN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSSN.mySSN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="SocialSecurityValidator_allowedFormatChars_8_spark" keywords="[allowedFormatChars, SocialSecurityValidator]">
+			<setup>
+				<ResetComponent target="myCustomSSN" className="CustomSSN"  waitEvent="updateComplete" waitTarget="myCustomSSN"/> 
+				<SetProperty target="myCustomSSN.mySSN" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSSN.mySSN" propertyName="allowedFormatChars" value="è"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSSN.ti1" propertyName="text" value="944è85è3610" waitEvent="updateComplete" waitTarget="myCustomSSN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSSN.mySSN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSSN.mySSN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="SocialSecurityValidator_allowedFormatChars_9_spark" keywords="[allowedFormatChars, SocialSecurityValidator]">
+			<setup>
+				<ResetComponent target="myCustomSSN" className="CustomSSN"  waitEvent="updateComplete" waitTarget="myCustomSSN"/> 
+				<SetProperty target="myCustomSSN.mySSN" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSSN.mySSN" propertyName="allowedFormatChars" value="a"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSSN.ti1" propertyName="text" value="944a85a3610" waitEvent="updateComplete" waitTarget="myCustomSSN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSSN.mySSN" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSSN.mySSN" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="SocialSecurityValidator_invalidCharError_spark" keywords="[invalidCharError, SocialSecurityValidator]">
+			<setup>
+				
+				<ResetComponent target="myCustomSSN" className="CustomSSN"  waitEvent="updateComplete" waitTarget="myCustomSSN"/>
+				<SetProperty target="myCustomSSN.mySSN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSSN.ti1" propertyName="text" value="K9488543610" waitEvent="updateComplete" waitTarget="myCustomSSN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSSN.mySSN" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSSN.mySSN" eventName="valid" />
+				<DispatchMouseEvent target="myCustomSSN.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomSSN.ti1" />
+				<WaitForEffectsToEnd />
+				<CompareBitmap target="" url="../Properties/baselines/invalidCharError_spark.png" timeout="2000" numColorVariances="6" ignoreMaxColorVariance="true"/>				
+				<CompareBitmap target="" url="../Properties/baselines/invalidCharError_spark.png" timeout="2000" numColorVariances="6" ignoreMaxColorVariance="true"/>				
+			</body>  
+		</TestCase>
+		<TestCase testID="SocialSecurityValidator_wrongFormatError_spark" keywords="[wrongFormatError, SocialSecurityValidator]">
+			<setup>
+				
+				<ResetComponent target="myCustomSSN" className="CustomSSN"  waitEvent="updateComplete" waitTarget="myCustomSSN"/>
+				<SetProperty target="myCustomSSN.mySSN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSSN.ti1" propertyName="text" value="988-45-44926" waitEvent="updateComplete" waitTarget="myCustomSSN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSSN.mySSN" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSSN.mySSN" eventName="valid" />
+				<DispatchMouseEvent target="myCustomSSN.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomSSN.ti1" />
+				<WaitForEffectsToEnd />
+				<CompareBitmap target="" url="../Properties/baselines/wrongFormatError_spark.png" timeout="2000" />				
+			</body>  
+		</TestCase>
+		<TestCase testID="SocialSecurityValidator_zeroStartError_spark" keywords="[zeroStartError, SocialSecurityValidator]">
+			<setup>
+				
+				<ResetComponent target="myCustomSSN" className="CustomSSN"  waitEvent="updateComplete" waitTarget="myCustomSSN"/>
+				<SetProperty target="myCustomSSN.mySSN" propertyName="property" value="text"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSSN.ti1" propertyName="text" value="000-45-4260" waitEvent="updateComplete" waitTarget="myCustomSSN.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSSN.mySSN" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSSN.mySSN" eventName="valid" />
+				<DispatchMouseEvent target="myCustomSSN.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomSSN.ti1" />
+				<WaitForEffectsToEnd />
+				<CompareBitmap target="" url="../Properties/baselines/zeroStartError_spark.png" timeout="2000" />				
+			</body>  
+		</TestCase>
+	</testCases>
+</UnitTester>

Added: incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/baselines/invalidCharError.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/baselines/invalidCharError.png?rev=1370000&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/baselines/invalidCharError.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/baselines/invalidCharError_spark.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/baselines/invalidCharError_spark.png?rev=1370000&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/baselines/invalidCharError_spark.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/baselines/wrongFormatError.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/baselines/wrongFormatError.png?rev=1370000&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/baselines/wrongFormatError.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/baselines/wrongFormatError_spark.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/baselines/wrongFormatError_spark.png?rev=1370000&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/baselines/wrongFormatError_spark.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/baselines/zeroStartError.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/baselines/zeroStartError.png?rev=1370000&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/baselines/zeroStartError.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/baselines/zeroStartError_spark.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/baselines/zeroStartError_spark.png?rev=1370000&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/Properties/baselines/zeroStartError_spark.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/SWFs/CustomSSN.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/SWFs/CustomSSN.mxml?rev=1370000&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/SWFs/CustomSSN.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/SWFs/CustomSSN.mxml Mon Aug  6 20:43:57 2012
@@ -0,0 +1,14 @@
+<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" >
+	<mx:Script>
+	<![CDATA[
+	import mx.controls.TextInput;
+	import 	mx.validators.SocialSecurityValidator;
+	import mx.managers.SystemManager;
+	
+	]]>
+	</mx:Script>
+	
+	<mx:TextInput id="ti1" />
+	<mx:SocialSecurityValidator id="mySSN" source="{ti1}"/>	
+	<mx:Button id="bt" />
+</mx:VBox>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/SWFs/Validators_SocialSecurity_Basic.compile
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/SWFs/Validators_SocialSecurity_Basic.compile?rev=1370000&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/SWFs/Validators_SocialSecurity_Basic.compile (added)
+++ incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/SWFs/Validators_SocialSecurity_Basic.compile Mon Aug  6 20:43:57 2012
@@ -0,0 +1 @@
+ -theme=${flexlib}/themes/Halo/halo.swc

Added: incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/SWFs/Validators_SocialSecurity_Basic.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/SWFs/Validators_SocialSecurity_Basic.mxml?rev=1370000&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/SWFs/Validators_SocialSecurity_Basic.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/SWFs/Validators_SocialSecurity_Basic.mxml Mon Aug  6 20:43:57 2012
@@ -0,0 +1,49 @@
+<?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.
+
+-->
+<mx:Application backgroundColor="0xFFFFFF" backgroundImage="" height="375" width="500" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:local="*">
+	<mx:Style>
+			@font-face{
+				src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+				fontFamily: myVerdana;
+				embedAsCFF: false;
+			}
+	
+			@font-face{
+				src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+				fontWeight: bold;
+				fontFamily: myVerdana;
+				embedAsCFF: false;
+			}
+	
+			@font-face{
+				src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+				fontStyle: italic;
+				fontFamily: myVerdana;
+				embedAsCFF: false;
+			}
+			
+			global{
+				fontAntiAliasType: "normal";
+				fontFamily: myVerdana;
+			}
+	
+	</mx:Style>
+	<local:CustomSSN id="myCustomSSN"/>
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/SWFs/Validators_SocialSecurity_Basic_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/SWFs/Validators_SocialSecurity_Basic_spark.mxml?rev=1370000&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/SWFs/Validators_SocialSecurity_Basic_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Validators/SocialSecurityValidator/SWFs/Validators_SocialSecurity_Basic_spark.mxml Mon Aug  6 20:43:57 2012
@@ -0,0 +1,49 @@
+<?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.
+
+-->
+<mx:Application backgroundColor="0xFFFFFF"  height="375" width="500" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:local="*">
+	<mx:Style>
+			@font-face{
+				src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Regular.ttf");
+				fontFamily: myVerdana;
+				embedAsCFF: false;
+			}
+	
+			@font-face{
+				src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Bold.ttf");
+				fontWeight: bold;
+				fontFamily: myVerdana;
+				embedAsCFF: false;
+			}
+	
+			@font-face{
+				src: url("../../../../Assets/Fonts/Open_Sans/OpenSans-Italic.ttf");
+				fontStyle: italic;
+				fontFamily: myVerdana;
+				embedAsCFF: false;
+			}
+			
+			global{
+				fontAntiAliasType: "normal";
+				fontFamily: myVerdana;
+			}
+	
+	</mx:Style>
+	<local:CustomSSN id="myCustomSSN"/>
+</mx:Application>

Added: incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/Validators_StringValidator_Properties.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/Validators_StringValidator_Properties.mxml?rev=1370000&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/Validators_StringValidator_Properties.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/Validators_StringValidator_Properties.mxml Mon Aug  6 20:43:57 2012
@@ -0,0 +1,170 @@
+<?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 xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testDir="Validators/StringValidator/Properties/" testSWF="Validators_StringValidator_Basic.mxml">
+
+	<!-- this set of lines form a tSVplate 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.validators.StringValidator;
+	import 	mx.validators.ValidationResult;
+	import mx.managers.SystemManager;
+
+	]]>
+	</mx:Script>
+
+	<testCases>
+		<TestCase testID="StringValidator_maxLength"  keywords="[maxLength, StringValidator]">
+			<setup>
+				<ResetComponent target="myCustomSV" className="CustomSV"  waitEvent="updateComplete" waitTarget="myCustomSV"/> 
+				<SetProperty target="myCustomSV.mySV" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="maxLength" value="6"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSV.ti1" propertyName="text" value="Hello!" waitEvent="updateComplete" waitTarget="myCustomSV.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSV.mySV" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSV.mySV" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="StringValidator_minLength"  keywords="[minLength, StringValidator]">
+			<setup>
+				<ResetComponent target="myCustomSV" className="CustomSV"  waitEvent="updateComplete" waitTarget="myCustomSV"/> 
+				<SetProperty target="myCustomSV.mySV" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="minLength" value="6"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSV.ti1" propertyName="text" value="Hello World!" waitEvent="updateComplete" waitTarget="myCustomSV.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSV.mySV" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSV.mySV" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="StringValidator_maxLength1"  keywords="[maxLength, StringValidator]">
+			<setup>
+				<ResetComponent target="myCustomSV" className="CustomSV"  waitEvent="updateComplete" waitTarget="myCustomSV"/> 
+				<SetProperty target="myCustomSV.mySV" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="maxLength" value="6.7"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSV.ti1" propertyName="text" value="Hello!" waitEvent="updateComplete" waitTarget="myCustomSV.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSV.mySV" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSV.mySV" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="StringValidator_minLength1"  keywords="[minLength, StringValidator]">
+			<setup>
+				<ResetComponent target="myCustomSV" className="CustomSV"  waitEvent="updateComplete" waitTarget="myCustomSV"/> 
+				<SetProperty target="myCustomSV.mySV" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="minLength" value="6.5"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSV.ti1" propertyName="text" value="Hello World!" waitEvent="updateComplete" waitTarget="myCustomSV.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSV.mySV" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSV.mySV" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="StringValidator_tooLongError"  keywords="[tooLongError, StringValidator]">
+			<setup>
+				
+				<ResetComponent target="myCustomSV" className="CustomSV"  waitEvent="updateComplete" waitTarget="myCustomSV"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="maxLength" value="6.5"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSV.ti1" propertyName="text" value="Hello World!" waitEvent="updateComplete" waitTarget="myCustomSV.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSV.mySV" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSV.mySV" eventName="valid" />
+				<DispatchMouseEvent target="myCustomSV.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomSV.ti1"/>
+				<WaitForEffectsToEnd />
+				<CompareBitmap target="" url="../Properties/baselines/tooLongError.png" timeout="2000" numColorVariances="4" ignoreMaxColorVariance="true"/>				
+			</body>  
+		</TestCase>
+		<TestCase testID="StringValidator_tooLongError1"  keywords="[tooLongError, StringValidator]">
+			<setup>
+				
+				<ResetComponent target="myCustomSV" className="CustomSV"  waitEvent="updateComplete" waitTarget="myCustomSV"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="maxLength" value="6"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSV.ti1" propertyName="text" value="Hello !" waitEvent="updateComplete" waitTarget="myCustomSV.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSV.mySV" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSV.mySV" eventName="valid" />
+				<DispatchMouseEvent target="myCustomSV.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomSV.ti1" />
+				<WaitForEffectsToEnd />
+				<CompareBitmap target="" url="../Properties/baselines/tooLongError1.png" timeout="2000" numColorVariances="4" ignoreMaxColorVariance="true"/>				
+			</body>  
+		</TestCase>
+		<TestCase testID="StringValidator_tooShortError"  keywords="[tooLongError, StringValidator]">
+			<setup>
+				
+				<ResetComponent target="myCustomSV" className="CustomSV"  waitEvent="updateComplete" waitTarget="myCustomSV"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="minLength" value="6.5"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSV.ti1" propertyName="text" value="Hello" waitEvent="updateComplete" waitTarget="myCustomSV.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSV.mySV" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSV.mySV" eventName="valid" />
+				<DispatchMouseEvent target="myCustomSV.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomSV.ti1" />
+				<WaitForEffectsToEnd />
+				<CompareBitmap target="" url="../Properties/baselines/tooShortError.png" timeout="2000" numColorVariances="4" ignoreMaxColorVariance="true"/>				
+			</body>  
+		</TestCase>
+		<TestCase testID="StringValidator_tooShortError1"  keywords="[tooShortError, StringValidator]">
+			<setup>
+				
+				<ResetComponent target="myCustomSV" className="CustomSV"  waitEvent="updateComplete" waitTarget="myCustomSV"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="minLength" value="6"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSV.ti1" propertyName="text" value="Hello" waitEvent="updateComplete" waitTarget="myCustomSV.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSV.mySV" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSV.mySV" eventName="valid" />
+				<DispatchMouseEvent target="myCustomSV.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomSV.ti1" />
+				<WaitForEffectsToEnd />
+				<CompareBitmap target="" url="../Properties/baselines/tooShortError1.png" timeout="2000" numColorVariances="4" ignoreMaxColorVariance="true"/>				
+			</body>  
+		</TestCase>		
+	</testCases>
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/Validators_StringValidator_Properties_spark.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/Validators_StringValidator_Properties_spark.mxml?rev=1370000&view=auto
==============================================================================
--- incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/Validators_StringValidator_Properties_spark.mxml (added)
+++ incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/Validators_StringValidator_Properties_spark.mxml Mon Aug  6 20:43:57 2012
@@ -0,0 +1,170 @@
+<?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 xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" testDir="Validators/StringValidator/Properties/" testSWF="Validators_StringValidator_Basic_spark.mxml">
+
+	<!-- this set of lines form a tSVplate 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.validators.StringValidator;
+	import 	mx.validators.ValidationResult;
+	import mx.managers.SystemManager;
+
+	]]>
+	</mx:Script>
+
+	<testCases>
+		<TestCase testID="StringValidator_maxLength_spark" keywords="[maxLength, StringValidator]">
+			<setup>
+				<ResetComponent target="myCustomSV" className="CustomSV"  waitEvent="updateComplete" waitTarget="myCustomSV"/> 
+				<SetProperty target="myCustomSV.mySV" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="maxLength" value="6"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSV.ti1" propertyName="text" value="Hello!" waitEvent="updateComplete" waitTarget="myCustomSV.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSV.mySV" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSV.mySV" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="StringValidator_minLength_spark" keywords="[minLength, StringValidator]">
+			<setup>
+				<ResetComponent target="myCustomSV" className="CustomSV"  waitEvent="updateComplete" waitTarget="myCustomSV"/> 
+				<SetProperty target="myCustomSV.mySV" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="minLength" value="6"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSV.ti1" propertyName="text" value="Hello World!" waitEvent="updateComplete" waitTarget="myCustomSV.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSV.mySV" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSV.mySV" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="StringValidator_maxLength1_spark" keywords="[maxLength, StringValidator]">
+			<setup>
+				<ResetComponent target="myCustomSV" className="CustomSV"  waitEvent="updateComplete" waitTarget="myCustomSV"/> 
+				<SetProperty target="myCustomSV.mySV" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="maxLength" value="6.7"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSV.ti1" propertyName="text" value="Hello!" waitEvent="updateComplete" waitTarget="myCustomSV.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSV.mySV" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSV.mySV" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="StringValidator_minLength1_spark" keywords="[minLength, StringValidator]">
+			<setup>
+				<ResetComponent target="myCustomSV" className="CustomSV"  waitEvent="updateComplete" waitTarget="myCustomSV"/> 
+				<SetProperty target="myCustomSV.mySV" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="minLength" value="6.5"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSV.ti1" propertyName="text" value="Hello World!" waitEvent="updateComplete" waitTarget="myCustomSV.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSV.mySV" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSV.mySV" eventName="invalid" />
+			</body>  
+		</TestCase>
+		<TestCase testID="StringValidator_tooLongError_spark" keywords="[tooLongError, StringValidator]">
+			<setup>
+				
+				<ResetComponent target="myCustomSV" className="CustomSV"  waitEvent="updateComplete" waitTarget="myCustomSV"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="maxLength" value="6.5"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSV.ti1" propertyName="text" value="Hello World!" waitEvent="updateComplete" waitTarget="myCustomSV.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSV.mySV" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSV.mySV" eventName="valid" />
+				<DispatchMouseEvent target="myCustomSV.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomSV.ti1"/>
+				<WaitForEffectsToEnd />
+				<CompareBitmap target="" url="../Properties/baselines/tooLongError_spark_spark.png" timeout="2000" />				
+			</body>  
+		</TestCase>
+		<TestCase testID="StringValidator_tooLongError1_spark" keywords="[tooLongError, StringValidator]">
+			<setup>
+				
+				<ResetComponent target="myCustomSV" className="CustomSV"  waitEvent="updateComplete" waitTarget="myCustomSV"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="maxLength" value="6"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSV.ti1" propertyName="text" value="Hello !" waitEvent="updateComplete" waitTarget="myCustomSV.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSV.mySV" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSV.mySV" eventName="valid" />
+				<DispatchMouseEvent target="myCustomSV.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomSV.ti1" />
+				<WaitForEffectsToEnd />
+				<CompareBitmap target="" url="../Properties/baselines/tooLongError1_spark_spark.png" timeout="2000" />				
+			</body>  
+		</TestCase>
+		<TestCase testID="StringValidator_tooShortError_spark" keywords="[tooLongError, StringValidator]">
+			<setup>
+				
+				<ResetComponent target="myCustomSV" className="CustomSV"  waitEvent="updateComplete" waitTarget="myCustomSV"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="minLength" value="6.5"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSV.ti1" propertyName="text" value="Hello" waitEvent="updateComplete" waitTarget="myCustomSV.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSV.mySV" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSV.mySV" eventName="valid" />
+				<DispatchMouseEvent target="myCustomSV.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomSV.ti1" />
+				<WaitForEffectsToEnd />
+				<CompareBitmap target="" url="../Properties/baselines/tooShortError_spark_spark.png" timeout="2000" />				
+			</body>  
+		</TestCase>
+		<TestCase testID="StringValidator_tooShortError1_spark" keywords="[tooShortError, StringValidator]">
+			<setup>
+				
+				<ResetComponent target="myCustomSV" className="CustomSV"  waitEvent="updateComplete" waitTarget="myCustomSV"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="property" value="text"/>
+				<SetProperty target="myCustomSV.mySV" propertyName="minLength" value="6"/>
+			</setup>
+			<body>
+				<SetProperty target="myCustomSV.ti1" propertyName="text" value="Hello" waitEvent="updateComplete" waitTarget="myCustomSV.ti1"/>
+				<DispatchKeyEvent keys="[TAB, TAB]"/>
+				<AssertEvent target="myCustomSV.mySV" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
+				<AssertNoEvent target="myCustomSV.mySV" eventName="valid" />
+				<DispatchMouseEvent target="myCustomSV.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomSV.ti1" />
+				<WaitForEffectsToEnd />
+				<CompareBitmap target="" url="../Properties/baselines/tooShortError1_spark_spark.png" timeout="2000" />				
+			</body>  
+		</TestCase>		
+	</testCases>
+</UnitTester>
\ No newline at end of file

Added: incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/baselines/tooLongError.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/baselines/tooLongError.png?rev=1370000&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/baselines/tooLongError.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/baselines/tooLongError1.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/baselines/tooLongError1.png?rev=1370000&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/baselines/tooLongError1.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/baselines/tooLongError1_spark_spark.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/baselines/tooLongError1_spark_spark.png?rev=1370000&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/baselines/tooLongError1_spark_spark.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/baselines/tooLongError_spark_spark.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/baselines/tooLongError_spark_spark.png?rev=1370000&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/baselines/tooLongError_spark_spark.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/baselines/tooShortError.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/baselines/tooShortError.png?rev=1370000&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/baselines/tooShortError.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/baselines/tooShortError1.png
URL: http://svn.apache.org/viewvc/incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/baselines/tooShortError1.png?rev=1370000&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/trunk/mustella/tests/Validators/StringValidator/Properties/baselines/tooShortError1.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



Mime
View raw message