diff options
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/ActiveCheckBoxTest.php')
-rw-r--r-- | tests/FunctionalTests/active-controls/protected/pages/ActiveCheckBoxTest.php | 32 |
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 |