From c9c31d6edb91e22c56ffab3772ce8a29b1480537 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sun, 25 Mar 2007 07:04:08 +0000 Subject: Update TinyMCE to 2.1, Js prototype to 1.5.1rc, effects to 1.7 --- .../validators/tests/DatePickerTestCase.php | 25 +++++++++++----------- 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'tests') 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 -- cgit v1.2.3