You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cf...@apache.org on 2013/01/24 16:12:19 UTC
svn commit: r1438040 -
/flex/sdk/branches/develop/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_Properties.mxml
Author: cframpton
Date: Thu Jan 24 15:12:18 2013
New Revision: 1438040
URL: http://svn.apache.org/viewvc?rev=1438040&view=rev
Log:
Add positive tests for hyphens in domain name - mavenkisatd@y-d-o-m-a-i-n.com should be valid.
Modified:
flex/sdk/branches/develop/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_Properties.mxml
Modified: flex/sdk/branches/develop/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_Properties.mxml
URL: http://svn.apache.org/viewvc/flex/sdk/branches/develop/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_Properties.mxml?rev=1438040&r1=1438039&r2=1438040&view=diff
==============================================================================
--- flex/sdk/branches/develop/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_Properties.mxml (original)
+++ flex/sdk/branches/develop/mustella/tests/Validators/EmailValidator/Properties/Validators_Email_Properties.mxml Thu Jan 24 15:12:18 2013
@@ -192,7 +192,7 @@
<CompareBitmap target="" url="../Properties/baselines/invalidHyphensInDomainError1.png" timeout="2000" />
</body>
</TestCase>
- <TestCase testID="EmailValidator_invalidHyphensInDomainError2" keywords="[invalidHyphensInDomainError, EmailValidator]">
+ <TestCase testID="EmailValidator_invalidHyphensInDomainError2" keywords="[invalidHyphensInDomainError, EmailValidator]">
<setup>
<ResetComponent target="myCustomEm" className="CustomEm" waitEvent="updateComplete" waitTarget="myCustomEm"/>
@@ -209,6 +209,19 @@
<CompareBitmap target="" url="../Properties/baselines/invalidHyphensInDomainError2.png" timeout="2000" />
</body>
</TestCase>
+ <TestCase testID="EmailValidator_validHyphensInDomain" keywords="[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@y-d-o-m-a-i-n.com" waitEvent="updateComplete" waitTarget="myCustomEm.ti1"/>
+ <WaitForEffectsToEnd />
+ </setup>
+ <body>
+ <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>
+ </TestCase>
<TestCase testID="EmailValidator_missingPeriodInDomainError" keywords="[missingPeriodInDomainError, EmailValidator]">
<setup>