summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/validators
diff options
context:
space:
mode:
authorwei <>2007-03-25 07:04:08 +0000
committerwei <>2007-03-25 07:04:08 +0000
commitc9c31d6edb91e22c56ffab3772ce8a29b1480537 (patch)
treea592860494b2ffd00fd1b6405e86388acbdcf1b5 /tests/FunctionalTests/validators
parent2cdb60e09eb972200cead6414e7aef32ef1432e0 (diff)
Update TinyMCE to 2.1, Js prototype to 1.5.1rc, effects to 1.7
Diffstat (limited to 'tests/FunctionalTests/validators')
-rw-r--r--tests/FunctionalTests/validators/tests/DatePickerTestCase.php25
1 files changed, 13 insertions, 12 deletions
diff --git a/tests/FunctionalTests/validators/tests/DatePickerTestCase.php b/tests/FunctionalTests/validators/tests/DatePickerTestCase.php
index ab7ab897..872cc9a6 100644
--- a/tests/FunctionalTests/validators/tests/DatePickerTestCase.php
+++ b/tests/FunctionalTests/validators/tests/DatePickerTestCase.php
@@ -3,7 +3,7 @@
class DatePickerTestCase extends SeleniumTestCase
{
function test()
- {
+ {
$base = "ctl0_Content_";
$this->open("validators/index.php?page=DatePicker", "");
$this->verifyTextPresent("Date Picker validation Test", "");
@@ -13,7 +13,7 @@ class DatePickerTestCase extends SeleniumTestCase
$this->assertNotVisible("{$base}validator5", "");
$this->assertNotVisible("{$base}validator6", "");
$this->assertNotVisible("{$base}validator8", "");
-
+
$this->click("{$base}submit1");
$this->assertVisible("{$base}validator1", "");
$this->assertNotVisible("{$base}validator2", "");
@@ -24,11 +24,12 @@ class DatePickerTestCase extends SeleniumTestCase
$this->assertVisible("{$base}validator5", "");
$this->assertNotVisible("{$base}validator6", "");
$this->assertVisible("{$base}validator8", "");
-
+
$this->click("{$base}submit1");
$this->type("{$base}picker1", "13/4/2006");
$this->select("{$base}picker2_month", "label=9");
$this->select("{$base}picker2_day", "label=10");
+ $this->select("{$base}picker2_year", "label=2006");
$this->type("{$base}picker3", "14/4/2006");
$this->type("{$base}picker4", "7/4/2006");
$this->select("{$base}picker5_day", "label=6");
@@ -37,30 +38,30 @@ class DatePickerTestCase extends SeleniumTestCase
$this->select("{$base}picker6_month", "label=3");
$this->select("{$base}picker6_year", "label=2007");
$this->select("{$base}picker6_day", "label=5");
-
+
$this->click("{$base}submit1");
-
+
$this->assertNotVisible("{$base}validator1", "");
$this->assertVisible("{$base}validator2", "");
$this->assertNotVisible("{$base}validator4", "");
$this->assertNotVisible("{$base}validator5", "");
$this->assertVisible("{$base}validator6", "");
- $this->assertVisible("{$base}validator8", "");
-
+ $this->assertVisible("{$base}validator8", "");
+
$this->type("{$base}picker1", "20/4/2007");
$this->type("{$base}picker4", "29/4/2006");
- $this->select("{$base}picker6_day", "label=10");
-
+ $this->select("{$base}picker6_day", "label=10");
+
$this->clickAndWait("{$base}submit1");
-
+
$this->assertNotVisible("{$base}validator1", "");
$this->assertNotVisible("{$base}validator2", "");
$this->assertNotVisible("{$base}validator4", "");
$this->assertNotVisible("{$base}validator5", "");
$this->assertNotVisible("{$base}validator6", "");
- $this->assertNotVisible("{$base}validator8", "");
+ $this->assertNotVisible("{$base}validator8", "");
}
-
+
}
?> \ No newline at end of file