diff options
Diffstat (limited to 'tests/FunctionalTests/validators')
-rwxr-xr-x | tests/FunctionalTests/validators/protected/pages/CustomValidator.page | 4 | ||||
-rwxr-xr-x | tests/FunctionalTests/validators/tests/RequiredFieldTestCase.php | 2 |
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"); |