You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by to...@apache.org on 2014/08/01 20:00:43 UTC
git commit: [flex-sdk] [refs/heads/develop] - Fix FLEX-34450 by
removing the length checks for the last part of an email domain Update
Mustella tests to mathc new behaviour i.e. the tests should now return valid
Repository: flex-sdk
Updated Branches:
refs/heads/develop 6b1330f00 -> ed6da554e
Fix FLEX-34450 by removing the length checks for the last part of an email domain
Update Mustella tests to mathc new behaviour i.e. the tests should now return valid
Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/ed6da554
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/ed6da554
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/ed6da554
Branch: refs/heads/develop
Commit: ed6da554e931c317717f8e8673e1f698140b0be1
Parents: 6b1330f
Author: Tom Chiverton <to...@apache.org>
Authored: Fri Aug 1 18:41:05 2014 +0100
Committer: Tom Chiverton <to...@apache.org>
Committed: Fri Aug 1 18:41:05 2014 +0100
----------------------------------------------------------------------
.../src/mx/validators/EmailValidator.as | 10 ---
.../Properties/Validators_Email_IPV6.mxml | 82 +++++++++---------
.../Properties/Validators_Email_IPV6_spark.mxml | 82 +++++++++---------
.../Properties/Validators_Email_Properties.mxml | 86 +++++++++----------
.../Validators_Email_Properties_spark.mxml | 74 ++++++++--------
.../Properties/baselines/invalidDomainError.png | Bin 4918 -> 2746 bytes
.../baselines/ipv6_invalidDomainError.png | Bin 4444 -> 2641 bytes
.../baselines/ipv6_invalidDomainError_spark.png | Bin 4667 -> 2796 bytes
8 files changed, 162 insertions(+), 172 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/ed6da554/frameworks/projects/framework/src/mx/validators/EmailValidator.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/framework/src/mx/validators/EmailValidator.as b/frameworks/projects/framework/src/mx/validators/EmailValidator.as
index f928371..9776db3 100644
--- a/frameworks/projects/framework/src/mx/validators/EmailValidator.as
+++ b/frameworks/projects/framework/src/mx/validators/EmailValidator.as
@@ -217,16 +217,6 @@ public class EmailValidator extends Validator
if (nextPeriodPos == -1)
{
lastDomain = domain.substring(periodPos + 1);
- if (lastDomain.length != 3 &&
- lastDomain.length != 2 &&
- lastDomain.length != 4 &&
- lastDomain.length != 6)
- {
- results.push(new ValidationResult(
- true, baseField, "invalidDomain",
- validator.invalidDomainError));
- return results;
- }
break;
}
else if (nextPeriodPos == periodPos + 1)
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/ed6da554/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_IPV6.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_IPV6.mxml b/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_IPV6.mxml
index b6c153e..f782ac1 100644
--- a/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_IPV6.mxml
+++ b/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_IPV6.mxml
@@ -48,7 +48,7 @@
<testCases>
<TestCase testID="EmailValidator_tooManyAtSignsError" keywords="[tooManyAtSignsError, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.myEm" propertyName="tooManyAtSignsError" value="TooManyAtSignsError: Email value has too many @ signs."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingUsernameError" value="MissingUsernameError: Value missing username."/>
@@ -58,7 +58,7 @@
<SetProperty target="myCustomEm.myEm" propertyName="invalidIPDomainError" value="InvalidIPDomainError: Incorrect IP Domain format."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingAtSignError" value="MissingAtSignError: Email address should have @ character."/>
<SetProperty target="myCustomEm.myEm" propertyName="invalidCharError" value="InvalidCharError: Invalid character(s) in the email address."/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="first@name@domain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -69,12 +69,12 @@
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
<CompareBitmap target="" url="../Properties/baselines/ipv6_tooManyAtSignsError.png" timeout="5000" />
- </body>
+ </body>
</TestCase>
<TestCase testID="EmailValidator_missingUsernameError" keywords="[missingUsernameError, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.myEm" propertyName="tooManyAtSignsError" value="TooManyAtSignsError: Email value has too many @ signs."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingUsernameError" value="MissingUsernameError: Value missing username."/>
@@ -84,7 +84,7 @@
<SetProperty target="myCustomEm.myEm" propertyName="invalidIPDomainError" value="InvalidIPDomainError: Incorrect IP Domain format."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingAtSignError" value="MissingAtSignError: Email address should have @ character."/>
<SetProperty target="myCustomEm.myEm" propertyName="invalidCharError" value="InvalidCharError: Invalid character(s) in the email address."/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="@domain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -95,12 +95,12 @@
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
<CompareBitmap target="" url="../Properties/baselines/ipv6_missingUsernameError.png" timeout="5000" />
- </body>
+ </body>
</TestCase>
<TestCase testID="EmailValidator_missingUsernameError2" keywords="[missingPeriodInDomainError, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.myEm" propertyName="tooManyAtSignsError" value="TooManyAtSignsError: Email value has too many @ signs."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingUsernameError" value="MissingUsernameError: Value missing username."/>
@@ -110,7 +110,7 @@
<SetProperty target="myCustomEm.myEm" propertyName="invalidIPDomainError" value="InvalidIPDomainError: Incorrect IP Domain format."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingAtSignError" value="MissingAtSignError: Email address should have @ character."/>
<SetProperty target="myCustomEm.myEm" propertyName="invalidCharError" value="InvalidCharError: Invalid character(s) in the email address."/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="name@domaincom" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -121,12 +121,12 @@
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
<CompareBitmap target="" url="../Properties/baselines/ipv6_missingPeriodInDomainError.png" timeout="5000" />
- </body>
+ </body>
</TestCase>
-
+
<TestCase testID="EmailValidator_invalidDomainError" keywords="[invalidDomainError, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.myEm" propertyName="tooManyAtSignsError" value="TooManyAtSignsError: Email value has too many @ signs."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingUsernameError" value="MissingUsernameError: Value missing username."/>
@@ -136,23 +136,23 @@
<SetProperty target="myCustomEm.myEm" propertyName="invalidIPDomainError" value="InvalidIPDomainError: Incorrect IP Domain format."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingAtSignError" value="MissingAtSignError: Email address should have @ character."/>
<SetProperty target="myCustomEm.myEm" propertyName="invalidCharError" value="InvalidCharError: Invalid character(s) in the email address."/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="name@domain.invalid" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
<DispatchKeyEvent keys="[TAB, TAB]"/>
- <AssertEvent target="myCustomEm.myEm" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
- <AssertNoEvent target="myCustomEm.myEm" eventName="valid" />
- <DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
+ <AssertEvent target="myCustomEm.myEm" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+ <AssertNoEvent target="myCustomEm.myEm" eventName="invalid" />
+ <DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" />
<WaitForEffectsToEnd />
<CompareBitmap target="" url="../Properties/baselines/ipv6_invalidDomainError.png" timeout="5000" />
- </body>
+ </body>
</TestCase>
-
+
<TestCase testID="EmailValidator_invalidPeriodsInDomainError" keywords="[invalidPeriodsInDomainError, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.myEm" propertyName="tooManyAtSignsError" value="TooManyAtSignsError: Email value has too many @ signs."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingUsernameError" value="MissingUsernameError: Value missing username."/>
@@ -162,7 +162,7 @@
<SetProperty target="myCustomEm.myEm" propertyName="invalidIPDomainError" value="InvalidIPDomainError: Incorrect IP Domain format."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingAtSignError" value="MissingAtSignError: Email address should have @ character."/>
<SetProperty target="myCustomEm.myEm" propertyName="invalidCharError" value="InvalidCharError: Invalid character(s) in the email address."/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="name@..domain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -173,12 +173,12 @@
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
<CompareBitmap target="" url="../Properties/baselines/ipv6_invalidPeriodsInDomainError.png" timeout="5000" />
- </body>
- </TestCase>
+ </body>
+ </TestCase>
<TestCase testID="EmailValidator_invalidIPDomainError" keywords="[invalidIPDomainError, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.myEm" propertyName="tooManyAtSignsError" value="TooManyAtSignsError: Email value has too many @ signs."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingUsernameError" value="MissingUsernameError: Value missing username."/>
@@ -188,7 +188,7 @@
<SetProperty target="myCustomEm.myEm" propertyName="invalidIPDomainError" value="InvalidIPDomainError: Incorrect IP Domain format."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingAtSignError" value="MissingAtSignError: Email address should have @ character."/>
<SetProperty target="myCustomEm.myEm" propertyName="invalidCharError" value="InvalidCharError: Invalid character(s) in the email address."/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="name@[.0]" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -199,13 +199,13 @@
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
<CompareBitmap target="" url="../Properties/baselines/ipv6_invalidIPDomainError.png" timeout="5000" />
- </body>
+ </body>
</TestCase>
-
-
+
+
<TestCase testID="EmailValidator_InvalidPeriodsInDomainError" keywords="[InvalidPeriodsInDomainError, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.myEm" propertyName="tooManyAtSignsError" value="TooManyAtSignsError: Email value has too many @ signs."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingUsernameError" value="MissingUsernameError: Value missing username."/>
@@ -215,7 +215,7 @@
<SetProperty target="myCustomEm.myEm" propertyName="invalidIPDomainError" value="InvalidIPDomainError: Incorrect IP Domain format."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingAtSignError" value="MissingAtSignError: Email address should have @ character."/>
<SetProperty target="myCustomEm.myEm" propertyName="invalidCharError" value="InvalidCharError: Invalid character(s) in the email address."/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="name@..domain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -226,12 +226,12 @@
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
<CompareBitmap target="" url="../Properties/baselines/ipv6_invalidPeriodsInDomainError.png" timeout="5000" />
- </body>
+ </body>
</TestCase>
<TestCase testID="EmailValidator_InvalidIPDomainError_2" keywords="[InvalidIPDomainError_2, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.myEm" propertyName="tooManyAtSignsError" value="TooManyAtSignsError: Email value has too many @ signs."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingUsernameError" value="MissingUsernameError: Value missing username."/>
@@ -241,7 +241,7 @@
<SetProperty target="myCustomEm.myEm" propertyName="invalidIPDomainError" value="InvalidIPDomainError: Incorrect IP Domain format."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingAtSignError" value="MissingAtSignError: Email address should have @ character."/>
<SetProperty target="myCustomEm.myEm" propertyName="invalidCharError" value="InvalidCharError: Invalid character(s) in the email address."/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="name@[5000.0.0.0]" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -252,12 +252,12 @@
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
<CompareBitmap target="" url="../Properties/baselines/ipv6_invalidIPDomainError_2.png" timeout="5000" />
- </body>
+ </body>
</TestCase>
-
+
<TestCase testID="EmailValidator_missingAtSignError" keywords="[missingAtSignError, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.myEm" propertyName="tooManyAtSignsError" value="TooManyAtSignsError: Email value has too many @ signs."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingUsernameError" value="MissingUsernameError: Value missing username."/>
@@ -267,7 +267,7 @@
<SetProperty target="myCustomEm.myEm" propertyName="invalidIPDomainError" value="InvalidIPDomainError: Incorrect IP Domain format."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingAtSignError" value="MissingAtSignError: Email address should have @ character."/>
<SetProperty target="myCustomEm.myEm" propertyName="invalidCharError" value="InvalidCharError: Invalid character(s) in the email address."/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="namedomain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -278,12 +278,12 @@
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
<CompareBitmap target="" url="../Properties/baselines/ipv6_missingAtSignError.png" timeout="5000" />
- </body>
+ </body>
</TestCase>
-
+
<TestCase testID="EmailValidator_invalidCharError" keywords="[invalidCharError, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.myEm" propertyName="tooManyAtSignsError" value="TooManyAtSignsError: Email value has too many @ signs."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingUsernameError" value="MissingUsernameError: Value missing username."/>
@@ -293,7 +293,7 @@
<SetProperty target="myCustomEm.myEm" propertyName="invalidIPDomainError" value="InvalidIPDomainError: Incorrect IP Domain format."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingAtSignError" value="MissingAtSignError: Email address should have @ character."/>
<SetProperty target="myCustomEm.myEm" propertyName="invalidCharError" value="InvalidCharError: Invalid character(s) in the email address."/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="n*me@domain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -304,7 +304,7 @@
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
<CompareBitmap target="" url="../Properties/baselines/ipv6_invalidCharError.png" timeout="5000" />
- </body>
- </TestCase>
+ </body>
+ </TestCase>
</testCases>
</UnitTester>
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/ed6da554/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_IPV6_spark.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_IPV6_spark.mxml b/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_IPV6_spark.mxml
index b5b6765..a06925f 100644
--- a/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_IPV6_spark.mxml
+++ b/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_IPV6_spark.mxml
@@ -48,7 +48,7 @@
<testCases>
<TestCase testID="EmailValidator_tooManyAtSignsError_spark" keywords="[tooManyAtSignsError, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.myEm" propertyName="tooManyAtSignsError" value="TooManyAtSignsError: Email value has too many @ signs."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingUsernameError" value="MissingUsernameError: Value missing username."/>
@@ -58,7 +58,7 @@
<SetProperty target="myCustomEm.myEm" propertyName="invalidIPDomainError" value="InvalidIPDomainError: Incorrect IP Domain format."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingAtSignError" value="MissingAtSignError: Email address should have @ character."/>
<SetProperty target="myCustomEm.myEm" propertyName="invalidCharError" value="InvalidCharError: Invalid character(s) in the email address."/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="first@name@domain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -69,12 +69,12 @@
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
<CompareBitmap target="" url="../Properties/baselines/ipv6_tooManyAtSignsError_spark.png" timeout="5000" numColorVariances="4" ignoreMaxColorVariance="true"/>
- </body>
+ </body>
</TestCase>
<TestCase testID="EmailValidator_missingUsernameError_spark" keywords="[missingUsernameError, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.myEm" propertyName="tooManyAtSignsError" value="TooManyAtSignsError: Email value has too many @ signs."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingUsernameError" value="MissingUsernameError: Value missing username."/>
@@ -84,7 +84,7 @@
<SetProperty target="myCustomEm.myEm" propertyName="invalidIPDomainError" value="InvalidIPDomainError: Incorrect IP Domain format."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingAtSignError" value="MissingAtSignError: Email address should have @ character."/>
<SetProperty target="myCustomEm.myEm" propertyName="invalidCharError" value="InvalidCharError: Invalid character(s) in the email address."/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="@domain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -95,12 +95,12 @@
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
<CompareBitmap target="" url="../Properties/baselines/ipv6_missingUsernameError_spark.png" timeout="5000" />
- </body>
+ </body>
</TestCase>
<TestCase testID="EmailValidator_missingUsernameError2_spark" keywords="[missingPeriodInDomainError, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.myEm" propertyName="tooManyAtSignsError" value="TooManyAtSignsError: Email value has too many @ signs."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingUsernameError" value="MissingUsernameError: Value missing username."/>
@@ -110,7 +110,7 @@
<SetProperty target="myCustomEm.myEm" propertyName="invalidIPDomainError" value="InvalidIPDomainError: Incorrect IP Domain format."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingAtSignError" value="MissingAtSignError: Email address should have @ character."/>
<SetProperty target="myCustomEm.myEm" propertyName="invalidCharError" value="InvalidCharError: Invalid character(s) in the email address."/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="name@domaincom" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -121,12 +121,12 @@
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
<CompareBitmap target="" url="../Properties/baselines/ipv6_missingPeriodInDomainError_spark.png" timeout="5000" />
- </body>
+ </body>
</TestCase>
-
+
<TestCase testID="EmailValidator_invalidDomainError_spark" keywords="[invalidDomainError, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.myEm" propertyName="tooManyAtSignsError" value="TooManyAtSignsError: Email value has too many @ signs."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingUsernameError" value="MissingUsernameError: Value missing username."/>
@@ -136,23 +136,23 @@
<SetProperty target="myCustomEm.myEm" propertyName="invalidIPDomainError" value="InvalidIPDomainError: Incorrect IP Domain format."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingAtSignError" value="MissingAtSignError: Email address should have @ character."/>
<SetProperty target="myCustomEm.myEm" propertyName="invalidCharError" value="InvalidCharError: Invalid character(s) in the email address."/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="name@domain.invalid" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
<DispatchKeyEvent keys="[TAB, TAB]"/>
- <AssertEvent target="myCustomEm.myEm" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
- <AssertNoEvent target="myCustomEm.myEm" eventName="valid" />
- <DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
+ <AssertEvent target="myCustomEm.myEm" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+ <AssertNoEvent target="myCustomEm.myEm" eventName="invalid" />
+ <DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" />
<WaitForEffectsToEnd />
<CompareBitmap target="" url="../Properties/baselines/ipv6_invalidDomainError_spark.png" timeout="5000" />
- </body>
+ </body>
</TestCase>
-
+
<TestCase testID="EmailValidator_invalidPeriodsInDomainError_spark" keywords="[invalidPeriodsInDomainError, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.myEm" propertyName="tooManyAtSignsError" value="TooManyAtSignsError: Email value has too many @ signs."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingUsernameError" value="MissingUsernameError: Value missing username."/>
@@ -162,7 +162,7 @@
<SetProperty target="myCustomEm.myEm" propertyName="invalidIPDomainError" value="InvalidIPDomainError: Incorrect IP Domain format."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingAtSignError" value="MissingAtSignError: Email address should have @ character."/>
<SetProperty target="myCustomEm.myEm" propertyName="invalidCharError" value="InvalidCharError: Invalid character(s) in the email address."/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="name@..domain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -173,12 +173,12 @@
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
<CompareBitmap target="" url="../Properties/baselines/ipv6_invalidPeriodsInDomainError_spark.png" timeout="5000" />
- </body>
- </TestCase>
+ </body>
+ </TestCase>
<TestCase testID="EmailValidator_invalidIPDomainError_spark" keywords="[invalidIPDomainError, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.myEm" propertyName="tooManyAtSignsError" value="TooManyAtSignsError: Email value has too many @ signs."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingUsernameError" value="MissingUsernameError: Value missing username."/>
@@ -188,7 +188,7 @@
<SetProperty target="myCustomEm.myEm" propertyName="invalidIPDomainError" value="InvalidIPDomainError: Incorrect IP Domain format."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingAtSignError" value="MissingAtSignError: Email address should have @ character."/>
<SetProperty target="myCustomEm.myEm" propertyName="invalidCharError" value="InvalidCharError: Invalid character(s) in the email address."/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="name@[.0]" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -199,13 +199,13 @@
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
<CompareBitmap target="" url="../Properties/baselines/ipv6_invalidIPDomainError_spark.png" timeout="5000" />
- </body>
+ </body>
</TestCase>
-
-
+
+
<TestCase testID="EmailValidator_InvalidPeriodsInDomainError_spark" keywords="[InvalidPeriodsInDomainError, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.myEm" propertyName="tooManyAtSignsError" value="TooManyAtSignsError: Email value has too many @ signs."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingUsernameError" value="MissingUsernameError: Value missing username."/>
@@ -215,7 +215,7 @@
<SetProperty target="myCustomEm.myEm" propertyName="invalidIPDomainError" value="InvalidIPDomainError: Incorrect IP Domain format."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingAtSignError" value="MissingAtSignError: Email address should have @ character."/>
<SetProperty target="myCustomEm.myEm" propertyName="invalidCharError" value="InvalidCharError: Invalid character(s) in the email address."/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="name@..domain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -226,12 +226,12 @@
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
<CompareBitmap target="" url="../Properties/baselines/ipv6_invalidPeriodsInDomainError_spark.png" timeout="5000" />
- </body>
+ </body>
</TestCase>
<TestCase testID="EmailValidator_InvalidIPDomainError_2_spark" keywords="[InvalidIPDomainError_2, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.myEm" propertyName="tooManyAtSignsError" value="TooManyAtSignsError: Email value has too many @ signs."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingUsernameError" value="MissingUsernameError: Value missing username."/>
@@ -241,7 +241,7 @@
<SetProperty target="myCustomEm.myEm" propertyName="invalidIPDomainError" value="InvalidIPDomainError: Incorrect IP Domain format."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingAtSignError" value="MissingAtSignError: Email address should have @ character."/>
<SetProperty target="myCustomEm.myEm" propertyName="invalidCharError" value="InvalidCharError: Invalid character(s) in the email address."/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="name@[5000.0.0.0]" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -252,12 +252,12 @@
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
<CompareBitmap target="" url="../Properties/baselines/ipv6_invalidIPDomainError_2_spark.png" timeout="5000" />
- </body>
+ </body>
</TestCase>
-
+
<TestCase testID="EmailValidator_missingAtSignError_spark" keywords="[missingAtSignError, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.myEm" propertyName="tooManyAtSignsError" value="TooManyAtSignsError: Email value has too many @ signs."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingUsernameError" value="MissingUsernameError: Value missing username."/>
@@ -267,7 +267,7 @@
<SetProperty target="myCustomEm.myEm" propertyName="invalidIPDomainError" value="InvalidIPDomainError: Incorrect IP Domain format."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingAtSignError" value="MissingAtSignError: Email address should have @ character."/>
<SetProperty target="myCustomEm.myEm" propertyName="invalidCharError" value="InvalidCharError: Invalid character(s) in the email address."/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="namedomain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -278,12 +278,12 @@
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
<CompareBitmap target="" url="../Properties/baselines/ipv6_missingAtSignError_spark.png" timeout="5000" />
- </body>
+ </body>
</TestCase>
-
+
<TestCase testID="EmailValidator_invalidCharError_spark" keywords="[invalidCharError, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.myEm" propertyName="tooManyAtSignsError" value="TooManyAtSignsError: Email value has too many @ signs."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingUsernameError" value="MissingUsernameError: Value missing username."/>
@@ -293,7 +293,7 @@
<SetProperty target="myCustomEm.myEm" propertyName="invalidIPDomainError" value="InvalidIPDomainError: Incorrect IP Domain format."/>
<SetProperty target="myCustomEm.myEm" propertyName="missingAtSignError" value="MissingAtSignError: Email address should have @ character."/>
<SetProperty target="myCustomEm.myEm" propertyName="invalidCharError" value="InvalidCharError: Invalid character(s) in the email address."/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="n*me@domain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -304,7 +304,7 @@
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
<CompareBitmap target="" url="../Properties/baselines/ipv6_invalidCharError_spark.png" timeout="5000" numColorVariances="6" ignoreMaxColorVariance="true"/>
- </body>
- </TestCase>
+ </body>
+ </TestCase>
</testCases>
</UnitTester>
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/ed6da554/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_Properties.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_Properties.mxml b/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_Properties.mxml
index 9eda33d..ae32f1a 100644
--- a/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_Properties.mxml
+++ b/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_Properties.mxml
@@ -48,16 +48,16 @@
<testCases>
<TestCase testID="EmailValidator_valid" keywords="[valid, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="sarvatanayadatta@ydomain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
<DispatchKeyEvent keys="[TAB, TAB]"/>
<AssertEvent target="myCustomEm.myEm" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
<AssertNoEvent target="myCustomEm.myEm" eventName="invalid" />
- </body>
+ </body>
</TestCase>
<TestCase testID="EmailValidator_invalidCharError1" keywords="[invalidCharError, EmailValidator]">
@@ -71,11 +71,11 @@
<DispatchKeyEvent keys="[TAB, TAB]"/>
<AssertEvent target="myCustomEm.myEm" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
<AssertNoEvent target="myCustomEm.myEm" eventName="valid" />
- </body>
+ </body>
</TestCase>
<TestCase testID="EmailValidator_invalidCharError2" keywords="[invalidCharError, EmailValidator]">
<setup>
-
+
<ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="mavenki!ydomain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -87,12 +87,12 @@
<AssertNoEvent target="myCustomEm.myEm" eventName="valid" />
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
- <CompareBitmap target="" url="../Properties/baselines/invalidCharError.png" timeout="2000" />
- </body>
+ <CompareBitmap target="" url="../Properties/baselines/invalidCharError.png" timeout="2000" />
+ </body>
</TestCase>
<TestCase testID="EmailValidator_invalidDomainError" keywords="[invalidDomainError, EmailValidator]">
<setup>
-
+
<ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="mavenki@ydomain.hello" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -100,16 +100,16 @@
</setup>
<body>
<DispatchKeyEvent keys="[TAB, TAB]"/>
- <AssertEvent target="myCustomEm.myEm" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
- <AssertNoEvent target="myCustomEm.myEm" eventName="valid" />
- <DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
+ <AssertEvent target="myCustomEm.myEm" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+ <AssertNoEvent target="myCustomEm.myEm" eventName="invalid" />
+ <DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" />
<WaitForEffectsToEnd />
- <CompareBitmap target="" url="../Properties/baselines/invalidDomainError.png" timeout="2000" />
- </body>
+ <CompareBitmap target="" url="../Properties/baselines/invalidDomainError.png" timeout="2000" />
+ </body>
</TestCase>
<TestCase testID="EmailValidator_missingAtSignError" keywords="[missingAtSignError, EmailValidator]">
<setup>
-
+
<ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="mavenkiydomain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -121,12 +121,12 @@
<AssertNoEvent target="myCustomEm.myEm" eventName="valid" />
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
- <CompareBitmap target="" url="../Properties/baselines/missingAtSignError.png" timeout="2000" />
- </body>
- </TestCase>
+ <CompareBitmap target="" url="../Properties/baselines/missingAtSignError.png" timeout="2000" />
+ </body>
+ </TestCase>
<TestCase testID="EmailValidator_missingUsernameError" keywords="[missingUsernameError, EmailValidator]">
<setup>
-
+
<ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="mavenkiydomain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -138,12 +138,12 @@
<AssertNoEvent target="myCustomEm.myEm" eventName="valid" />
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
- <CompareBitmap target="" url="../Properties/baselines/missingUsernameError.png" timeout="2000" />
- </body>
- </TestCase>
+ <CompareBitmap target="" url="../Properties/baselines/missingUsernameError.png" timeout="2000" />
+ </body>
+ </TestCase>
<TestCase testID="EmailValidator_tooManyAtSignsError" keywords="[tooManyAtSignsError, EmailValidator]">
<setup>
-
+
<ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="mavenki@satd@ydomain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -155,12 +155,12 @@
<AssertNoEvent target="myCustomEm.myEm" eventName="valid" />
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
- <CompareBitmap target="" url="../Properties/baselines/tooManyAtSignsError.png" timeout="2000" />
- </body>
- </TestCase>
+ <CompareBitmap target="" url="../Properties/baselines/tooManyAtSignsError.png" timeout="2000" />
+ </body>
+ </TestCase>
<TestCase testID="EmailValidator_invalidPeriodsInDomainError" keywords="[invalidPeriodsInDomainError, EmailValidator]">
<setup>
-
+
<ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="mavenkisatd@ydomain..com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -172,12 +172,12 @@
<AssertNoEvent target="myCustomEm.myEm" eventName="valid" />
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
- <CompareBitmap target="" url="../Properties/baselines/invalidPeriodsInDomainError.png" timeout="2000" />
- </body>
+ <CompareBitmap target="" url="../Properties/baselines/invalidPeriodsInDomainError.png" timeout="2000" />
+ </body>
</TestCase>
<TestCase testID="EmailValidator_invalidHyphensInDomainError1" keywords="[invalidHyphensInDomainError, EmailValidator]">
<setup>
-
+
<ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="mavenkisatd@-ydomain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -189,12 +189,12 @@
<AssertNoEvent target="myCustomEm.myEm" eventName="valid" />
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
- <CompareBitmap target="" url="../Properties/baselines/invalidHyphensInDomainError1.png" timeout="2000" />
- </body>
+ <CompareBitmap target="" url="../Properties/baselines/invalidHyphensInDomainError1.png" timeout="2000" />
+ </body>
</TestCase>
<TestCase testID="EmailValidator_invalidHyphensInDomainError2" keywords="[invalidHyphensInDomainError, EmailValidator]">
<setup>
-
+
<ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="mavenkisatd@ydomain-.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -206,8 +206,8 @@
<AssertNoEvent target="myCustomEm.myEm" eventName="valid" />
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
- <CompareBitmap target="" url="../Properties/baselines/invalidHyphensInDomainError2.png" timeout="2000" />
- </body>
+ <CompareBitmap target="" url="../Properties/baselines/invalidHyphensInDomainError2.png" timeout="2000" />
+ </body>
</TestCase>
<TestCase testID="EmailValidator_validHyphensInDomain" keywords="[EmailValidator]">
<setup>
@@ -220,11 +220,11 @@
<DispatchKeyEvent keys="[TAB, TAB]"/>
<AssertNoEvent target="myCustomEm.myEm" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
<AssertEvent target="myCustomEm.myEm" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
- </body>
+ </body>
</TestCase>
<TestCase testID="EmailValidator_missingPeriodInDomainError" keywords="[missingPeriodInDomainError, EmailValidator]">
<setup>
-
+
<ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="satd@ydomaincom" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -236,23 +236,23 @@
<AssertNoEvent target="myCustomEm.myEm" eventName="valid" />
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
- <CompareBitmap target="" url="../Properties/baselines/missingPeriodInDomainError.png" timeout="2000" />
- </body>
- </TestCase>
+ <CompareBitmap target="" url="../Properties/baselines/missingPeriodInDomainError.png" timeout="2000" />
+ </body>
+ </TestCase>
<TestCase testID="EmailValidator_plusSign" keywords="[valid, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="sarvata+nayadatta@ydomain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
<DispatchKeyEvent keys="[TAB, TAB]"/>
<AssertEvent target="myCustomEm.myEm" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
<AssertNoEvent target="myCustomEm.myEm" eventName="invalid" />
- </body>
+ </body>
</TestCase>
-
+
</testCases>
</UnitTester>
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/ed6da554/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_Properties_spark.mxml
----------------------------------------------------------------------
diff --git a/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_Properties_spark.mxml b/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_Properties_spark.mxml
index e05d554..e488b91 100644
--- a/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_Properties_spark.mxml
+++ b/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_Properties_spark.mxml
@@ -48,16 +48,16 @@
<testCases>
<TestCase testID="EmailValidator_valid_spark" keywords="[valid, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="sarvatanayadatta@ydomain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
<DispatchKeyEvent keys="[TAB, TAB]"/>
<AssertEvent target="myCustomEm.myEm" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
<AssertNoEvent target="myCustomEm.myEm" eventName="invalid" />
- </body>
+ </body>
</TestCase>
<TestCase testID="EmailValidator_invalidCharError1_spark" keywords="[invalidCharError, EmailValidator]">
@@ -71,11 +71,11 @@
<DispatchKeyEvent keys="[TAB, TAB]"/>
<AssertEvent target="myCustomEm.myEm" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
<AssertNoEvent target="myCustomEm.myEm" eventName="valid" />
- </body>
+ </body>
</TestCase>
<TestCase testID="EmailValidator_invalidCharError2_spark" keywords="[invalidCharError, EmailValidator]">
<setup>
-
+
<ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="mavenki!ydomain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -87,12 +87,12 @@
<AssertNoEvent target="myCustomEm.myEm" eventName="valid" />
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
- <CompareBitmap target="" url="../Properties/baselines/invalidCharError_spark.png" timeout="2000" numColorVariances="4" ignoreMaxColorVariance="true" />
- </body>
+ <CompareBitmap target="" url="../Properties/baselines/invalidCharError_spark.png" timeout="2000" numColorVariances="4" ignoreMaxColorVariance="true" />
+ </body>
</TestCase>
<TestCase testID="EmailValidator_invalidDomainError_spark" keywords="[invalidDomainError, EmailValidator]">
<setup>
-
+
<ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="mavenki@ydomain.hello" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -100,16 +100,16 @@
</setup>
<body>
<DispatchKeyEvent keys="[TAB, TAB]"/>
- <AssertEvent target="myCustomEm.myEm" eventName="invalid" eventClass="mx.events::ValidationResultEvent" />
- <AssertNoEvent target="myCustomEm.myEm" eventName="valid" />
- <DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
+ <AssertEvent target="myCustomEm.myEm" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
+ <AssertNoEvent target="myCustomEm.myEm" eventName="invalid" />
+ <DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10"/>
<WaitForEffectsToEnd />
- <CompareBitmap target="" url="../Properties/baselines/invalidDomainError_spark.png" timeout="2000" />
- </body>
+ <CompareBitmap target="" url="../Properties/baselines/invalidDomainError_spark.png" timeout="2000" />
+ </body>
</TestCase>
<TestCase testID="EmailValidator_missingAtSignError_spark" keywords="[missingAtSignError, EmailValidator]">
<setup>
-
+
<ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="mavenkiydomain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -121,12 +121,12 @@
<AssertNoEvent target="myCustomEm.myEm" eventName="valid" />
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
- <CompareBitmap target="" url="../Properties/baselines/missingAtSignError_spark.png" timeout="2000" numColorVariances="4" ignoreMaxColorVariance="true"/>
- </body>
- </TestCase>
+ <CompareBitmap target="" url="../Properties/baselines/missingAtSignError_spark.png" timeout="2000" numColorVariances="4" ignoreMaxColorVariance="true"/>
+ </body>
+ </TestCase>
<TestCase testID="EmailValidator_missingUsernameError_spark" keywords="[missingUsernameError, EmailValidator]">
<setup>
-
+
<ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="mavenkiydomain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -138,12 +138,12 @@
<AssertNoEvent target="myCustomEm.myEm" eventName="valid" />
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
- <CompareBitmap target="" url="../Properties/baselines/missingUsernameError_spark.png" timeout="2000" numColorVariances="4" ignoreMaxColorVariance="true"/>
- </body>
- </TestCase>
+ <CompareBitmap target="" url="../Properties/baselines/missingUsernameError_spark.png" timeout="2000" numColorVariances="4" ignoreMaxColorVariance="true"/>
+ </body>
+ </TestCase>
<TestCase testID="EmailValidator_tooManyAtSignsError_spark" keywords="[tooManyAtSignsError, EmailValidator]">
<setup>
-
+
<ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="mavenki@satd@ydomain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -155,12 +155,12 @@
<AssertNoEvent target="myCustomEm.myEm" eventName="valid" />
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
- <CompareBitmap target="" url="../Properties/baselines/tooManyAtSignsError_spark.png" timeout="2000" numColorVariances="6" ignoreMaxColorVariance="true"/>
- </body>
- </TestCase>
+ <CompareBitmap target="" url="../Properties/baselines/tooManyAtSignsError_spark.png" timeout="2000" numColorVariances="6" ignoreMaxColorVariance="true"/>
+ </body>
+ </TestCase>
<TestCase testID="EmailValidator_invalidPeriodsInDomainError_spark" keywords="[invalidPeriodsInDomainError, EmailValidator]">
<setup>
-
+
<ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="mavenkisatd@ydomain..com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -172,12 +172,12 @@
<AssertNoEvent target="myCustomEm.myEm" eventName="valid" />
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
- <CompareBitmap target="" url="../Properties/baselines/invalidPeriodsInDomainError_spark.png" timeout="2000" />
- </body>
+ <CompareBitmap target="" url="../Properties/baselines/invalidPeriodsInDomainError_spark.png" timeout="2000" />
+ </body>
</TestCase>
<TestCase testID="EmailValidator_missingPeriodInDomainError_spark" keywords="[missingPeriodInDomainError, EmailValidator]">
<setup>
-
+
<ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="satd@ydomaincom" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
@@ -189,23 +189,23 @@
<AssertNoEvent target="myCustomEm.myEm" eventName="valid" />
<DispatchMouseEvent target="myCustomEm.ti1" type="mouseOver" localX="10" localY="10" waitEvent="toolTipShown" waitTarget="myCustomEm.ti1"/>
<WaitForEffectsToEnd />
- <CompareBitmap target="" url="../Properties/baselines/missingPeriodInDomainError_spark.png" timeout="2000" />
- </body>
+ <CompareBitmap target="" url="../Properties/baselines/missingPeriodInDomainError_spark.png" timeout="2000" />
+ </body>
</TestCase>
-
+
<TestCase testID="EmailValidator_plusSign_spark" keywords="[valid, EmailValidator]">
<setup>
- <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
+ <ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
<SetProperty target="myCustomEm.myEm" propertyName="property" value="text"/>
-
+
</setup>
<body>
<SetProperty target="myCustomEm.ti1" propertyName="text" value="sarvat+anayadatta@ydomain.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
<DispatchKeyEvent keys="[TAB, TAB]"/>
<AssertEvent target="myCustomEm.myEm" eventName="valid" eventClass="mx.events::ValidationResultEvent" />
<AssertNoEvent target="myCustomEm.myEm" eventName="invalid" />
- </body>
- </TestCase>
-
+ </body>
+ </TestCase>
+
</testCases>
</UnitTester>
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/ed6da554/mustella/tests/Validators/EmailValidator/Properties/baselines/invalidDomainError.png
----------------------------------------------------------------------
diff --git a/mustella/tests/Validators/EmailValidator/Properties/baselines/invalidDomainError.png b/mustella/tests/Validators/EmailValidator/Properties/baselines/invalidDomainError.png
index a500e73..6673124 100644
Binary files a/mustella/tests/Validators/EmailValidator/Properties/baselines/invalidDomainError.png and b/mustella/tests/Validators/EmailValidator/Properties/baselines/invalidDomainError.png differ
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/ed6da554/mustella/tests/Validators/EmailValidator/Properties/baselines/ipv6_invalidDomainError.png
----------------------------------------------------------------------
diff --git a/mustella/tests/Validators/EmailValidator/Properties/baselines/ipv6_invalidDomainError.png b/mustella/tests/Validators/EmailValidator/Properties/baselines/ipv6_invalidDomainError.png
index 98ad05b..a4f302b 100644
Binary files a/mustella/tests/Validators/EmailValidator/Properties/baselines/ipv6_invalidDomainError.png and b/mustella/tests/Validators/EmailValidator/Properties/baselines/ipv6_invalidDomainError.png differ
http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/ed6da554/mustella/tests/Validators/EmailValidator/Properties/baselines/ipv6_invalidDomainError_spark.png
----------------------------------------------------------------------
diff --git a/mustella/tests/Validators/EmailValidator/Properties/baselines/ipv6_invalidDomainError_spark.png b/mustella/tests/Validators/EmailValidator/Properties/baselines/ipv6_invalidDomainError_spark.png
index 8a31cdd..1b4bb89 100644
Binary files a/mustella/tests/Validators/EmailValidator/Properties/baselines/ipv6_invalidDomainError_spark.png and b/mustella/tests/Validators/EmailValidator/Properties/baselines/ipv6_invalidDomainError_spark.png differ