summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/ActiveCheckBoxTest.php
diff options
context:
space:
mode:
authorwei <>2006-06-18 06:49:29 +0000
committerwei <>2006-06-18 06:49:29 +0000
commit2d88e84697fa4a36b7a2077b9e086aa2f9d3d67a (patch)
tree0c2c4e1cbe197018e264cf1de3ed6a2351771cfa /tests/FunctionalTests/active-controls/protected/pages/ActiveCheckBoxTest.php
parent313378ad2905fc07be00183b2acc61284c1c2c39 (diff)
Add ActiveCheckBox
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/ActiveCheckBoxTest.php')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/ActiveCheckBoxTest.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveCheckBoxTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveCheckBoxTest.php
new file mode 100644
index 00000000..d762ab28
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveCheckBoxTest.php
@@ -0,0 +1,32 @@
+<?php
+
+class ActiveCheckBoxTest extends TPage
+{
+ function change_checkbox1_text()
+ {
+ $this->checkbox1->Text = "Hello CheckBox 1";
+ }
+
+ function change_checkbox1_checked()
+ {
+ $this->checkbox1->Checked = !$this->checkbox1->Checked;
+ }
+
+ function change_checkbox2_text()
+ {
+ $this->checkbox2->Text = "CheckBox 2 World";
+ }
+
+ function change_checkbox2_checked()
+ {
+ $this->checkbox2->Checked = !$this->checkbox2->Checked;
+ }
+
+ function checkbox_requested($sender, $param)
+ {
+ $this->label1->Text = "Label 1:".$sender->Text.
+ ($sender->checked ? ' Checked ' : ' Not Checked');
+ }
+}
+
+?> \ No newline at end of file