summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/ControlAdapterTest.php
diff options
context:
space:
mode:
authorwei <>2006-06-22 11:55:46 +0000
committerwei <>2006-06-22 11:55:46 +0000
commit817da66e1cb3548f728db9ff4a96e783ed7522b5 (patch)
tree6a994ae26d05054a9becaa82d8839cc778c56113 /tests/FunctionalTests/active-controls/protected/pages/ControlAdapterTest.php
parent99ea5b7b4b90d0298f47223c0fc832b30c1903eb (diff)
Update callback adapter
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/ControlAdapterTest.php')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/ControlAdapterTest.php58
1 files changed, 58 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ControlAdapterTest.php b/tests/FunctionalTests/active-controls/protected/pages/ControlAdapterTest.php
new file mode 100644
index 00000000..edaf0720
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/ControlAdapterTest.php
@@ -0,0 +1,58 @@
+<?php
+
+class ControlAdapterTest extends TPage
+{
+ function change_enabled()
+ {
+ $this->button1->Enabled = !$this->button1->Enabled;
+ }
+
+ function change_visible()
+ {
+ $this->button1->Visible = !$this->button1->Visible;
+ }
+
+ function change_tooltip()
+ {
+ $this->button1->ToolTip = "hello world";
+ }
+
+ function change_tabindex()
+ {
+ $this->button1->tabIndex = 10;
+ }
+
+ function change_accesskey()
+ {
+ $this->button1->accessKey = "F";
+ }
+
+ function change_bgcolor1()
+ {
+ $this->button1->BackColor = "orange";
+ $this->button1->ForeColor="white";
+ $this->button1->Font->Bold = true;
+ $this->button1->Font->Size = "2em";
+ }
+
+
+ function change_bgcolor2()
+ {
+ $this->button2->BackColor = "red";
+ $this->button2->ForeColor="white";
+ $this->button2->Font->Bold = true;
+ $this->button2->Font->Size = 14;
+ }
+
+ function change_attributes1()
+ {
+ $this->button1->Attributes['onclick'] = "alert('haha!')";
+ }
+
+ function change_attributes2()
+ {
+ $this->button2->Attributes['onclick'] = "alert('baz!')";
+ }
+}
+
+?> \ No newline at end of file