From 35c04a223ffde74a1387e9df9dff5d6dfb1cfcd7 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sun, 22 Jan 2006 00:29:47 +0000 Subject: Update checkbox test. --- tests/FunctionalTests/protected/pages/Validation/CheckBox.page | 10 ++++++---- tests/FunctionalTests/protected/pages/Validation/CheckBox.php | 10 +++++----- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/tests/FunctionalTests/protected/pages/Validation/CheckBox.page b/tests/FunctionalTests/protected/pages/Validation/CheckBox.page index 42241ca7..6ed570a9 100644 --- a/tests/FunctionalTests/protected/pages/Validation/CheckBox.page +++ b/tests/FunctionalTests/protected/pages/Validation/CheckBox.page @@ -1,4 +1,4 @@ -<%@ Title="Basic TRequiredFieldValidator" %> +<%@ Title="An AutoPostBack CheckBox" %> @@ -7,28 +7,30 @@
-

-!> -Input: +Input:
diff --git a/tests/FunctionalTests/protected/pages/Validation/CheckBox.php b/tests/FunctionalTests/protected/pages/Validation/CheckBox.php index b85bf383..5f5d5a41 100644 --- a/tests/FunctionalTests/protected/pages/Validation/CheckBox.php +++ b/tests/FunctionalTests/protected/pages/Validation/CheckBox.php @@ -18,13 +18,13 @@ class CheckBoxTestCase extends SeleniumTestCase function testValidator() { - $this->assertTextPresent("Basic TRequiredFieldValidator Test1"); + $this->verifyTitle("An AutoPostBack CheckBox"); + + //test checkbox 2 should fire the validator $this->assertNotVisible("validator1"); - $this->click("button1"); + $this->click("checkbox2"); + $this->pasue(100); $this->assertVisible("validator1"); - $this->type("text1", "test"); - $this->clickAndWait("button1"); - $this->assertNotVisible("validator1"); } } -- cgit v1.2.3