summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/validators
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-02-10 15:29:09 +0100
committerFabio Bas <ctrlaltca@gmail.com>2014-02-10 15:29:09 +0100
commit031d20c405b922808f4bdf2997f964880b33ab66 (patch)
tree7fbda08ea61c9948db6b6fd1dd6db9a13370da4e /tests/FunctionalTests/validators
parentf35d43399a9ce03f08ffa326812bc5ed6764ef9e (diff)
More tests porting
Diffstat (limited to 'tests/FunctionalTests/validators')
-rwxr-xr-xtests/FunctionalTests/validators/protected/pages/CustomValidator.page4
-rwxr-xr-xtests/FunctionalTests/validators/tests/RequiredFieldTestCase.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/FunctionalTests/validators/protected/pages/CustomValidator.page b/tests/FunctionalTests/validators/protected/pages/CustomValidator.page
index 2d0d490b..47238e48 100755
--- a/tests/FunctionalTests/validators/protected/pages/CustomValidator.page
+++ b/tests/FunctionalTests/validators/protected/pages/CustomValidator.page
@@ -2,7 +2,7 @@
<h1>Prado CustomValidator Tests</h1>
<script type="text/javascript">
-var MyCustomValidator =
+var MyCustomValidator =
{
validate : function(sender, value)
{
@@ -17,7 +17,7 @@ var MyCustomValidator =
ControlToValidate="text1"
ErrorMessage="Enter 'Prado'"
ControlCssClass="required"
- ClientValidationFunction="MyCustomValidator.validate"
+ ClientValidationFunction="MyCustomValidator.validate"
OnServerValidate="CustomValidation"
/>
<com:TButton ID="submit1" Text="Test" />
diff --git a/tests/FunctionalTests/validators/tests/RequiredFieldTestCase.php b/tests/FunctionalTests/validators/tests/RequiredFieldTestCase.php
index 8ee278f8..50c73384 100755
--- a/tests/FunctionalTests/validators/tests/RequiredFieldTestCase.php
+++ b/tests/FunctionalTests/validators/tests/RequiredFieldTestCase.php
@@ -17,7 +17,7 @@ class RequiredFieldTestCase extends PradoGenericSeleniumTest
$this->assertNotVisible("{$base}validator1");
$this->click("{$base}submit2");
$this->assertNotVisible("{$base}validator1");
- $this->assertNotVisible("{$base}validator2");
+ $this->assertVisible("{$base}validator2");
$this->assertVisible("{$base}validator3");
$this->assertVisible("{$base}validator4");
$this->type("{$base}text2", "testing2");