From a2a030c3cfbb0249762fffa4159107bc13f8952d Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 2 Feb 2006 05:04:50 +0000 Subject: Fixed #19 --- .../pages/Validation/testInitialValueRequired.php | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.php (limited to 'tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.php') diff --git a/tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.php b/tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.php new file mode 100644 index 00000000..cc35accc --- /dev/null +++ b/tests/FunctionalTests/protected/pages/Validation/testInitialValueRequired.php @@ -0,0 +1,25 @@ +getTestPage(__FILE__); + $this->open($page); + $this->assertTitle("InitialValue Validation Test"); + $this->assertNotVisible("ctl0_Content_validator1"); + $this->type("ctl0_Content_text1", "hello"); + $this->clickAndWait("ctl0_Content_submit"); + $this->assertNotVisible("ctl0_Content_validator1"); + $this->type("ctl0_Content_text1", "test"); + $this->click("ctl0_Content_submit"); + $this->assertVisible("ctl0_Content_validator1"); + } +} + +?> \ No newline at end of file -- cgit v1.2.3