From 68eb20ae56e35cc48982be6f15c0738a276c3684 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 21 Oct 2006 02:46:12 +0000 Subject: update ajax callback to be quequed --- .../validators/tests/DatePickerTestCase.php | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'tests/FunctionalTests/validators') diff --git a/tests/FunctionalTests/validators/tests/DatePickerTestCase.php b/tests/FunctionalTests/validators/tests/DatePickerTestCase.php index 8c40ee65..297756c2 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,15 +13,15 @@ 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", ""); - $this->assertNotVisible("{$base}validator4", ""); + $this->assertVisible("{$base}validator4", ""); $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"); @@ -34,30 +34,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