diff options
Diffstat (limited to 'tests/FunctionalTests/validators/tests/CompareValidatorTestCase.php')
-rw-r--r-- | tests/FunctionalTests/validators/tests/CompareValidatorTestCase.php | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/tests/FunctionalTests/validators/tests/CompareValidatorTestCase.php b/tests/FunctionalTests/validators/tests/CompareValidatorTestCase.php index b0f7c407..5a7dbc80 100644 --- a/tests/FunctionalTests/validators/tests/CompareValidatorTestCase.php +++ b/tests/FunctionalTests/validators/tests/CompareValidatorTestCase.php @@ -1,46 +1,46 @@ -<?php
-
-//New Test
-class CompareValidatorTestCase extends SeleniumTestCase
-{
- function test()
- {
- $base = "ctl0_Content_";
-
- $this->open("validators/index.php?page=CompareValidator", "");
- $this->verifyTextPresent("Prado CompareValidator Tests", "");
-
- $this->type("{$base}text1", "qwe");
- $this->assertNotVisible("{$base}validator1");
- $this->assertNotVisible("{$base}validator2");
-
- $this->click("//input[@type='submit' and @value='Test']", "");
-
- $this->type("{$base}text2", "1234");
- $this->click("//input[@type='submit' and @value='Test']", "");
- $this->assertVisible("{$base}validator1");
-
- $this->type("{$base}text2", "qwe");
- $this->clickAndWait("//input[@type='submit' and @value='Test']", "");
- $this->assertNotVisible("{$base}validator1");
- $this->assertNotVisible("{$base}validator2");
-
-
- $this->type("{$base}text3", "12312");
- $this->click("//input[@type='submit' and @value='Test']", "");
- $this->assertVisible("{$base}validator2");
-
- $this->type("{$base}text3", "13/1/2005");
- $this->assertVisible("{$base}validator2");
-
-
- $this->type("{$base}text3", "12/1/2005");
- $this->clickAndWait("//input[@type='submit' and @value='Test']", "");
-
- $this->assertNotVisible("{$base}validator1");
- $this->assertNotVisible("{$base}validator2");
-
- }
-}
-
+<?php + +//New Test +class CompareValidatorTestCase extends SeleniumTestCase +{ + function test() + { + $base = "ctl0_Content_"; + + $this->open("validators/index.php?page=CompareValidator", ""); + $this->verifyTextPresent("Prado CompareValidator Tests", ""); + + $this->type("{$base}text1", "qwe"); + $this->assertNotVisible("{$base}validator1"); + $this->assertNotVisible("{$base}validator2"); + + $this->click("//input[@type='submit' and @value='Test']", ""); + + $this->type("{$base}text2", "1234"); + $this->click("//input[@type='submit' and @value='Test']", ""); + $this->assertVisible("{$base}validator1"); + + $this->type("{$base}text2", "qwe"); + $this->clickAndWait("//input[@type='submit' and @value='Test']", ""); + $this->assertNotVisible("{$base}validator1"); + $this->assertNotVisible("{$base}validator2"); + + + $this->type("{$base}text3", "12312"); + $this->click("//input[@type='submit' and @value='Test']", ""); + $this->assertVisible("{$base}validator2"); + + $this->type("{$base}text3", "13/1/2005"); + $this->assertVisible("{$base}validator2"); + + + $this->type("{$base}text3", "12/1/2005"); + $this->clickAndWait("//input[@type='submit' and @value='Test']", ""); + + $this->assertNotVisible("{$base}validator1"); + $this->assertNotVisible("{$base}validator2"); + + } +} + ?>
\ No newline at end of file |