From 1afc913c386bba8e6072c278b0eb4fd9818ab310 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 25 Apr 2006 01:27:04 +0000 Subject: Undo previous checkin (which goes int 3.0 branch and will be merged back). --- .../validators/protected/pages/DatePicker.page | 64 ---------------------- .../validators/protected/pages/Layout.tpl | 5 -- .../validators/protected/pages/ListControl.page | 58 -------------------- .../protected/pages/RequiredListValidator.page | 13 ++--- .../validators/tests/DatePickerTestCase.php | 63 --------------------- .../validators/tests/ListControlTestCase.php | 48 ---------------- .../validators/tests/RequiredListTestCase.php | 53 +++++++++--------- 7 files changed, 32 insertions(+), 272 deletions(-) delete mode 100644 tests/FunctionalTests/validators/protected/pages/DatePicker.page delete mode 100644 tests/FunctionalTests/validators/protected/pages/ListControl.page delete mode 100644 tests/FunctionalTests/validators/tests/DatePickerTestCase.php delete mode 100644 tests/FunctionalTests/validators/tests/ListControlTestCase.php (limited to 'tests/FunctionalTests/validators') diff --git a/tests/FunctionalTests/validators/protected/pages/DatePicker.page b/tests/FunctionalTests/validators/protected/pages/DatePicker.page deleted file mode 100644 index fdbbbeb1..00000000 --- a/tests/FunctionalTests/validators/protected/pages/DatePicker.page +++ /dev/null @@ -1,64 +0,0 @@ - -

Date Picker validation Test

- - - - -
- - - - -
- Date 1: - - -
- Date 2: - - - -
- - Date 3: - -
- Date 4: - - - - -
\ No newline at end of file diff --git a/tests/FunctionalTests/validators/protected/pages/Layout.tpl b/tests/FunctionalTests/validators/protected/pages/Layout.tpl index 25dbea09..224481e1 100644 --- a/tests/FunctionalTests/validators/protected/pages/Layout.tpl +++ b/tests/FunctionalTests/validators/protected/pages/Layout.tpl @@ -21,11 +21,6 @@ margin-top: 2em; display: block; } - .required - { - border: 1px solid red; - background-color: pink; - } /*]]>*/ diff --git a/tests/FunctionalTests/validators/protected/pages/ListControl.page b/tests/FunctionalTests/validators/protected/pages/ListControl.page deleted file mode 100644 index 1429e184..00000000 --- a/tests/FunctionalTests/validators/protected/pages/ListControl.page +++ /dev/null @@ -1,58 +0,0 @@ - -

List Control Required Field Validation Test

- - - - - - - - - -
- - - - - - - - - - -
- - - - - - - - - - -
- - - - - - - - - - - -
\ No newline at end of file diff --git a/tests/FunctionalTests/validators/protected/pages/RequiredListValidator.page b/tests/FunctionalTests/validators/protected/pages/RequiredListValidator.page index 665d71b7..9bbd9d5a 100644 --- a/tests/FunctionalTests/validators/protected/pages/RequiredListValidator.page +++ b/tests/FunctionalTests/validators/protected/pages/RequiredListValidator.page @@ -8,7 +8,7 @@ -
- + -
- + - - + open("validators/index.php?page=DatePicker", ""); - $this->verifyTextPresent("Date Picker validation Test", ""); - $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->click("{$base}submit1"); - $this->assertVisible("{$base}validator1", ""); - $this->assertNotVisible("{$base}validator2", ""); - $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"); - $this->select("{$base}picker2_day", "label=10"); - $this->type("{$base}picker3", "14/4/2006"); - $this->type("{$base}picker4", "7/4/2006"); - $this->select("{$base}picker5_day", "label=6"); - $this->select("{$base}picker5_month", "label=3"); - $this->select("{$base}picker5_year", "label=2007"); - $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->type("{$base}picker1", "20/4/2007"); - $this->type("{$base}picker4", "29/4/2006"); - $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", ""); - } - -} - -?> \ No newline at end of file diff --git a/tests/FunctionalTests/validators/tests/ListControlTestCase.php b/tests/FunctionalTests/validators/tests/ListControlTestCase.php deleted file mode 100644 index 6c0c73e7..00000000 --- a/tests/FunctionalTests/validators/tests/ListControlTestCase.php +++ /dev/null @@ -1,48 +0,0 @@ -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->select("{$base}list2", "label=Red"); - $this->select("{$base}list3", "label=Blue"); - $this->click("{$base}list4_3", ""); - $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->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[@type='submit' and @value='Submit!']", ""); - - $this->assertVisible("{$base}validator1"); - $this->assertVisible("{$base}validator2"); - $this->assertVisible("{$base}validator3"); - $this->assertVisible("{$base}validator4"); - - } - -} - -?> diff --git a/tests/FunctionalTests/validators/tests/RequiredListTestCase.php b/tests/FunctionalTests/validators/tests/RequiredListTestCase.php index ad299dc5..1eab60d4 100644 --- a/tests/FunctionalTests/validators/tests/RequiredListTestCase.php +++ b/tests/FunctionalTests/validators/tests/RequiredListTestCase.php @@ -5,36 +5,35 @@ class RequiredListTestCase extends SeleniumTestCase function test() { - $base = "ctl0_Content_"; $this->open("validators/index.php?page=RequiredListValidator"); $this->assertLocation("index.php?page=RequiredListValidator"); - $this->click("{$base}submit1"); - $this->assertVisible("{$base}validator1"); - $this->assertVisible("{$base}validator2"); - $this->assertVisible("{$base}validator3"); - $this->click("{$base}list1_0"); - $this->select("{$base}list2", "label=One"); - $this->select("{$base}list2", "label=Two"); - $this->click("{$base}list3_3"); - $this->clickAndWait("{$base}submit1"); - $this->assertNotVisible("{$base}validator1"); - $this->assertNotVisible("{$base}validator2"); - $this->assertNotVisible("{$base}validator3"); - $this->click("{$base}list1_1"); - $this->click("{$base}list1_2"); - $this->click("{$base}list1_3"); - $this->select("{$base}list2", "label=Two"); - $this->click("{$base}list1_3"); - $this->click("{$base}submit1"); - $this->assertNotVisible("{$base}validator1"); - $this->assertNotVisible("{$base}validator2"); - $this->assertNotVisible("{$base}validator3"); - $this->click("{$base}list3_3"); - $this->click("{$base}submit1"); + $this->click("submit1"); + $this->assertVisible("validator1"); + $this->assertVisible("validator2"); + $this->assertVisible("validator3"); + $this->click("list1:0"); + $this->select("list2", "label=One"); + $this->select("list2", "label=Two"); + $this->click("list3:3"); + $this->clickAndWait("submit1"); + $this->assertNotVisible("validator1"); + $this->assertNotVisible("validator2"); + $this->assertNotVisible("validator3"); + $this->click("list1:1"); + $this->click("list1:2"); + $this->click("list1:3"); + $this->select("list2", "label=Two"); + $this->click("list1:3"); + $this->click("submit1"); + $this->assertNotVisible("validator1"); + $this->assertNotVisible("validator2"); + $this->assertNotVisible("validator3"); + $this->click("list3:3"); + $this->click("submit1"); $this->pause(200); - $this->assertNotVisible("{$base}validator1"); - $this->assertNotVisible("{$base}validator2"); - $this->assertNotVisible("{$base}validator3"); + $this->assertNotVisible("validator1"); + $this->assertNotVisible("validator2"); + $this->assertVisible("validator3"); } } -- cgit v1.2.3