summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/validators/protected/pages/CheckBox.php
diff options
context:
space:
mode:
authorxue <>2006-04-16 17:51:39 +0000
committerxue <>2006-04-16 17:51:39 +0000
commita1ed7c2ad592b6fad8a0ec27f9714ec608cc3cc0 (patch)
treeb7d5b48d9c0f632a5587375e89625d0074a40432 /tests/FunctionalTests/validators/protected/pages/CheckBox.php
parent2983057ad91ccdef1fef86a85fe8e888350c3384 (diff)
Added FT for validators working with TButton, TLinkButton, TImageButton and TCheckBox.
Diffstat (limited to 'tests/FunctionalTests/validators/protected/pages/CheckBox.php')
-rw-r--r--tests/FunctionalTests/validators/protected/pages/CheckBox.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/FunctionalTests/validators/protected/pages/CheckBox.php b/tests/FunctionalTests/validators/protected/pages/CheckBox.php
new file mode 100644
index 00000000..700ac171
--- /dev/null
+++ b/tests/FunctionalTests/validators/protected/pages/CheckBox.php
@@ -0,0 +1,27 @@
+<?php
+
+class CheckBox extends TPage
+{
+ public function button1Clicked($sender,$param)
+ {
+ $this->Result1->Text="Button1 is clicked";
+ if($this->IsValid)
+ $this->Result1->Text.=' and valid';
+ }
+
+ public function button2Clicked($sender,$param)
+ {
+ $this->Result2->Text="Button2 is clicked";
+ if($this->IsValid)
+ $this->Result2->Text.=' and valid';
+ }
+
+ public function button3Clicked($sender,$param)
+ {
+ $this->Result3->Text="Button3 is clicked";
+ if($this->IsValid)
+ $this->Result3->Text.=' and valid';
+ }
+}
+
+?> \ No newline at end of file