-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unit tests related to eavalid event, enumerations and phone validatio…
…n added.
- Loading branch information
Showing
9 changed files
with
302 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,24 +12,38 @@ | |
<div id="qunit-fixture"> | ||
<form id="basic_test_form"> | ||
<input data-val="true" | ||
data-val-assertthat="Provided email: 02b4c617-f4a4-4820-9624-6bc4cd0922c5 (yes 02b4c617-f4a4-4820-9624-6bc4cd0922c5) cannot be accepted." | ||
data-val-assertthat-constsmap="{"Stability.Low":0}" | ||
data-val-assertthat-expression=""Whoami() == 'root' && IsEmail(Email) && ArrayContains('a', Letters) && PoliticalStability == Stability.Low"" | ||
data-val-assertthat-fieldsmap="{"Email":"string","Letters":"mytype","PoliticalStability":"enumeration"}" | ||
data-val-assertthat="Provided email 02b4c617-f4a4-4820-9624-6bc4cd0922c5 (yes 02b4c617-f4a4-4820-9624-6bc4cd0922c5) cannot be accepted {0}{1}." | ||
data-val-assertthat-constsmap="{"LetterA":"a"}" | ||
data-val-assertthat-enumsmap="{"Stability.Low":0}" | ||
data-val-assertthat-expression=""Whoami() == 'root' && ArrayContains(LetterA, Letters) && PoliticalStabilityA == Stability.High && IsEmail(Email)"" | ||
data-val-assertthat-fieldsmap="{"Letters":"unknowntype","PoliticalStabilityA":"enumeration","Email":"string"}" | ||
data-val-assertthat-parsersmap="{"Letters":"ArrayParser"}" | ||
data-val-assertthat-errfieldsmap="{"Email":"02b4c617-f4a4-4820-9624-6bc4cd0922c5"}" | ||
name="ContactDetails.Email" | ||
type="text" | ||
value="[email protected]"> | ||
<input name="ContactDetails.Letters" | ||
value="ea{at}home.com"> | ||
<input data-val="true" | ||
data-val-requiredif="Field required." | ||
data-val-requiredif-expression=""true"" | ||
name="ContactDetails.Letters" | ||
type="text" | ||
value="a,b,c"> | ||
<input data-val="true" | ||
data-val-assertthat="{0}{1}" | ||
data-val-assertthat-expression=""false"" | ||
name="ContactDetails.PoliticalStability" | ||
data-val-assertthat="Assertion not satisfied." | ||
data-val-assertthat-enumsmap="{"Stability.High":1}" | ||
data-val-assertthat-expression=""PoliticalStabilityA == Stability.High"" | ||
data-val-assertthat-fieldsmap="{"PoliticalStabilityA":"enumeration"}" | ||
name="ContactDetails.PoliticalStabilityA" | ||
type="text" | ||
value="1"> | ||
<input data-val="true" | ||
data-val-assertthat="Assertion not satisfied." | ||
data-val-assertthat-enumsmap="{"Stability.High":1}" | ||
data-val-assertthat-expression=""PoliticalStabilityB == Stability.High"" | ||
data-val-assertthat-fieldsmap="{"PoliticalStabilityB":"enumeration"}" | ||
name="ContactDetails.PoliticalStabilityB" | ||
type="text" | ||
value="High"> | ||
</form> | ||
</div> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,24 +12,38 @@ | |
<div id="qunit-fixture"> | ||
<form id="basic_test_form"> | ||
<input data-val="true" | ||
data-val-assertthat="Provided email: 02b4c617-f4a4-4820-9624-6bc4cd0922c5 (yes 02b4c617-f4a4-4820-9624-6bc4cd0922c5) cannot be accepted." | ||
data-val-assertthat-constsmap="{"Stability.Low":0}" | ||
data-val-assertthat-expression=""Whoami() == 'root' && IsEmail(Email) && ArrayContains('a', Letters) && PoliticalStability == Stability.Low"" | ||
data-val-assertthat-fieldsmap="{"Email":"string","Letters":"mytype","PoliticalStability":"enumeration"}" | ||
data-val-assertthat="Provided email 02b4c617-f4a4-4820-9624-6bc4cd0922c5 (yes 02b4c617-f4a4-4820-9624-6bc4cd0922c5) cannot be accepted {0}{1}." | ||
data-val-assertthat-constsmap="{"LetterA":"a"}" | ||
data-val-assertthat-enumsmap="{"Stability.Low":0}" | ||
data-val-assertthat-expression=""Whoami() == 'root' && ArrayContains(LetterA, Letters) && PoliticalStabilityA == Stability.High && IsEmail(Email)"" | ||
data-val-assertthat-fieldsmap="{"Letters":"unknowntype","PoliticalStabilityA":"enumeration","Email":"string"}" | ||
data-val-assertthat-parsersmap="{"Letters":"ArrayParser"}" | ||
data-val-assertthat-errfieldsmap="{"Email":"02b4c617-f4a4-4820-9624-6bc4cd0922c5"}" | ||
name="ContactDetails.Email" | ||
type="text" | ||
value="[email protected]"> | ||
<input name="ContactDetails.Letters" | ||
value="ea{at}home.com"> | ||
<input data-val="true" | ||
data-val-requiredif="Field required." | ||
data-val-requiredif-expression=""true"" | ||
name="ContactDetails.Letters" | ||
type="text" | ||
value="a,b,c"> | ||
<input data-val="true" | ||
data-val-assertthat="{0}{1}" | ||
data-val-assertthat-expression=""false"" | ||
name="ContactDetails.PoliticalStability" | ||
data-val-assertthat="Assertion not satisfied." | ||
data-val-assertthat-enumsmap="{"Stability.High":1}" | ||
data-val-assertthat-expression=""PoliticalStabilityA == Stability.High"" | ||
data-val-assertthat-fieldsmap="{"PoliticalStabilityA":"enumeration"}" | ||
name="ContactDetails.PoliticalStabilityA" | ||
type="text" | ||
value="1"> | ||
<input data-val="true" | ||
data-val-assertthat="Assertion not satisfied." | ||
data-val-assertthat-enumsmap="{"Stability.High":1}" | ||
data-val-assertthat-expression=""PoliticalStabilityB == Stability.High"" | ||
data-val-assertthat-fieldsmap="{"PoliticalStabilityB":"enumeration"}" | ||
name="ContactDetails.PoliticalStabilityB" | ||
type="text" | ||
value="High"> | ||
</form> | ||
</div> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters