diff options
author | xue <> | 2006-05-21 22:48:55 +0000 |
---|---|---|
committer | xue <> | 2006-05-21 22:48:55 +0000 |
commit | 2f02ab8fcbb5f45bb92cb9546c0328769c290049 (patch) | |
tree | bf8ce74d8fe37557b901ce486af5e41a938bdca9 /tests/FunctionalTests/validators | |
parent | 28691ec3ccec6d94f7417987d8c7203bff3efecb (diff) |
Ensures control ID must start with a letter or underline character.
Diffstat (limited to 'tests/FunctionalTests/validators')
-rw-r--r-- | tests/FunctionalTests/validators/tests/ListControlTestCase.php | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/FunctionalTests/validators/tests/ListControlTestCase.php b/tests/FunctionalTests/validators/tests/ListControlTestCase.php index 6c0c73e7..76d84eff 100644 --- a/tests/FunctionalTests/validators/tests/ListControlTestCase.php +++ b/tests/FunctionalTests/validators/tests/ListControlTestCase.php @@ -6,43 +6,43 @@ class ListControlTestCase extends SeleniumTestCase
{
function test()
- {
+ {
$base = "ctl0_Content_";
$this->open("validators/index.php?page=ListControl", "");
$this->verifyTextPresent("List Control Required Field Validation Test", "");
$this->click("//input[@type='submit' and @value='Submit!']", "");
-
+
$this->assertVisible("{$base}validator1");
$this->assertVisible("{$base}validator2");
$this->assertVisible("{$base}validator3");
$this->assertVisible("{$base}validator4");
-
- $this->click("//input[@id='{$base}list1_1' and @value='Red']", "");
+
+ $this->click("//input[@id='{$base}list1_c1' and @value='Red']", "");
$this->select("{$base}list2", "label=Red");
$this->select("{$base}list3", "label=Blue");
- $this->click("{$base}list4_3", "");
+ $this->click("{$base}list4_c3", "");
$this->clickAndWait("//input[@type='submit' and @value='Submit!']", "");
-
+
$this->assertNotVisible("{$base}validator1");
$this->assertNotVisible("{$base}validator2");
$this->assertNotVisible("{$base}validator3");
$this->assertNotVisible("{$base}validator4");
-
+
$this->select("{$base}list3", "label=Don't select this one");
- $this->click("{$base}list4_0");
+ $this->click("{$base}list4_c0");
$this->select("{$base}list2", "label=--- Select a color ---");
$this->click("//input[@type='submit' and @value='Submit!']", "");
- $this->click("//input[@id='{$base}list1_1' and @value='Red']", "");
- $this->click("//input[@id='{$base}list1_0' and @value='Select a color below']", "");
+ $this->click("//input[@id='{$base}list1_c1' and @value='Red']", "");
+ $this->click("//input[@id='{$base}list1_c0' and @value='Select a color below']", "");
$this->click("//input[@type='submit' and @value='Submit!']", "");
-
+
$this->assertVisible("{$base}validator1");
$this->assertVisible("{$base}validator2");
$this->assertVisible("{$base}validator3");
$this->assertVisible("{$base}validator4");
-
- }
-
+
+ }
+
}
?>
|