summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/protected/pages
diff options
context:
space:
mode:
authorwei <>2006-01-22 00:29:47 +0000
committerwei <>2006-01-22 00:29:47 +0000
commit35c04a223ffde74a1387e9df9dff5d6dfb1cfcd7 (patch)
tree38902b7cdf2ebd797c9b9ca8b29e5e1e2313f094 /tests/FunctionalTests/protected/pages
parent101d1733f1ed5421161ee40c02d91e55ef9eafcb (diff)
Update checkbox test.
Diffstat (limited to 'tests/FunctionalTests/protected/pages')
-rw-r--r--tests/FunctionalTests/protected/pages/Validation/CheckBox.page10
-rw-r--r--tests/FunctionalTests/protected/pages/Validation/CheckBox.php10
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" %>
<com:TContent ID="Content">
<com:TForm>
@@ -7,28 +7,30 @@
<com:TCheckBox
AutoPostBack="true"
Text="Without ValidationGroup"
+ ID="checkbox1"
/>
<br/>
-<! Uncomment the following and see
<com:TCheckBox
AutoPostBack="true"
Text="With ValidationGroup"
ValidationGroup="Group"
+ ID="checkbox2"
/>
<br/>
<com:TCheckBox
AutoPostBack="true"
CausesValidation="false"
Text="CausesValidation=false"
+ ID="checkbox3"
/>
<br/>
-!>
-Input: <com:TTextBox ID="TextBox" />
+Input: <com:TTextBox ID="TextBox" ID="textbox1"/>
<com:TRequiredFieldValidator
ControlToValidate="TextBox"
Display="Dynamic"
ErrorMessage="input required in the textbox"
ValidationGroup="Group"
+ ID="validator1"
/>
<br/>
<com:TJavascriptLogger />
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");
}
}