summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/ActiveImageButtonTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/ActiveImageButtonTest.php')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/ActiveImageButtonTest.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ActiveImageButtonTest.php b/tests/FunctionalTests/active-controls/protected/pages/ActiveImageButtonTest.php
new file mode 100644
index 00000000..eced2457
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/ActiveImageButtonTest.php
@@ -0,0 +1,31 @@
+<?php
+
+class ActiveImageButtonTest extends TPage
+{
+ function change_text($sender, $param)
+ {
+ $this->image1->AlternateText = "Muahahahah";
+ }
+
+ function change_image($sender, $param)
+ {
+ $this->image1->ImageUrl = $sender->CustomData;
+ }
+
+ function change_align($sender, $param)
+ {
+ $this->image1->ImageAlign="absbottom";
+ }
+
+ function change_description($sender, $param)
+ {
+ $this->image1->DescriptionUrl = "maahahhaa";
+ }
+
+ function image1_clicked($sender, $param)
+ {
+ $this->label1->Text = "Image clicked at x={$param->x}, y={$param->y}";
+ }
+}
+
+?> \ No newline at end of file